this is not a standard setup, Eric Botcazou suggested to bring up the issue here. For 3.3.x, 3.4.x and some versions before, Debian uses a biarch setup, defaulting the compiler to 32bit, and having additional support for 64bit. With current mainline this setup currently bootstraps, but fails to build the 64bit libstdc++. A similiar failure in libstdc++ is seen, when configuring a biarch compiler for ix86/x86_64, defaulting to ix86 (will open a separate report).
Matthias /home/doko/gcc/4.0/gcc-4.0-4.0ds0/build/gcc/xgcc -shared-libgcc -B/home/doko/gcc /4.0/gcc-4.0-4.0ds0/build/gcc/ -nostdinc++ -L/home/doko/gcc/4.0/gcc-4.0-4.0ds0/b uild/sparc-linux/64/libstdc++-v3/src -L/home/doko/gcc/4.0/gcc-4.0-4.0ds0/build/s parc-linux/64/libstdc++-v3/src/.libs -B/usr/sparc-linux/bin/ -B/usr/sparc-linux/ lib/ -isystem /usr/sparc-linux/include -isystem /usr/sparc-linux/sys-include -m6 4 -I/home/doko/gcc/4.0/gcc-4.0-4.0ds0/build/sparc-linux/64/libstdc++-v3/include/ sparc-linux -I/home/doko/gcc/4.0/gcc-4.0-4.0ds0/build/sparc-linux/64/libstdc++-v 3/include -I/home/doko/gcc/4.0/gcc-4.0-4.0ds0/src/libstdc++-v3/libsupc++ -O2 -g -O2 -g -O2 -D_GNU_SOURCE -m64 -fno-implicit-templates -Wall -Wextra -Wwrite-stri ngs -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sect ions -c ../../../../../src/libstdc++-v3/src/fstream-inst.cc -fPIC -DPIC -o .lib s/fstream-inst.o /home/doko/gcc/4.0/gcc-4.0-4.0ds0/build/sparc-linux/64/libstdc++-v3/include/bits /fstream.tcc: In member function 'typename std::basic_filebuf<_CharT, _Traits>:: pos_type std::basic_filebuf<_CharT, _Traits>::seekoff(typename _Traits::off_type , std::_Ios_Seekdir, std::_Ios_Openmode) [with _CharT = char, _Traits = std::cha r_traits<char>]': /home/doko/gcc/4.0/gcc-4.0-4.0ds0/build/sparc-linux/64/libstdc++-v3/include/bits /fstream.tcc:682: internal compiler error: in simplify_gen_subreg, at simplify-r tx.c:3779 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. Attached are: - the preprocessed source of fstream-inst.cc - the patches which are used to build this biarch setup The compiler is configured with: ../src/configure --enable-languages=c,c++ --with-cpu=v7 sparc-linux -- Summary: biarch bootstrap fails on sparc-linux (CVS 20041121) Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: debian-gcc at lists dot debian dot org CC: bcollins at debian dot org,drow at false dot org,ebotcazou at libertysurf dot fr,gcc-bugs at gcc dot gnu dot org GCC build triplet: sparc-linux GCC host triplet: sparc-linux GCC target triplet: sparc-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18615