bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

make check fails, cannot find -lc


From: Stewart, Adam James
Subject: make check fails, cannot find -lc
Date: Tue, 21 Mar 2017 20:25:00 +0000

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]