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

Build failing in Mac OS 10.9.2 - Apple LLVM version 5.1 (clang-503.0.40) #106

Open
varadharajan opened this issue Aug 8, 2015 · 8 comments

Comments

@varadharajan
Copy link

"make" fails with the below error. On further analysis, Looks like "-bundle_loader" has been specified twice and that is causing the issue. When i remove one of the -bundle_loader duplicates, it compiles fine for me. May be @rdunklau can give more inputs on this?

shell -> make
Python version is 2.7
clang -I/usr/local/Cellar/ossp-uuid/1.6.2/include -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -bundle -multiply_defined suppress -o multicorn.so src/errors.o src/python.o src/query.o src/multicorn.o -L/usr/local/Cellar/postgresql/9.3.4/lib -L/usr/local/Cellar/ossp-uuid/1.6.2/lib -Wl,-dead_strip_dylibs -undefined dynamic_lookup -bundle_loader /usr/local/Cellar/postgresql/9.3.4/bin/postgres -bundle_loader /usr/local/Cellar/postgresql/9.3.4/bin/postgres -ldl -framework CoreFoundation -lpython2.7 -L/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -ldl -framework CoreFoundation -lpython2.7
0 0x1030c70e7 assert_rtn + 144
1 0x10312ebb5 ld::tool::OutputFile::compressedOrdinalForAtom(ld::Atom const
) + 281
2 0x10312f762 ld::tool::OutputFile::addDyldInfo(ld::Internal&, ld::Internal::FinalSection
, ld::Atom const_, ld::Fixup_, ld::Fixup_, ld::Fixup_, ld::Atom const_, ld::Atom const_, unsigned long long, unsigned long long) + 2062
3 0x103125812 ld::tool::OutputFile::generateLinkEditInfo(ld::Internal&) + 1322
4 0x103120cce ld::tool::OutputFile::write(ld::Internal&) + 116
5 0x1030c7d94 main + 1012
6 0x7fff91f635fd start + 1
A linker snapshot was created at:
/tmp/multicorn.so-2015-07-08-122548.ld-snapshot
ld: Assertion failed: (0 && "dylib not assigned ordinal"), function compressedOrdinalForAtom, file /SourceCache/ld64/ld64-236.4/src/ld/OutputFile.cpp, line 3458.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [multicorn.so] Error 1

@varadharajan
Copy link
Author

I think it might be something to do with compiler settings / env variables?

Something like varadharajan@5e689bb fixes it for me.

@stt
Copy link

stt commented Nov 18, 2015

Can confirm that the linked change fixed the build on OSX 10.10.

@prepor
Copy link

prepor commented Apr 3, 2016

It fixed build for me on OSX 10.11

@komamitsu
Copy link

@varadharajan The change works well for me. Why don't you send it as a pull request?

@varadharajan
Copy link
Author

@komamitsu Just did it. Thanks

@rotten
Copy link

rotten commented Oct 4, 2016

I had to do this as well. Thanks for the solution.

@ryantuck
Copy link

can confirm this allowed make to finish successfully.

@rotten
Copy link

rotten commented Mar 2, 2017

fixes it for me too

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

6 participants