Hi,

during cross compilation on amd64 host to arm target I get the followng ICE:

arm-v4t-linux-gnueabi-gcc -c -D_GNU_SOURCE -I proc -isystem
/home/mkl/pengutronix/phytec/OSELAS.BSP-phyCORE-trunk/platform-phyCORE-i.MX27-glibc-2.8/sysroot-target/include
-isystem
/home/mkl/pengutronix/phytec/OSELAS.BSP-phyCORE-trunk/platform-phyCORE-i.MX27-glibc-2.8/sysroot-target/usr/include
-fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls
-Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -O2 -s  -Wdeclaration-after-statement
-Wpadded -Wstrict-aliasing -fweb -frename-registers -fomit-frame-pointer
-fno-inline-functions -DSHARED=1 -fpic proc/sysinfo.c -o proc/sysinfo.o
proc/sysinfo.c: In function 'get_pid_digits':
proc/sysinfo.c:896: internal compiler error: Segmentation fault


same with -v:

arm-v4t-linux-gnueabi-gcc -c -D_GNU_SOURCE -I proc -isystem
/home/mkl/pengutronix/phytec/OSELAS.BSP-phyCORE-trunk/platform-phyCORE-i.MX27-glibc-2.8/sysroot-target/include
-isystem
/home/mkl/pengutronix/phytec/OSELAS.BSP-phyCORE-trunk/platform-phyCORE-i.MX27-glibc-2.8/sysroot-target/usr/include
-fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls
-Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -O2 -s  -Wdeclaration-after-statement
-Wpadded -Wstrict-aliasing -fweb -frename-registers -fomit-frame-pointer
-fno-inline-functions -DSHARED=1 -fpic proc/sysinfo.c -o proc/sysinfo.o -v
Using built-in specs.
Target: arm-v4t-linux-gnueabi
Configured with:
/home/mkl/pengutronix/toolchain/OSELAS.Toolchain-trunk/build-cross/gcc-4.3.1/configure
--target=arm-v4t-linux-gnueabi --with-arch=armv4t --with-float=soft
--with-fpu=vfp --enable-__cxa_atexit --disable-nls --disable-decimal-float
--disable-fixed-point --disable-win32-registry --enable-symvers=gnu
--with-pkgversion=OSELAS.Toolchain-trunk [EMAIL PROTECTED]
--with-gmp=/home/mkl/pengutronix/toolchain/OSELAS.Toolchain-trunk/sysroot-host
--with-mpfr=/home/mkl/pengutronix/toolchain/OSELAS.Toolchain-trunk/sysroot-host
--disable-multilib
--with-sysroot=/opt/OSELAS.Toolchain-trunk/arm-v4t-linux-gnueabi/gcc-4.3.1-glibc-2.8-kernel-2.6.26-sanitized/sysroot-arm-v4t-linux-gnueabi
--prefix=/opt/OSELAS.Toolchain-trunk/arm-v4t-linux-gnueabi/gcc-4.3.1-glibc-2.8-kernel-2.6.26-sanitized
--enable-languages=c,c++ --enable-threads=posix --enable-c99 --enable-long-long
--enable-libstdcxx-debug --enable-profile --enable-checking=release
--enable-shared
Thread model: posix
gcc version 4.3.1 (OSELAS.Toolchain-trunk)
COLLECT_GCC_OPTIONS='-c' '-D_GNU_SOURCE' '-I' 'proc' '-isystem'
'/home/mkl/pengutronix/phytec/OSELAS.BSP-phyCORE-trunk/platform-phyCORE-i.MX27-glibc-2.8/sysroot-target/include'
'-isystem'
'/home/mkl/pengutronix/phytec/OSELAS.BSP-phyCORE-trunk/platform-phyCORE-i.MX27-glibc-2.8/sysroot-target/usr/include'
'-fno-common' '-ffast-math' '-W' '-Wall' '-Wshadow' '-Wcast-align'
'-Wredundant-decls' '-Wbad-function-cast' '-Wcast-qual' '-Wwrite-strings'
'-Waggregate-return' '-Wstrict-prototypes' '-Wmissing-prototypes' '-O2' '-s'
'-Wdeclaration-after-statement' '-Wpadded' '-Wstrict-aliasing' '-fweb'
'-frename-registers' '-fomit-frame-pointer' '-fno-inline-functions'
'-DSHARED=1' '-fpic' '-o' 'proc/sysinfo.o' '-v' '-march=armv4t'
'-mfloat-abi=soft' '-mfpu=vfp'

/opt/OSELAS.Toolchain-trunk/arm-v4t-linux-gnueabi/gcc-4.3.1-glibc-2.8-kernel-2.6.26-sanitized/libexec/gcc/arm-v4t-linux-gnueabi/4.3.1/cc1
-quiet -v -I proc -D_GNU_SOURCE -DSHARED=1 -isystem
/home/mkl/pengutronix/phytec/OSELAS.BSP-phyCORE-trunk/platform-phyCORE-i.MX27-glibc-2.8/sysroot-target/include
-isystem
/home/mkl/pengutronix/phytec/OSELAS.BSP-phyCORE-trunk/platform-phyCORE-i.MX27-glibc-2.8/sysroot-target/usr/include
proc/sysinfo.c -quiet -dumpbase sysinfo.c -march=armv4t -mfloat-abi=soft
-mfpu=vfp -auxbase-strip proc/sysinfo.o -O2 -W -Wall -Wshadow -Wcast-align
-Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings
-Waggregate-return -Wstrict-prototypes -Wmissing-prototypes
-Wdeclaration-after-statement -Wpadded -Wstrict-aliasing -version -fno-common
-ffast-math -fweb -frename-registers -fomit-frame-pointer -fno-inline-functions
-fpic -o /tmp/ccAySUCd.s
ignoring nonexistent directory
"/opt/OSELAS.Toolchain-trunk/arm-v4t-linux-gnueabi/gcc-4.3.1-glibc-2.8-kernel-2.6.26-sanitized/sysroot-arm-v4t-linux-gnueabi/usr/local/include"
#include "..." search starts here:
#include <...> search starts here:
 proc

