Closed zeyelth closed 7 years ago
Hmm... can't really explain this but you are running a newer version of gcc than both me and the autobuilder so that might be an explaination.
It's hard to say what it might be since I can't try in out myself, but we'll have a chat monday if you haven't fonud out by then.
btw... if you just want it to build you could just comment out the test-c-file for now.
Did some tests:
It compiles fine using gcc-4.7 and gcc-4.9, but only if I target 32bit Linux.
gcc-4.* cannot build 64bit:
[32/65] [2] c++ tool/dl_pack/dl_pack.cpp
/usr/bin/ld: local/linux_x86_64/gcc/debug/[33/65] [2] link local/linux_x86_64/gcc/debug/dl_pack
getopt.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
bam: 'link local/linux_x86_64/gcc/debug/dltlc' error 256
/usr/bin/ld: local/linux_x86_64/gcc/debug/getopt.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
bam: 'link local/linux_x86_64/gcc/debug/dl_pack' error 256
It fails to compile using gcc-5.* and up. clang also fails with the same error.
And for completeness' sake, if I rename dl_test_valid_c.c to dl_test_valid_c.cpp it succeeds.
Edit: Test code is not C compliant. Fix in PR.
Could be something wrong with my setup, but this is what I get from a clean directory: