This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/13277] New: Error when trying to make gcc a cross compiler with newlib instead of glibc
- From: "pee at mit dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Dec 2003 05:52:17 -0000
- Subject: [Bug c/13277] New: Error when trying to make gcc a cross compiler with newlib instead of glibc
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I'm trying to build an Ada cross compiler using GCC head version. First, I make binutils (also head
version). Second, I build gcc (head version) giving it --with-newlib. Thrid, I build newlib (also
head version). The error occurs when I try to build newlib. Here are the details:
1. the exact version of GCC;
GCC head version (GCC 3.4 from CVS repository downloaded on 12/2/03)
2. the system type;
i686-linux-pc, running Redhat 9.0, kernel version 2.4.20-20.9
3. the options given when GCC was configured/built;
TARDIR=tars
PREFIX=/home/pee/XComp_source/CrossGNAT/script_3.4/XCompiler
TARGET=powerpc-elf
../gcc-3.4-core/configure --target=$TARGET --prefix=$PREFIX \
--enable-languages=c,ada --with-local-prefix=${PREFIX}/${TARGET} \
--without-headers --with-newlib --disable-shared \
--with-gnu-as --with-gnu-ld --enable-threads \
2>&1 | tee configure.log
make all-gcc install-gcc 2>&1 | tee make.log
4. the complete command line that triggers the bug;
gunzip -c ${TARDIR}/binutils-2.15.tar.gz | tar xf -
mkdir build-binutils; cd build-binutils
../binutils-2.15/configure --target=$TARGET --prefix=$PREFIX \
2>&1 | tee configure.log
make all install 2>&1 | tee make.log
cd ..
../gcc-3.4-core/configure --target=$TARGET --prefix=$PREFIX \
--enable-languages=c,ada --with-local-prefix=${PREFIX}/${TARGET} \
--without-headers --with-newlib --disable-shared \
--with-gnu-as --with-gnu-ld --enable-threads \
2>&1 | tee configure.log
make all-gcc install-gcc 2>&1 | tee make.log
cd ..
gunzip -c ${TARDIR}/newlib-1.12.tar.gz | tar xf -
mkdir build-newlib; cd build-newlib
../newlib1.12/configure --target=$TARGET --prefix=$PREFIX \
2>&1 | tee configure.log
make all install info install-info 2>&1 | tee make.log
cd ..
5. the compiler output (error messages, warnings, etc.); and
the preprocessed file ( *.i* ) that triggers the bug, generated by adding -save-temps to the
complete compilation command, or, in the case of a bug report for the GNAT front end, a
complete set of source files (see below).
powerpc-elf-gcc -B/home/pee/XComp_source/CrossGNAT/script_3.4/build-newlib/powerpc-el
f/le/newlib/ -isystem /home/pee/XComp_source/CrossGNAT/script_3.4/build-newlib/powerp
c-elf/le/newlib/targ-include -isystem /home/pee/XComp_source/CrossGNAT/script_3.4/new
lib-1.12.0/newlib/libc/include -mlittle -mrelocatable-lib -mno-eabi -mstrict-align -
DPACKAGE=\"newlib\" -DVERSION=\"1.11.0\" -I. -I../../../../../../newlib-1.12.0/newli
b/libc/stdio -O2 -mrelocatable-lib -mno-eabi -mstrict-align -DMISSING_SYSCALL_NAMES
-DWANT_PRINTF_LONG_LONG -fno-builtin -O2 -g -O2 -O2 -g -O2 -mlittle -mrelocatabl
e-lib -mno-eabi -mstrict-align -fshort-enums -DINTEGER_ONLY -c ../../../../../../newl
ib-1.12.0/newlib/libc/stdio/vfprintf.c -o vfiprintf.o
powerpc-elf-gcc -B/home/pee/XComp_source/CrossGNAT/script_3.4/build-newlib/powerpc-el
f/le/newlib/ -isystem /home/pee/XComp_source/CrossGNAT/script_3.4/build-newlib/powerp
c-elf/le/newlib/targ-include -isystem /home/pee/XComp_source/CrossGNAT/script_3.4/new
lib-1.12.0/newlib/libc/include -mlittle -mrelocatable-lib -mno-eabi -mstrict-align -
DPACKAGE=\"newlib\" -DVERSION=\"1.11.0\" -I. -I../../../../../../newlib-1.12.0/newli
b/libc/stdio -O2 -mrelocatable-lib -mno-eabi -mstrict-align -DMISSING_SYSCALL_NAMES
-DWANT_PRINTF_LONG_LONG -fno-builtin -O2 -g -O2 -O2 -g -O2 -mlittle -mrelocatabl
e-lib -mno-eabi -mstrict-align -fshort-enums -c ../../../../../../newlib-1.12.0/newli
b/libc/stdio/vfprintf.c
../../../../../../newlib-1.12.0/newlib/libc/stdio/vfprintf.c: In function `_vfprintf_
r':
../../../../../../newlib-1.12.0/newlib/libc/stdio/vfprintf.c:1194: error: insn does n
ot satisfy its constraints:
(insn 6069 29 30 0 (set (reg/v:DI 30 [orig:140 _double_ ] [140])
(const_int 0 [0x0])) 326 {*movdi_internal32} (nil)
(nil))
../../../../../../newlib-1.12.0/newlib/libc/stdio/vfprintf.c:1194: internal compiler
error: in reload_cse_simplify_operands, at postreload.c:378
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[7]: *** [vfprintf.o] Error 1
make[7]: Leaving directory `/home/pee/XComp_source/CrossGNAT/script_3.4/build-newlib/
powerpc-elf/le/newlib/libc/stdio'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory `/home/pee/XComp_source/CrossGNAT/script_3.4/build-newlib/
powerpc-elf/le/newlib/libc'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/pee/XComp_source/CrossGNAT/script_3.4/build-newlib/
powerpc-elf/le/newlib'
make[4]: *** [all-recursive-am] Error 2
make[4]: Leaving directory `/home/pee/XComp_source/CrossGNAT/script_3.4/build-newlib/
powerpc-elf/le/newlib'
make[3]: *** [multi-do] Error 1
make[3]: Leaving directory `/home/pee/XComp_source/CrossGNAT/script_3.4/build-newlib/
powerpc-elf/newlib'
make[2]: *** [all-multi] Error 2
make[2]: Leaving directory `/home/pee/XComp_source/CrossGNAT/script_3.4/build-newlib/
powerpc-elf/newlib'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/home/pee/XComp_source/CrossGNAT/script_3.4/build-newlib/
powerpc-elf/newlib'
make: *** [all-target-newlib] Error 2
--
Summary: Error when trying to make gcc a cross compiler with
newlib instead of glibc
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pee at mit dot edu
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13277