Subject: Re: Compiling problem in lib/csu/i386_elf
To: Scott Aaron Bamford <firstname.lastname@example.org>
From: Nate Johnston <email@example.com>
Date: 03/01/2000 09:21:35
On Tue, 29 Feb 2000, Scott Aaron Bamford wrote:
> > I have a series of interlocking problems that are causing my compile to
> > die.
> > 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
> cd $SRC/gnu/lib/libbdf && make
I did this, except it is libbfd, and this is what I get:
building shared object bfd library
make: don't know how to make /usr/lib/crtbeginS.o. Stop
And crtbegin and crtend (the ones that are wanted by this part of the
compile) are what I was compiling above. I get the above error if I have
OBJECT_FORMAT set to either value, and if I touch the relevant
crt[begin,end]S.o then I get an ld error.
> try the script on
> if that fails (what i suggested above is basicly a cut down of the
> sections involved in your question from that script).
I did try that script, it failed with the error I included originally.