Subject: Compiling problem in lib/csu/i386_elf
To: NetBSD-current users <current-users@netbsd.org>
From: Nate Johnston <njohnston@broadwing.com>
List: current-users
Date: 02/29/2000 12:51:08
All,
I have a series of interlocking problems that are causing my compile to
die. I am in the midst of upgrading to -current, and going through the
a.out to ELF transition. System is an IBM Thinkpad 600E running
NetBSD/i386-current (1.4T), upgraded from 1.4.1.
Here's the output of make in /usr/src:
all ===> lib
all ===> lib/csu
all ===> lib/csu/i386_elf
cc -O2 -fPIC -Werror -DLIBC_SCCS -DPIC -DDYNAMIC -DELFSIZE=32 -I/usr/src/lib/csu/i386_elf/../../../libexec/ld.elf_so -I/usr/src/lib/csu/i386_elf/../common_elf -c /usr/src/lib/csu/i386_elf/../common_elf/crtbegin.c -o crtbegin.o
/usr/src/lib/csu/i386_elf/../common_elf/crtbegin.c:62: section attributes are not supported for this target
/usr/src/lib/csu/i386_elf/../common_elf/crtbegin.c:64: section attributes are not supported for this target
/usr/src/lib/csu/i386_elf/../common_elf/crtbegin.c:94: section attributes are not supported for this target
/usr/src/lib/csu/i386_elf/../common_elf/crtbegin.c:112: section attributes are not supported for this target
*** Error code 1
[more error messages]
I have done a make clean, a make includes, and a make obj, and it makes no
difference. I did make build, and it ended up in the same spot. I
figured that maybe this was a problem with make or ld, I had compiled them
just before I had upgraded the machine but not since. So, I tried to
recompile gnu/dist, and I get this error:
ld: No reference to __DYNAMIC
In fact, it seems I get this error with anything I try to compile.
Here's the output of the configure script of a sample program in the ports
tree (www/links):
configure:557: checking for a BSD compatible install
configure:610: checking whether build environment is sane
configure:667: checking whether make sets ${MAKE}
configure:713: checking for working aclocal
configure:726: checking for working autoconf
configure:739: checking for working automake
configure:752: checking for working autoheader
configure:765: checking for working makeinfo
configure:785: checking for gcc
configure:898: checking whether the C compiler (cc -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib) works
configure:914: cc -o conftest -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib conftest.c 1>&5
ld: No reference to __DYNAMIC
collect2: ld returned 1 exit status
configure: failed program was:
#line 909 "configure"
#include "confdefs.h"
main(){return(0);}
So now I can't compile anything and I'm rather stuck. Please, can someone
help me figure this out?
--N.