Bug 60426 - problem with mini-amd64.h error
Summary: problem with mini-amd64.h error
Status: CONFIRMED
Alias: None
Product: Tools
Classification: Mono
Component: other ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-10-29 12:18 UTC by Jens Eckervogt
Modified: 2017-10-30 01:56 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
compilation log (178.81 KB, text/plain)
2017-10-29 12:18 UTC, Jens Eckervogt
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 60426 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Jens Eckervogt 2017-10-29 12:18:06 UTC
Created attachment 25494 [details]
compilation log

Hello everyone I have got error since compilation :( 

"../../mono/mini/mini-amd64.h:225:25: warning: ‘float_param_regs’ defined but not used [-Wunused-variable]
 static AMD64_XMM_Reg_No float_param_regs [] = { AMD64_XMM0, AMD64_XMM1, AMD64_XMM2, AMD64_XMM3 };
                         ^~~~~~~~~~~~~~~~
make[3]: Leaving directory '/home/Jens/mono/mono/mini'
make[2]: *** [Makefile:3288: check] Error 2
make[2]: Leaving directory '/home/Jens/mono/mono/mini'
make[1]: *** [Makefile:477: check-recursive] Error 1
make[1]: Leaving directory '/home/Jens/mono/mono'
make: *** [Makefile:551: check-recursive] Error 1"

I downloaded latest master of mono's github

And I have decided to autogen.sh as "./autogen.sh --prefix=/cygdrive/d/mono_64 --host=x86_64-w64-mingw32 --disable-boehm --with-sgen=yes --with-lazy-gc-thread-creation=yes --with-large-heap=yes --with-winaot=yes --with-shared_mono=no"

And I let to download of monolite
"make get-monolite-latest"

And I let to compilation's process
"make j8 | tee make-log.txt"

Why I use tee make-log.txt because I want check if I want share/check text file because it is proof.

Thanks!
Comment 1 Jens Eckervogt 2017-10-30 01:56:53 UTC
And I have problem with Mono from Github and If I generate as static and embedded bundled app than it can't show userinterface - why does embedded bundled app invisibly?

I can not understand why does it happen with static - I never got errors. compilation was successful but I tried to fix

1. ./autogen.sh --prefix=/cygdrive/mono_x86 --host=i686-w64-mingw32
finish
make get-monolite-latest
finish
make
finish and path to prepare.cs and mcs prepare.cs than prepare.exe ../../mcs core
finish
path to MSBuild of Microsoftwith win32 and release
finish
make , again
finish
And ./autogen.sh --prefix=/cygdrive/mono_x86 --host=i686-w64-mingw32 --with-shared_mono=no
make again
and msbuild with mono.sln again
and make install with compilation and copy to /cygdrive/d/mono_x86 
Copy manuel all lib files from msvc/build/sgen/win32/lib/*.lib to D:\mono_x86\lib\*.lib
than path with test mono runtime from /cygdrive/d/mono_x86/bin
mono --version
Yay it works fine.

$ mono --version
Mono JIT compiler version 5.9.0 (Visual Studio built mono)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           normal
        SIGSEGV:       normal
        Notification:  Thread + polling
        Architecture:  x86
        Disabled:      none
        Misc:          softdebug
        LLVM:          supported, not enabled.
        GC:            sgen (concurrent by default)

Create directory in $HOME ( ~/ of cygwin )
"test" ~/test
Copy from finish compiled Visual Studio's Project into ~/test
Execute to path ~/test
copy SDK directory ( 4.5 ) into ~/test because mkbundle throws error because it say need any assemblies with finish compiled program with GTK Sharp 2 or 3 with completed runtime like libgtk-3.0.dll or libgtk-win32-2.0.dll etc..
into ~/test
mkbundle --deps --static TestApp.exe -o Output.exe -v

Wow it works fine. Awesome but I don't know because Alexender K didn't tell truth me because I found Visual Studio 2017 Community's Installer has new package Clang Default.txt and I install and wait until Clang package is installed. than I check mkbundle again.

Woah it works fine and it looks like this:

mkbundle --deps --static TestGtk3.exe -o Output.exe -v
OS is: Windows
Sources: 1 Auto-dependencies: True
Attempting to load assembly: TestGtk3.exe
Assembly TestGtk3.exe loaded successfully.
Attempting to load assembly from: .\I18N.West.dll
Attempting to load assembly from: .\I18N.dll
Attempting to load assembly from: .\mscorlib
Attempting to load assembly from: .\gtk-sharp
Attempting to load assembly from: .\glib-sharp
Attempting to load assembly from: .\mscorlib
Attempting to load assembly from: .\System.Core
Attempting to load assembly from: .\mscorlib
Attempting to load assembly from: .\System
Attempting to load assembly from: .\mscorlib
Attempting to load assembly from: .\Mono.Security
Attempting to load assembly from: .\mscorlib
Attempting to load assembly from: .\System
Attempting to load assembly from: .\System.Configuration
Attempting to load assembly from: .\mscorlib
Attempting to load assembly from: .\System.Xml
Attempting to load assembly from: .\mscorlib
Attempting to load assembly from: .\System
Attempting to load assembly from: .\System.Configuration
Attempting to load assembly from: .\System
Attempting to load assembly from: .\System.Security
Attempting to load assembly from: .\mscorlib
Attempting to load assembly from: .\System
Attempting to load assembly from: .\Mono.Security
Attempting to load assembly from: .\System.Xml
Attempting to load assembly from: .\System.Xml
Attempting to load assembly from: .\Mono.Posix
Attempting to load assembly from: .\mscorlib
Attempting to load assembly from: .\System
Attempting to load assembly from: .\mscorlib
Attempting to load assembly from: .\gio-sharp
Attempting to load assembly from: .\glib-sharp
Attempting to load assembly from: .\mscorlib
Attempting to load assembly from: .\System
Attempting to load assembly from: .\atk-sharp
Attempting to load assembly from: .\glib-sharp
Attempting to load assembly from: .\mscorlib
Attempting to load assembly from: .\mscorlib
Attempting to load assembly from: .\I18N
Attempting to load assembly from: .\mscorlib
   embedding: D:\cygwin\home\Jens\test\minimal\TestGtk3.exe
 config from: D:\cygwin\home\Jens\test\minimal\TestGtk3.exe.config
   embedding: D:\cygwin\home\Jens\test\minimal\mscorlib.dll
   embedding: D:\cygwin\home\Jens\test\minimal\gtk-sharp.dll
 config from: D:\cygwin\home\Jens\test\minimal\gtk-sharp.dll.config
   embedding: D:\cygwin\home\Jens\test\minimal\glib-sharp.dll
 config from: D:\cygwin\home\Jens\test\minimal\glib-sharp.dll.config
   embedding: D:\cygwin\home\Jens\test\minimal\System.Core.dll
   embedding: D:\cygwin\home\Jens\test\minimal\System.dll
   embedding: D:\cygwin\home\Jens\test\minimal\Mono.Security.dll
   embedding: D:\cygwin\home\Jens\test\minimal\System.Configuration.dll
   embedding: D:\cygwin\home\Jens\test\minimal\System.Xml.dll
   embedding: D:\cygwin\home\Jens\test\minimal\System.Security.dll
   embedding: D:\cygwin\home\Jens\test\minimal\Mono.Posix.dll
   embedding: D:\cygwin\home\Jens\test\minimal\gio-sharp.dll
 config from: D:\cygwin\home\Jens\test\minimal\gio-sharp.dll.config
   embedding: D:\cygwin\home\Jens\test\minimal\atk-sharp.dll
 config from: D:\cygwin\home\Jens\test\minimal\atk-sharp.dll.config
   embedding: D:\cygwin\home\Jens\test\minimal\I18N.West.dll
   embedding: D:\cygwin\home\Jens\test\minimal\I18N.dll
AS =  (default)
VCINSTALLDIR = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\
VisualStudioVersion = 15.0
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\ClangC2\14.10.25903\bin\HostX86\clang.exe" -c -x assembler -o temp.s.obj temp.s
Compiling:
CC =  (default)
VCINSTALLDIR = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\
VCCRT = MD (default)
INCLUDE = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\ATLMFC\include;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared;C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt;
MONOPREFIX =  (default)
VCSUBSYSTEM = windows (default)
LIBMONO =  (default)
LIB = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\ATLMFC\lib\x86;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\lib\x86;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x86;C:\Program Files (x86)\Windows Kits\10\lib\10.0.16299.0\ucrt\x86;C:\Program Files (x86)\Windows Kits\10\lib\10.0.16299.0\um\x86;
MONOPREFIX =  (default)
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bin\HostX86\x86\cl.exe" /MD /I "C:\Program Files (x86)\Mono\include\mono-2.0" /I "." "temp.c" "temp.s.obj" /link /SUBSYSTEM:windows /ENTRY:mainCRTStartup /NODEFAULTLIB libmono-static-sgen.lib kernel32.lib version.lib ws2_32.lib mswsock.lib psapi.lib shell32.lib oleaut32.lib ole32.lib winmm.lib user32.lib advapi32.lib ucrt.lib vcruntime.lib msvcrt.lib oldnames.lib /LIBPATH:"C:\Program Files (x86)\Mono\lib" /LIBPATH:"." /OUT:"Output.exe"
Microsoft (R) C/C++ Optimizing Compiler Version 19.11.25547 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

temp.c
Microsoft (R) Incremental Linker Version 14.11.25547.0
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:temp.exe
/SUBSYSTEM:windows
/ENTRY:mainCRTStartup
/NODEFAULTLIB
libmono-static-sgen.lib
kernel32.lib
version.lib
ws2_32.lib
mswsock.lib
psapi.lib
shell32.lib
oleaut32.lib
ole32.lib
winmm.lib
user32.lib
advapi32.lib
ucrt.lib
vcruntime.lib
msvcrt.lib
oldnames.lib
"/LIBPATH:C:\Program Files (x86)\Mono\lib"
/LIBPATH:.
/OUT:Output.exe
temp.obj
temp.s.obj
Done
Generated Output.exe

Oh yeah it works fine. Jiipiiieee!

But it happens with bundled embedded executable??
Uh I run Output.exe, eh why is it really invisible?

I check again my project of Visual Studio 2017 Community
my example project:

using Gtk;

namespace TestGtk3
{
    class TestApp : Window
    {
        public TestApp() : base(WindowType.Toplevel)
        {
            Title = "Hello Gtk Sharp";
            SetDefaultSize(300, 300);
            WindowPosition = WindowPosition.Center;
            DeleteEvent += delegate { Application.Quit(); };
            ShowAll();
        }

        static void Main(string[] args)
        {
            Application.Init();
            new TestApp();
            Application.Run();
        }
    }
}

And I check AnyCPU tánd change to x86 and Release and let to build and finish compiled program into ~/test and generate mkbundle again.

And I try Output.exe - noooooooooooooooooothiiiiiiiiiiing??

WHY DOES IT HAPPEN WITH BUNDLED APP??? I did not compile wrong.

Please help me! Is it bug because mkbundle makes "hidden" of bundled application?