Hi,

I'm trying to build binutils 2.28 with GCC 4.8.5 on CentOS 7.3, but it fails 
during `make check`. The error message is:

gcctestdir/ld: error: cannot find -lc
gcctestdir/ld: error: cannot find -ldl
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o(.text+0x12): 
error: undefined reference to '__libc_csu_fini'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o(.text+0x19): 
error: undefined reference to '__libc_csu_init'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o(.text+0x25): 
error: undefined reference to '__libc_start_main'
pr20216_main.c:18: error: undefined reference to 'abort'
collect2: error: ld returned 1 exit status
make[5]: *** [pr20216c_test] Error 1

Let me know if you need any more information to debug this.

Adam J. Stewart
Assistant Systems Administrator
Laboratory Computing Resource Center
Computing, Environment and Life Sciences
Argonne National Laboratory
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to