/home/mkl/pengutronix/phytec/OSELAS.BSP-phyCORE-trunk/platform-phyCORE-i.MX27-glibc-2.8/sysroot-target/include

/home/mkl/pengutronix/phytec/OSELAS.BSP-phyCORE-trunk/platform-phyCORE-i.MX27-glibc-2.8/sysroot-target/usr/include

/opt/OSELAS.Toolchain-trunk/arm-v4t-linux-gnueabi/gcc-4.3.1-glibc-2.8-kernel-2.6.26-sanitized/lib/gcc/arm-v4t-linux-gnueabi/4.3.1/include

/opt/OSELAS.Toolchain-trunk/arm-v4t-linux-gnueabi/gcc-4.3.1-glibc-2.8-kernel-2.6.26-sanitized/lib/gcc/arm-v4t-linux-gnueabi/4.3.1/include-fixed

/opt/OSELAS.Toolchain-trunk/arm-v4t-linux-gnueabi/gcc-4.3.1-glibc-2.8-kernel-2.6.26-sanitized/lib/gcc/arm-v4t-linux-gnueabi/4.3.1/../../../../arm-v4t-linux-gnueabi/include

/opt/OSELAS.Toolchain-trunk/arm-v4t-linux-gnueabi/gcc-4.3.1-glibc-2.8-kernel-2.6.26-sanitized/sysroot-arm-v4t-linux-gnueabi/usr/include
End of search list.
GNU C (OSELAS.Toolchain-trunk) version 4.3.1 (arm-v4t-linux-gnueabi)
        compiled by GNU C version 4.2.3 (Debian 4.2.3-5), GMP version 4.2.2,
MPFR version 2.3.1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 85c0010da2dd76e8224d87b88d7316fe
proc/sysinfo.c: In function 'get_pid_digits':
proc/sysinfo.c:896: internal compiler error: Segmentation fault


The attached minial testcase: It boils down to "-O2 -frename-registers":

arm-v4t-linux-gnueabi-gcc test.i -o test.o -c  -O2 -frename-registers -v
Using built-in specs.
Target: arm-v4t-linux-gnueabi
Configured with:
/home/mkl/pengutronix/toolchain/OSELAS.Toolchain-trunk/build-cross/gcc-4.3.1/configure
--target=arm-v4t-linux-gnueabi --with-arch=armv4t --with-float=soft
--with-fpu=vfp --enable-__cxa_atexit --disable-nls --disable-decimal-float
--disable-fixed-point --disable-win32-registry --enable-symvers=gnu
--with-pkgversion=OSELAS.Toolchain-trunk [EMAIL PROTECTED]
--with-gmp=/home/mkl/pengutronix/toolchain/OSELAS.Toolchain-trunk/sysroot-host
--with-mpfr=/home/mkl/pengutronix/toolchain/OSELAS.Toolchain-trunk/sysroot-host
--disable-multilib
--with-sysroot=/opt/OSELAS.Toolchain-trunk/arm-v4t-linux-gnueabi/gcc-4.3.1-glibc-2.8-kernel-2.6.26-sanitized/sysroot-arm-v4t-linux-gnueabi
--prefix=/opt/OSELAS.Toolchain-trunk/arm-v4t-linux-gnueabi/gcc-4.3.1-glibc-2.8-kernel-2.6.26-sanitized
--enable-languages=c,c++ --enable-threads=posix --enable-c99 --enable-long-long
--enable-libstdcxx-debug --enable-profile --enable-checking=release
--enable-shared
Thread model: posix
gcc version 4.3.1 (OSELAS.Toolchain-trunk)
COLLECT_GCC_OPTIONS='-o' 'test.o' '-c' '-O2' '-frename-registers' '-v'
'-march=armv4t' '-mfloat-abi=soft' '-mfpu=vfp'

/opt/OSELAS.Toolchain-trunk/arm-v4t-linux-gnueabi/gcc-4.3.1-glibc-2.8-kernel-2.6.26-sanitized/libexec/gcc/arm-v4t-linux-gnueabi/4.3.1/cc1
-fpreprocessed test.i -quiet -dumpbase test.i -march=armv4t -mfloat-abi=soft
-mfpu=vfp -auxbase-strip test.o -O2 -version -frename-registers -o
/tmp/ccKA7wKV.s
GNU C (OSELAS.Toolchain-trunk) version 4.3.1 (arm-v4t-linux-gnueabi)
        compiled by GNU C version 4.2.3 (Debian 4.2.3-5), GMP version 4.2.2,
MPFR version 2.3.1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 85c0010da2dd76e8224d87b88d7316fe
test.i: In function 'get_pid_digits':
test.i:27: internal compiler error: Segmentation fault

cheers, Marc


-- 
           Summary: internal compiler error: Segmentation fault during cross
                    compilation
           Product: gcc
           Version: 4.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mkl at pengutronix dot de
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: arm-v4t-linux-gnueabi


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

Reply via email to