This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Errors building binutils from source.

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?


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

Attachment: signature.asc
Description: Digital signature

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]