Ryan M. Lefever
2010-Oct-05 07:59 UTC
[LLVMdev] problems configuring LLVM with gold plugin
When I build LLVM 2.6 after configuring it with the --with-binutils-include option so it points to the gold plugin src/include directory, I get the errors below. I used "cvs -z 9 -d :pserver:anoncvs at sourceware.org:/cvs/src co src" to check out the gold-plugin, as is documented on llvm.org. -------------------------- make[2]: Entering directory `/home/lefever/work/llvm/v2.6/llvm-2.6_optimized/tools/gold' llvm[2]: Compiling gold-plugin.cpp for Release build (PIC) In file included from gold-plugin.cpp:15: /home/lefever/work/llvm/v2.6/llvm-2.6_optimized/../gold-plugin/binutils/src/include/plugin-api.h:37:2: error: #error can not find uint64_t type In file included from gold-plugin.cpp:15: /home/lefever/work/llvm/v2.6/llvm-2.6_optimized/../gold-plugin/binutils/src/include/plugin-api.h:91: error: ‘uint64_t’ does not name a type gold-plugin.cpp: In function ‘ld_plugin_status claim_file_hook(const ld_plugin_input_file*, int*)’: gold-plugin.cpp:279: error: ‘struct ld_plugin_symbol’ has no member named ‘size’ make[2]: *** [/home/lefever/work/llvm/v2.6/llvm-2.6_optimized/tools/gold/Release/gold-plugin.o] Error 1 -------------------------- Thanks, Ryan
Hi Ryan,> When I build LLVM 2.6 after configuring it with the > --with-binutils-include option so it points to the gold plugin > src/include directory, I get the errors below. I used "cvs -z 9 -d > :pserver:anoncvs at sourceware.org:/cvs/src co src" to check out the > gold-plugin, as is documented on llvm.org.this looks like a version mismatch. Unfortunately I don't know which version of gold works with llvm-2.6. Ciao, Duncan.> > -------------------------- > make[2]: Entering directory > `/home/lefever/work/llvm/v2.6/llvm-2.6_optimized/tools/gold' > llvm[2]: Compiling gold-plugin.cpp for Release build (PIC) > In file included from gold-plugin.cpp:15: > /home/lefever/work/llvm/v2.6/llvm-2.6_optimized/../gold-plugin/binutils/src/include/plugin-api.h:37:2: > error: #error can not find uint64_t type > In file included from gold-plugin.cpp:15: > /home/lefever/work/llvm/v2.6/llvm-2.6_optimized/../gold-plugin/binutils/src/include/plugin-api.h:91: > error: ‘uint64_t’ does not name a type > gold-plugin.cpp: In function ‘ld_plugin_status claim_file_hook(const > ld_plugin_input_file*, int*)’: > gold-plugin.cpp:279: error: ‘struct ld_plugin_symbol’ has no member > named ‘size’ > make[2]: *** > [/home/lefever/work/llvm/v2.6/llvm-2.6_optimized/tools/gold/Release/gold-plugin.o] > Error 1 > -------------------------- > > Thanks, > Ryan > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Rafael Espindola
2010-Oct-05 14:47 UTC
[LLVMdev] problems configuring LLVM with gold plugin
> error: #error can not find uint64_t typeLooks like you are missing some system header.> Thanks, > Ryan > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >Cheers, -- Rafael Ávila de Espíndola
Ryan M. Lefever
2010-Oct-05 22:18 UTC
[LLVMdev] problems configuring LLVM with gold plugin
I thought about that too, but I definitely have stdint.h have used it many times myself for uint64_t. In addition, I confirmed that plugin-api.h tries to include stdint.h. Rafael Espindola wrote:>> error: #error can not find uint64_t type > > Looks like you are missing some system header. > >> Thanks, >> Ryan >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >> > > > Cheers,