Author gregory.p.smith
Recipients gregory.p.smith
Date 2016-09-08.07:45:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473320709.67.0.0429640617864.issue28015@psf.upfronthosting.co.za>
In-reply-to
Content
The error message you will see when building may look something like:

clang -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -fprofile-instr-generate -flto Parser/acceler.o Parser/grammar1.o Parser/listnode.o Parser/node.o Parser/parser.o Parser/bitset.o Parser/metagrammar.o Parser/firstsets.o Parser/grammar.o Parser/pgen.o Objects/obmalloc.o Python/dynamic_annotations.o Python/mysnprintf.o Python/pyctype.o Parser/tokenizer_pgen.o Parser/printgrammar.o Parser/parsetok_pgen.o Parser/pgenmain.o -lpthread -ldl  -lutil -o Parser/pgen
/usr/bin/ld: /usr/lib/llvm-3.8/bin/../lib/LLVMgold.so: error loading plugin: /usr/lib/llvm-3.8/bin/../lib/LLVMgold.so: cannot open shared object file: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:793: recipe for target 'Parser/pgen' failed
make[2]: *** [Parser/pgen] Error 1

as seen on ubuntu 16.04.

Related to https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-snapshot/+bug/1254970 which suggests we also need -B/usr/lib/gold-ld in our LDFLAGS and/or CFLAGS when using clang on Linux with LTO.

testing with it set in both still runs into errors; someone with clang LTO experience will need to untangle this.

(is this related to why --with-lto doesn't work on MacOS as well?)
History
Date User Action Args
2016-09-08 07:45:09gregory.p.smithsetrecipients: + gregory.p.smith
2016-09-08 07:45:09gregory.p.smithsetmessageid: <1473320709.67.0.0429640617864.issue28015@psf.upfronthosting.co.za>
2016-09-08 07:45:09gregory.p.smithlinkissue28015 messages
2016-09-08 07:45:09gregory.p.smithcreate