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

Malformed version number on Mac OSX #107

Closed
kimkulling opened this issue Sep 28, 2013 · 2 comments
Closed

Malformed version number on Mac OSX #107

kimkulling opened this issue Sep 28, 2013 · 2 comments

Comments

@kimkulling
Copy link
Member

When building assimp we get the following error on Mac OSX 10.8.
Linking CXX shared library ../lib/libassimp.dylib
ld: malformed 64-bit a.b.c.d.e version number: 3.0.1264
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Changing the SV revision number in the build script from 1264 to 255 solves the problem.

see: https://sourceforge.net/p/assimp/bugs/112/

@epicstar
Copy link

epicstar commented Jun 27, 2018

The issue still happens to this day... If any of a.b.c.d.e in current_version is > 1023, the linker will fail. I'm suspecting that clang only accepts these values between 0 and 2^10 but I don't see any documentation referring to this...

@peteranny
Copy link

peteranny commented Nov 25, 2022

According to the source code https://opensource.apple.com/source/ld64/ld64-274.2/src/ld/Options.cpp.auto.html, the error "malformed 64-bit a.b.c.d.e version number: %s" arises from parseVersionNumber64 that gets called when -dylib_current_version or -current_version is provided in the compiler arguments.

So I tried opening my .xcodeproj file and deleting CURRENT_PROJECT_VERSION and DYLIB_CURRENT_VERSION manually. Compilation succeeded ✔️

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

No branches or pull requests

3 participants