Subject: Re: Compiling problem in lib/csu/i386_elf
To: Nate Johnston <njohnston@broadwing.com>
From: Scott Aaron Bamford <sab@zeekuschrist.com>
List: current-users
Date: 02/29/2000 22:18:43
>
> 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 had the same problem when i frist moved from 1.4.1 to current.
is you object OBJECT_FMT set up right?
i fixed the problem by
SRC=/usr/src
OBJECT_FMT=a.out
cd $SRC/gnu/lib/libbdf && make
OBJECT_FMT=ELF
cd $SRC && make includes
cd $SRC/lib/csu && make all install
try the script on
http://www.netbsd.org/Documentation/elf.html#updating-from-a.out
if that fails (what i suggested above is basicly a cut down of the
sections involved in your question from that script).
sab
--------------------------------------
sab@zeekuschrist.com | sab@ansic.net