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 Mac OS X Mavericks 10.9.5 #30

Closed
virtuoushub opened this issue Nov 27, 2014 · 6 comments
Closed

Linker warning on Mac OS X Mavericks 10.9.5 #30

virtuoushub opened this issue Nov 27, 2014 · 6 comments
Assignees

Comments

@virtuoushub
Copy link
Contributor

ld: warning: could not create compact unwind for _ffi_call_unix64: does not use RBP or RSP based frame

Has anyone else come across this?

The ant task completes with BUILD SUCCESSFUL. After reading your guidelines, I looked into the issue somewhat and saw two Google Groups discussions mentioned a couple times.

I was unable to determine the cause and if the warning can be safely ignored.

Steps to reproduce _(assumes successful $ ant compile-templates):_

$ ant compile-native

Observed output:
...
ommited some output for breviety
...

compile-native-macosx:
 [SDK Root] /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk

-link-if-necessary:

-update-dependencies:

-link:
   [Linker] ld: warning: could not create compact unwind for _ffi_call_unix64: does not use RBP or RSP based frame

BUILD SUCCESSFUL
Total time: 19 seconds

Environmental Details

$ java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
$ ant -version
Apache Ant(TM) version 1.9.4 compiled on April 29 2014
#for sake of completion including some more relevant info output from Maven
$ mvn -v
...
Java version: 1.6.0_65, vendor: Apple Inc.
...
OS name: "mac os x", version: "10.9.5", arch: "x86_64", family: "mac"
@Spasi
Copy link
Member

Spasi commented Nov 27, 2014

Thanks, I'm seeing the same warning on Travis.

@Spasi Spasi added this to the 3.0 milestone Nov 27, 2014
@Spasi Spasi self-assigned this Nov 27, 2014
@virtuoushub
Copy link
Contributor Author

You are welcome. Quick question that is semi related:
Should I be using Java 6 or 7? Looking at your Travis config for the OS X branch and the Setup Wiki it looks like 7.

However, looking at build.xml it looks like 6.

I have gotten it to work with 6-8, however using Apple's JDK 6 was a PITA.

@Spasi
Copy link
Member

Spasi commented Nov 27, 2014

The codebase is Java 6 compatible, but I'm also building on Java 7 on OS X, for the same reason. Don't worry about it, unless you need to contribute something and worry about using a Java 7+ API.

@virtuoushub
Copy link
Contributor Author

Understood. I am not worried about it, however if you want me to open a pull request, I did get building the project on OS X using Apple's JDK 6 to work in one of my fork's branches.

@Spasi Spasi closed this as completed in f89f66a Nov 28, 2014
@Spasi
Copy link
Member

Spasi commented Nov 28, 2014

The warning is emitted because _ffi_call_unix64 is hand-coded assembly and it isn't compatible with compact unwind. I have disabled compact unwind until the issue is fixed in libFFI. I don't think this will affect us in any way.

I've also fixed the build to work out of the box on OS X with JDK 6, with e871dea. Thanks @virtuoushub!

@virtuoushub
Copy link
Contributor Author

You are most welcome. Thank you for looking into the linker warning and getting an OS X/JDK 6 build working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants