This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug target/29555] New: failure building cross compiler for fr30


I want to build a cross compiler for fr30 architecture (including c++) and 
configure in a separate build dir as follows:
../gcc-4.1.1/configure --prefix=/usr/cross --target=fr30-unknown-elf
--with-gnu-as --with-gnu-ld --enable-languages=c --disable-libssp

Then is make and make install, which runs fine without any error.
Then I build newlib with my fresh fr30-unknown-elf-gcc and install it which 
also runs fine.

Then I configure gcc to build a c++ compiler:
../gcc-4.1.1/configure --prefix=/usr/cross --target=fr30-unknown-elf
--with-gnu-as --with-gnu-ld --enable-languages=c,c++ --disable-libssp
--with-newlib
The following make aborts with this error:

/home/larsi/gcc/gcc-build/./gcc/xgcc -shared-libgcc
-B/home/larsi/gcc/gcc-build/./gcc -nostdinc++
-L/home/larsi/gcc/gcc-build/fr30-unknown-elf/libstdc++-v3/src
-L/home/larsi/gcc/gcc-build/fr30-unknown-elf/libstdc++-v3/src/.libs
-B/usr/cross/fr30-unknown-elf/bin/ -B/usr/cross/fr30-unknown-elf/lib/ -isystem
/usr/cross/fr30-unknown-elf/include -isystem
/usr/cross/fr30-unknown-elf/sys-include
-I/home/larsi/gcc/gcc-build/fr30-unknown-elf/libstdc++-v3/include/fr30-unknown-elf
-I/home/larsi/gcc/gcc-build/fr30-unknown-elf/libstdc++-v3/include
-I/home/larsi/gcc/gcc-4.1.1/libstdc++-v3/libsupc++ -g -Os
-fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual
-fdiagnostics-show-location=once -c
../../../../gcc-4.1.1/libstdc++-v3/src/fstream-inst.cc -o 
fstream-inst.o
/home/larsi/gcc/gcc-build/fr30-unknown-elf/libstdc++-v3/include/bits/fstream.tcc: 
In member function 'typename std::basic_filebuf<_CharT, _Traits>::pos_type 
std::basic_filebuf<_CharT, _Traits>::_M_seek(typename _Traits::off_type, 
std::_Ios_Seekdir, typename _Traits::state_type) [with _CharT = char, _Traits 
= std::char_traits<char>]':
/home/larsi/gcc/gcc-build/fr30-unknown-elf/libstdc++-v3/include/bits/fstream.tcc:753: 
error: insn does not satisfy its constraints:
(insn 191 190 23 
0
/home/larsi/gcc/gcc-build/fr30-unknown-elf/libstdc++-v3/include/bits/postypes.h:117 
(set (mem/s/c:SI (plus:SI (reg/f:SI 14 fp [42])
                (const_int 4 [0x4])) [27 <result>._M_state+4 S4 A32])
        (reg:SI 2 r2 [orig:1+4 ] [1])) 6 {movsi_internal} (nil)
    (expr_list:REG_DEAD (reg:SI 2 r2 [orig:1+4 ] [1])
        (nil)))
/home/larsi/gcc/gcc-build/fr30-unknown-elf/libstdc++-v3/include/bits/fstream.tcc:753: 
internal compiler error: in copyprop_hardreg_forward_1, at regrename.c:1592
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[4]: *** [fstream-inst.lo] Fehler 1
make[4]: Leaving directory 
`/home/larsi/gcc/gcc-build/fr30-unknown-elf/libstdc++-v3/src'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory 
`/home/larsi/gcc/gcc-build/fr30-unknown-elf/libstdc++-v3'
make[2]: *** [all] Fehler 2
make[2]: Leaving directory 
`/home/larsi/gcc/gcc-build/fr30-unknown-elf/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Fehler 2
make[1]: Leaving directory `/home/larsi/gcc/gcc-build'
make: *** [all] Fehler 2


-- 
           Summary: failure building cross compiler for fr30
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: larsi at wh2 dot tu-dresden dot de
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: fr30-unknown-elf


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29555


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