This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
m32r-elf libgloss problem in newlib 1.9.0
- To: joel dot sherrill at OARcorp dot com
- Subject: m32r-elf libgloss problem in newlib 1.9.0
- From: Doug Evans <dje at transmeta dot com>
- Date: Tue, 24 Jul 2001 13:47:07 -0700 (PDT)
- Cc: newlib at sources dot redhat dot com
- References: <3B5DD559.BF981EE1@OARcorp.com>
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.