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

Installation failed: clang: error: linker command failed with exit code 1 (use -v to see invocation) #245

Closed
abrozzi opened this issue Nov 27, 2018 · 5 comments

Comments

@abrozzi
Copy link

abrozzi commented Nov 27, 2018

While trying to install from pip3, got:

clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ithird_party/fermi-lite-0.1 -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c ariba/ext/fml-asm_ariba.cpp -o build/temp.macosx-10.10-x86_64-3.6/ariba/ext/fml-asm_ariba.o
clang++ -bundle -undefined dynamic_lookup build/temp.macosx-10.10-x86_64-3.6/third_party/fermi-lite-0.1/bfc.o build/temp.macosx-10.10-x86_64-3.6/third_party/fermi-lite-0.1/bseq.o build/temp.macosx-10.10-x86_64-3.6/third_party/fermi-lite-0.1/bubble.o build/temp.macosx-10.10-x86_64-3.6/third_party/fermi-lite-0.1/htab.o build/temp.macosx-10.10-x86_64-3.6/third_party/fermi-lite-0.1/ksw.o build/temp.macosx-10.10-x86_64-3.6/third_party/fermi-lite-0.1/kthread.o build/temp.macosx-10.10-x86_64-3.6/third_party/fermi-lite-0.1/mag.o build/temp.macosx-10.10-x86_64-3.6/third_party/fermi-lite-0.1/misc.o build/temp.macosx-10.10-x86_64-3.6/third_party/fermi-lite-0.1/mrope.o build/temp.macosx-10.10-x86_64-3.6/third_party/fermi-lite-0.1/rld0.o build/temp.macosx-10.10-x86_64-3.6/third_party/fermi-lite-0.1/rle.o build/temp.macosx-10.10-x86_64-3.6/third_party/fermi-lite-0.1/rope.o build/temp.macosx-10.10-x86_64-3.6/third_party/fermi-lite-0.1/unitig.o build/temp.macosx-10.10-x86_64-3.6/ariba/ext/fml-asm_ariba.o -L/usr/local/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -o build/lib.macosx-10.10-x86_64-3.6/fermilite_ariba.cpython-36m-darwin.so -lz
duplicate symbol _rle_auxtab in:
build/temp.macosx-10.10-x86_64-3.6/third_party/fermi-lite-0.1/misc.o
build/temp.macosx-10.10-x86_64-3.6/third_party/fermi-lite-0.1/rle.o
duplicate symbol _rle_auxtab in:
build/temp.macosx-10.10-x86_64-3.6/third_party/fermi-lite-0.1/misc.o
build/temp.macosx-10.10-x86_64-3.6/third_party/fermi-lite-0.1/rope.o
ld: 2 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang++' failed with exit status 1

@pgcudahy
Copy link

Same issue for me too

@kpepper
Copy link
Member

kpepper commented Mar 18, 2019

What do you get when you execute: clang++ -v
?

@abrozzi
Copy link
Author

abrozzi commented Mar 18, 2019 via email

@kpepper
Copy link
Member

kpepper commented Mar 18, 2019

Thanks.

I'm using clang-900.0.39.2 and not seeing this error, so may be clang-1000.11.45.2 is a little more strict. I think the [fermilite] third_party/fermi-lite-0.1/rule.h declaration const uint8_t rle_auxtab[8]; should actually have an extern in front - this may be the cause of the issue. If so, it's a line change.

kpepper added a commit to kpepper/ariba that referenced this issue Mar 21, 2019
kpepper added a commit that referenced this issue Mar 21, 2019
Minor code change to mitigate issue #245 (installation failure)
@kpepper
Copy link
Member

kpepper commented Mar 21, 2019

I can replicate the issue and the code change fixes it. It's currently pushed to master and will be in the next release shortly.

@kpepper kpepper closed this as completed Mar 21, 2019
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