Bug 25605 - --llvm option not working with our shipping MacOS packages
Summary: --llvm option not working with our shipping MacOS packages
Status: RESOLVED INVALID
Alias: None
Product: Runtime
Classification: Mono
Component: JIT ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-12-24 08:14 UTC by Miguel de Icaza [MSFT]
Modified: 2015-01-26 15:00 UTC (History)
3 users (show)

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

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 on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description Miguel de Icaza [MSFT] 2014-12-24 08:14:01 UTC
If you try to use LLVM (both for AOT or for runtime), on MacOS with a program, Mono reports that it is not possible to load the LLVM support:

mac$ mono --llvm /tmp/a.exe
llvm symbol load failed: dlsym(0x7a859840, mono_llvm_free_domain_info): symbol not found

Mono Warning: llvm support could not be loaded.
Comment 1 Zoltan Varga 2015-01-02 18:38:16 UTC
I can't reproduce this. What version is this ? Both the 3.10 and 3.12 packages seem to work fine for me.
Comment 2 Miguel de Icaza [MSFT] 2015-01-02 20:56:23 UTC
This is Mono from our beta channel, so perhaps a packaging issue?

mac$ mono --llvm a.exe 
llvm symbol load failed: dlsym(0x7ae680c0, mono_llvm_free_domain_info): symbol not found

Mono Warning: llvm support could not be loaded.
foo
mac$ mono --version
Mono JIT compiler version 3.12.0 ((detached/a813491 Thu Dec 11 12:24:44 EST 2014)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           normal
	SIGSEGV:       altstack
	Notification:  kqueue
	Architecture:  x86
	Disabled:      none
	Misc:          softdebug 
	LLVM:          yes(3.6.0svn-mono-(detached/5486eb2)
	GC:            sgen

mac$ ls -l /Library/Frameworks/Mono.framework/Versions/Current/lib/*llv*dylib
-rwxr-xr-x  1 root  admin  13107372 Dec 11 15:29 /Library/Frameworks/Mono.framework/Versions/Current/lib/libmono-llvm.0.dylib
lrwxr-xr-x  1 root  admin        20 Jan  1 16:04 /Library/Frameworks/Mono.framework/Versions/Current/lib/libmono-llvm.dylib -> libmono-llvm.0.dylib
Comment 3 Zoltan Varga 2015-01-02 21:17:38 UTC
I have the same, what is the app which fails ?
Comment 4 Miguel de Icaza [MSFT] 2015-01-02 21:45:04 UTC
Just hello world.

The files are:

sh-3.2# ls -l /usr/bin/mono
lrwxr-xr-x  1 root  wheel  48 Nov 13  2008 /usr/bin/mono -> /Library/Frameworks/Mono.framework/Commands/mono
sh-3.2# ls -l /Library/Frameworks/Mono.framework/Commands/mono
lrwxr-xr-x  1 root  admin  9 Jan  1 16:04 /Library/Frameworks/Mono.framework/Commands/mono -> mono-sgen
sh-3.2# ls -l /Library/Frameworks/Mono.framework/Commands/mono-s
mono-service      mono-service2     mono-sgen         mono-sgen-gdb.py  mono-sgen.dSYM/   mono-shlib-cop    
sh-3.2# ls -l /Library/Frameworks/Mono.framework/Commands/mono-sgen
-rwxr-xr-x  1 root  admin  4262536 Dec 11 15:29 /Library/Frameworks/Mono.framework/Commands/mono-sgen

I see the symbol in the "mono" binary:

sh-3.2# nm /usr/bin/mono | grep mono_llvm_free_domain_info
000020e0 T _mono_llvm_free_domain_info
0035472c b _mono_llvm_free_domain_info_fptr
Comment 5 Zoltan Varga 2015-01-02 22:14:11 UTC
Does this happen on yosemite or mavericks ?
Comment 6 Miguel de Icaza [MSFT] 2015-01-03 09:01:53 UTC
Yosemite.
Comment 7 Zoltan Varga 2015-01-23 19:49:45 UTC
I cannot reproduce this with yosemite either, with:

Mono JIT compiler version 3.12.0 ((detached/a813491 Tue Dec 16 12:19:26 EST 2014)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           normal
	SIGSEGV:       altstack
	Notification:  kqueue
	Architecture:  x86
	Disabled:      none
	Misc:          softdebug 
	LLVM:          yes(3.6.0svn-mono-(detached/5486eb2)
	GC:            sgen
Comment 8 Zoltan Varga 2015-01-26 15:00:06 UTC
Local problem.