Summary: | GCC 3.3.2 "internal error" while trying to compile MIPS binutils readelf.c, LANG="es_ES@euro" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Hector Martin <marcansoft> |
Component: | [OLD] GCC Porting | Assignee: | MIPS Porters <mips> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | pplux |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
URL: | http://members.lycos.co.uk/marcansoft/subidos/misc/test.i | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Hector Martin
2004-03-14 05:05:26 UTC
Quite fresh gentoo system, isntalled some days ago. Nothing strange about the installation of gcc3. I get an internal error during compilation of binutils for MIPSR5900 for the Playstation2. Only happens with LANG="es_ES@euro" seemingly, and when using -Wall Reproducible: Always Steps to Reproduce: 1. get the linked file 2. export LANG="es_ES@euro" 3. execute gcc -Wall -c test.i Actual Results: complete output: marcansoft@marcansoft:~$ gcc -Wall -c test.i readelf.c: En la función `dump_relocations': readelf.c:522: aviso: formato unsigned int, argumento long unsigned int (argumento 2) readelf.c:540: aviso: formato int, argumento long unsigned int (argumento 2) readelf.c: En la función `get_dynamic_type': readelf.c:675: aviso: demasiados argumentos para el formato readelf.c:681: aviso: formato unsigned int, argumento long unsigned int (argumento 3) readelf.c: En la función `get_segment_type': readelf.c:911: aviso: formato int, argumento long unsigned int (argumento 3) readelf.c:918: aviso: formato unsigned int, argumento long unsigned int (argumento 3) readelf.c: En la función `process_section_headers': readelf.c:1606: aviso: formato unsigned int, argumento tipo diferente (argumento 3) readelf.c: En la función `process_relocs': readelf.c:1747: aviso: formato unsigned int, argumento long unsigned int (argumento 2) readelf.c:1747: aviso: formato int, argumento long unsigned int (argumento 3) readelf.c:1787: aviso: formato unsigned int, argumento long unsigned int (argumento 2) readelf.c:1787: aviso: formato int, argumento tipo diferente (argumento 3) readelf.c: En la función `dynamic_segment_mips_val': readelf.c:1856: aviso: se usó Error interno del compilador: Error al reportar rutinas reentradas. Por favor envíe un reporte completo de `bugs', con el código preprocesado si es apropiado. Vea <URL:http://bugs.gentoo.org/> para más instrucciones. Preprocessed source stored into /tmp/ccWpYB7F.out file, please attach this to your bugreport Expected Results: if there is an error, at least not crash. And there even isn't an error, unset LANG and it compiles. Removing -Wall makes it compile too. Seems to be something with message output. Accent marks, maybe? gcc -v: marcansoft@marcansoft:~$ gcc -v Leyendo especificaciones de /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/specs Configurado con: /var/tmp/portage/gcc-3.3.2-r5/work/gcc-3.3.2/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info --enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-languages=c,c++,f77,objc --enable-threads=posix --enable-long-long --disable-checking --enable-cstdio=stdio --enable-clocale=generic --enable-__cxa_atexit --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3 --with-local-prefix=/usr/local --enable-shared --enable-nls --without-included-gettext --disable-multilib Modelo de hilos: posix gcc versión 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7) root@marcansoft:/home/marcansoft# emerge info Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-gentoo-r1) ================================================================= System uname: 2.6.3-gentoo-r1 i686 AMD Athlon(TM) XP1800+ Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-xp -funroll-loops -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -funroll-loops -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://212.219.247.12/sites/www.ibiblio.org/gentoo/ ftp://ftp.caliu.info/pub/gentoo/ http://212.219.247.13/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X aalib acpi alsa arts avi berkdb cdr crypt cups dvd dvdr encode foomaticdb gdbm gif gpm gtk gtk2 imlib jabber java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba scanner sdl slang spell sse ssl svga tcltk tcpd truetype usb x86 xml2 xmms xv zlib" download test.i at the url above. Read the comment wrong, kicking back over to gcc-porting. So, you're trying to compile binutils as a cross-compiler for Playstation2? What binutils version are you using, as the only modern PS2 patch for binutils that I am aware of is for 2.13.2. Without this patch, I do not believe binutils can compile for the R5900 instruction set. (And it's possible you're triggering some really obscure bug by trying to cross-compile PS2 binutils w/ ES as LANG). wow, sorry for not looking back at the bug for so long but I didn't receive any email notifications! I was compiling the stuff at ps2dev.sourceforge.net, plain EE compiler/binutils. Note I'm not using THAT compiler, I'm COMPILING IT using the standard Gentoo gcc for (in my case) athlon-xp. Just running the following command on a standard gentoo with LANG="es_ES@euro" reproduces the problem. gcc -Wall -c test.i I think it's some obscure bug wiht the spanish language, maybe accent marks or something, it might have something to do with UTF-8. Same problem here with gentoo-ppc using gcc 3.3.3_pre20040408 compiled with nls. If LANG environment variable is set (es_ES) Gcc doesn't work with most part of my own code of my projects (mainly C++). Please set this bug platform independent. (or x86 and ppc) ppc is using a non standard toolchain (please direct all toolchain bugs to the ppc team) mips is aiming to mark gcc-3.4.x stable soon see bug #61728 per comment #4 As this bug was filed for mips I'm reassigning bug to mips team, otherwise toolchain@ would close it as WORKFORSOME. Closing as WORKSFORME. If this issue crops back up in the future, feel free to re-open. |