m32r-elf libgloss problem in newlib 1.9.0

Doug Evans dje@transmeta.com
Tue Jul 24 13:47:00 GMT 2001


Joel Sherrill writes:
 > The build fails with...
 > 
 > /usr3/ftp_archive/gnu/gcc/ss/b3/b-m32r-elf/gcc/xgcc
 > -B/usr3/ftp_archive/gnu/gcc/
 > ss/b3/b-m32r-elf/gcc/ -nostdinc
 > -B/usr3/ftp_archive/gnu/gcc/ss/b3/b-m32r-elf/m32
 > r-elf/newlib/ -isystem
 > /usr3/ftp_archive/gnu/gcc/ss/b3/b-m32r-elf/m32r-elf/newli
 > b/targ-include -isystem
 > /usr3/ftp_archive/gnu/gcc/ss/b3/gcc-30-cvs/newlib/libc/i
 > nclude -B/opt/gnucross/m32r-elf/bin/ -B/opt/gnucross/m32r-elf/lib/ -isystem
 > /opt
 > /gnucross/m32r-elf/include -O2 -g  -I.
 > -I../../../../gcc-30-cvs/libgloss/m32r/..
 >  `if [ -d ./../../newlib ]; then echo -I./../../newlib/targ-include
 > -I../../../.
 > ./gcc-30-cvs/libgloss/m32r/../../newlib/libc/include; fi` -O2 -I.
 > -I../../../../
 > gcc-30-cvs/libgloss/m32r/.. -c -g -Os
 > ../../../../gcc-30-cvs/libgloss/m32r/m32r-
 > lib.c
 > make[2]: *** No rule to make target
 > `../../../../gcc-30-cvs/libgloss/m32r/../../
 > gdb/m32r-stub.c', needed by `m32r-stub.o'.  Stop.
 > make[2]: Leaving directory
 > `/usr3/ftp_archive/gnu/gcc/ss/b3/b-m32r-elf/m32r-elf/
 > libgloss/m32r'
 > 
 > It looks like that the libgloss included with newlib 1.9.0 has never been
 > built outside a one-source tree with gdb.  I just checked CVS and the
 > Makefile.in still reaches up and over into gdb.  How should this be fixed?

One isn't allowed to put m32r-stub.c in libgloss, thus
there is no real solution.



More information about the Newlib mailing list