Error building gdb on Linux for PowerPC

Robert S. Grimes rsg at
Thu Jan 12 14:17:04 UTC 2006

Hi All,

Trying to build gdb for RTEMS 4.6.5 on Gentoo Linux for target PowerPC, 
and I get the following error.  Any ideas? 

Note: I couldn't just install the prebuilt binaries, as RPM doesn't seem 
to work on Gentoo.  Besides, because Gentoo is a source distribution, 
it's more kosher to build.  ;-)



gcc -g -O -I. -I../../../gdb-5.2/sim/ppc 
-I../../../gdb-5.2/sim/ppc/../../include -I../../bfd 
-I../../../gdb-5.2/sim/ppc/../../bfd -I../../gdb 
-I../../../gdb-5.2/sim/ppc/../../mmalloc  -c ../../../gdb-5.2/sim/ppc/lf.c
../../../gdb-5.2/sim/ppc/lf.c:276:27: missing terminating " character
../../../gdb-5.2/sim/ppc/lf.c: In function `lf_print__gnu_copyleft':
../../../gdb-5.2/sim/ppc/lf.c:279: error: syntax error before "Copyright"
../../../gdb-5.2/sim/ppc/lf.c:279: error: syntax error at '@' token
../../../gdb-5.2/sim/ppc/lf.c:281: error: `you' undeclared (first use in 
this function)
../../../gdb-5.2/sim/ppc/lf.c:281: error: (Each undeclared identifier is 
reported only once
../../../gdb-5.2/sim/ppc/lf.c:281: error: for each function it appears in.)
../../../gdb-5.2/sim/ppc/lf.c:283: error: `either' undeclared (first use 
in this function)../../../gdb-5.2/sim/ppc/lf.c:287: error: `without' 
undeclared (first use in this function)
../../../gdb-5.2/sim/ppc/lf.c:298:1: missing terminating " character
make[2]: *** [lf.o] Error 1
make[2]: Leaving directory `/root/till/rtems/tools/b-gdb/sim/ppc'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/till/rtems/tools/b-gdb/sim'
make: *** [all-sim] Error 2

More information about the users mailing list