Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

`opt` and `llc` missing from mono 2018-08 pkg #10243

Closed
kdubau opened this issue Aug 22, 2018 · 6 comments · Fixed by #10431

Comments

@kdubau
Copy link
Member

@kdubau kdubau commented Aug 22, 2018

Steps to Reproduce

  1. Install Mono 5.18 / 2018-08
  2. mono --aot --llvm someexecutable.exe
  3. fails with sh: opt: command not found

Current Behavior

Cannot find the opt binary in Mono.framework.

Mono JIT compiler version 5.18.0.36 (2018-08/faac90015cd Wed Aug 22 07:22:48 EDT 2018)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:
	SIGSEGV:       altstack
	Notification:  kqueue
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug
	Interpreter:   yes
	LLVM:          yes(600)
	Suspend:       hybrid
	GC:            sgen (concurrent by default)
kylewhite@kyles-mbp ~ $ find /Library/Frameworks/Mono.framework -name "opt"
kylewhite@kyles-mbp ~ $ find /Library/Frameworks/Mono.framework -name "llc"

Expected Behavior

The opt binary should be found and should be able to AOT an executable with mono --aot --llvm.

On Mono 5.16 the binaries can be found:

Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           normal
	SIGSEGV:       altstack
	Notification:  kqueue
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug
	Interpreter:   yes
	LLVM:          yes(3.6.0svn-mono-master/0b3cb8ac12c)
	GC:            sgen (concurrent by default)
kylewhite@kyles-mbp ~ $ find /Library/Frameworks/Mono.framework -name "opt"
/Library/Frameworks/Mono.framework/Versions/5.16.0/bin/opt.dSYM/Contents/Resources/DWARF/opt
/Library/Frameworks/Mono.framework/Versions/5.16.0/bin/opt
kylewhite@kyles-mbp ~ $ find /Library/Frameworks/Mono.framework -name "llc"
/Library/Frameworks/Mono.framework/Versions/5.16.0/bin/llc.dSYM/Contents/Resources/DWARF/llc
/Library/Frameworks/Mono.framework/Versions/5.16.0/bin/llc

On which platforms did you notice this

  • macOS
  • Linux
  • Windows

Version Used:

See above.

@luhenry

This comment has been minimized.

Copy link
Member

@luhenry luhenry commented Aug 22, 2018

@luhenry

This comment has been minimized.

Copy link
Member

@luhenry luhenry commented Aug 22, 2018

/cc @alexischr could you please take a look at it.

@EgorBo

This comment has been minimized.

Copy link
Member

@EgorBo EgorBo commented Aug 22, 2018

@kdubau

This comment has been minimized.

Copy link
Member Author

@kdubau kdubau commented Aug 22, 2018

I think #9415 explains why mono --aot --llvm doesn't work, but with 2018-08 even specifying the llvm path with mono --aot=llvm,llvm-path=/Library/Frameworks/Mono.framework/Versions/Current/bin/ still fails (as expected since opt is missing).

@EgorBo

This comment has been minimized.

Copy link
Member

@EgorBo EgorBo commented Aug 23, 2018

ah, sorry I didn't notice find /Library/Frameworks/Mono.framework -name "opt" results

@alexischr

This comment has been minimized.

Copy link
Member

@alexischr alexischr commented Aug 30, 2018

The files end up at $(mono source root)/llvm/usr/bin and not on the mono install prefix. For now, the solution is to copy them to the mono install prefix at bockbuild time so that they are picked up

@alexischr alexischr self-assigned this Aug 30, 2018
alexischr added a commit that referenced this issue Aug 31, 2018
alexischr added a commit that referenced this issue Aug 31, 2018
alexischr added a commit that referenced this issue Sep 1, 2018
monojenkins added a commit to monojenkins/mono that referenced this issue Sep 1, 2018
alexischr added a commit that referenced this issue Sep 1, 2018
EgorBo added a commit to EgorBo/mono that referenced this issue Sep 10, 2018
jonpryor added a commit to xamarin/xamarin-android that referenced this issue Dec 6, 2018
Bumps to mono/api-snapshot@b99fc87.
Bumps to mono/bockbuild@5af573e.
Bumps to mono/boringssl@41221b4.
Bumps to mono/corefx@23d0b58.
Bumps to mono/corert@af496fc.
Bumps to mono/linker@7af03ce.
Bumps to mono/NUnitLite@00e259a.
Bumps to mono/reference-assemblies@9325826.
Bumps to mono/roslyn-binaries@249709f.
Bumps to mono/xunit-binaries@bb58347.

	$ git diff --shortstat b63e5378..23f2024a      # mono 
	 1630 files changed, 50926 insertions(+), 92212 deletions(-)

Fixes: mono/mono#6352
Fixes: mono/mono#6947
Fixes: mono/mono#6992
Fixes: mono/mono#7615
Fixes: mono/mono#8340
Fixes: mono/mono#8407
Fixes: mono/mono#8575
Fixes: mono/mono#8627
Fixes: mono/mono#8707
Fixes: mono/mono#8766
Fixes: mono/mono#8848
Fixes: mono/mono#8866
Fixes: mono/mono#8935
Fixes: mono/mono#9010
Fixes: mono/mono#9023
Fixes: mono/mono#9031
Fixes: mono/mono#9033
Fixes: mono/mono#9106
Fixes: mono/mono#9109
Fixes: mono/mono#9155
Fixes: mono/mono#9179
Fixes: mono/mono#9232
Fixes: mono/mono#9234
Fixes: mono/mono#9262
Fixes: mono/mono#9277
Fixes: mono/mono#9292
Fixes: mono/mono#9318
Fixes: mono/mono#9318
Fixes: mono/mono#9332
Fixes: mono/mono#9407
Fixes: mono/mono#9421
Fixes: mono/mono#9505
Fixes: mono/mono#9542
Fixes: mono/mono#9581
Fixes: mono/mono#9623
Fixes: mono/mono#9684
Fixes: mono/mono#9750
Fixes: mono/mono#9753
Fixes: mono/mono#9772
Fixes: mono/mono#9839
Fixes: mono/mono#9869
Fixes: mono/mono#9921
Fixes: mono/mono#9943
Fixes: mono/mono#9947
Fixes: mono/mono#9973
Fixes: mono/mono#9996
Fixes: mono/mono#10000
Fixes: mono/mono#10031
Fixes: mono/mono#10035
Fixes: mono/mono#10227
Fixes: mono/mono#10243
Fixes: mono/mono#10303
Fixes: mono/mono#10448
Fixes: mono/mono#10483
Fixes: mono/mono#10488
Fixes: mono/mono#10863
Fixes: mono/mono#11123
Fixes: mono/mono#11138
Fixes? mono/mono#11146
Fixes: mono/mono#11202
Fixes: mono/mono#11378
Fixes: mono/mono#11479
Fixes: mono/mono#11613
Fixes: #1951
Fixes: xamarin/xamarin-macios#4347
Fixes: xamarin/xamarin-macios#4617
Fixes: xamarin/xamarin-macios#4984
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants
You can’t perform that action at this time.