Errors building binutils from source.

John Darrington john@darrington.wattle.id.au
Sat May 12 06:02:00 GMT 2012


1. I checkout out binutils from CVS.

2. I ran configure --target=i386-elf

3. make

I get an error :

gcc -g -O2  -o sysinfo sysinfo.o syslex.o
syslex.o: In function `main':
/Scratch/john/binutils/binutils/syslex.c:1: multiple definition of `main'
sysinfo.o:/Scratch/john/binutils/binutils/sysinfo.c:1: first defined here
collect2: ld returned 1 exit status
make[2]: *** [sysinfo] Fehler 1
make[2]: Leaving directory `/Scratch/john/binutils/binutils'

4. If I ignore this error, I see that several more appear later.  For example:

make[4]: Entering directory `/Scratch/john/binutils/ld'
gcc -DHAVE_CONFIG_H -I. -I/home/john/binutils/src/ld  -I. -I/home/john/binutils/src/ld -I../bfd -I/home/john/binutils/src/ld/../bfd -I/home/john/binutils/src/ld/../include  -g -O2 -DENABLE_PLUGINS -DLOCALEDIR="\"/usr/local/share/locale\""  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT ldlang.o -MD -MP -MF .deps/ldlang.Tpo -c -o ldlang.o /home/john/binutils/src/ld/ldlang.c
/home/john/binutils/src/ld/ldlang.c: In function ‘lang_output_section_statement_lookup’:
/home/john/binutils/src/ld/ldlang.c:1411: error: ‘SPECIAL’ undeclared (first use in this function)
/home/john/binutils/src/ld/ldlang.c:1411: error: (Each undeclared identifier is reported only once
/home/john/binutils/src/ld/ldlang.c:1411: error: for each function it appears in.)
/home/john/binutils/src/ld/ldlang.c: In function ‘lang_insert_orphan’:



What am I doing wrong?

J'



-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://keys.gnupg.net or any PGP keyserver for public key.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://sourceware.org/pipermail/binutils/attachments/20120512/23344df9/attachment.sig>


More information about the Binutils mailing list