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

Linker warning on OSX -- wrong version number used? #14182

Closed
eschnett opened this issue Nov 29, 2015 · 5 comments · Fixed by #22746
Closed

Linker warning on OSX -- wrong version number used? #14182

eschnett opened this issue Nov 29, 2015 · 5 comments · Fixed by #22746
Labels
domain:building Build system, or building Julia or its dependencies kind:upstream The issue is with an upstream dependency, e.g. LLVM system:mac Affects only macOS

Comments

@eschnett
Copy link
Contributor

I see this warning when building Julia (0.5 master):

ld: warning: object file (/Users/eschnett/src/julia05/usr/lib/julia/sys.o) was built for newer OSX version (15.0) than being linked (10.7)

Note that the OSX version of my system is 10.11 (El Capitan), while my kernel version is 15.0. This looks as if some script used the kernel version instead of the OSX version when using the -macos_version_min option to ld.

PS: There's no "OSX" or "Apple" label for issues. But there's an "MS-DOS" one?

@yuyichao yuyichao added the system:mac Affects only macOS label Nov 29, 2015
@ViralBShah ViralBShah added the domain:building Build system, or building Julia or its dependencies label Nov 29, 2015
@Keno
Copy link
Member

Keno commented Nov 29, 2015

There's a mac one and the MS-DOS one was a joke ;)

@eschnett
Copy link
Contributor Author

I see these lines in Make.inc:

$ grep DARWINVER Make.inc 
DARWINVER := $(shell uname -r | cut -b 1-2)
DARWINVER_GTE13 := $(shell expr `uname -r | cut -b 1-2` \>= 13)
ifeq ($(DARWINVER), 10) # Snow Leopard specific configuration
ifeq ($(DARWINVER_GTE13),1)

They may confuse "Darwin version" and "OSX version". I doubt that many places in Julia will need to know the kernel version, whereas the OSX version seems relevant in many respects since Apple's toolchain changes.

I suggest switching from uname to sw_vers -productVersion, which returns e.g. 10.11.1 for me, 10.11 being "El Capitan".

@ViralBShah
Copy link
Member

Yes, we should probably get rid of DARWINVER and switch to OS X versions. Perhaps worth fixing #6674 too in favour of using OS X versions.

@vtjnash
Copy link
Sponsor Member

vtjnash commented Dec 6, 2015

Probably worth nothing that this is an upstream bug (llvm), not Julia: http:https://lists.llvm.org/pipermail/llvm-dev/2015-September/090758.html

@vtjnash vtjnash added the kind:upstream The issue is with an upstream dependency, e.g. LLVM label Dec 6, 2015
@kshyatt
Copy link
Contributor

kshyatt commented Dec 18, 2016

This is still happening to me! Is there an (upstream) fix? Should I switch the LLVM version I'm using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:building Build system, or building Julia or its dependencies kind:upstream The issue is with an upstream dependency, e.g. LLVM system:mac Affects only macOS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants