tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Crosscompile on arm using build.sh (Segmentation fault)
Hi
I'm running current on ARM926EJ-S as we are porting NetBSD to i.mx23.
The system has 64M RAM and gigabyte of swap.
As for a test for system stability I tried to build much of a code as possible
so I tried to build tools using recent -current:
The failing commands was:
build.sh -m evbarm -u -U tools
And the output:
nbgmake[1]: Leaving directory
`/home/petri/NetBSD-current/src/tools/gcc/obj/build/fixincludes'
nbgmake[1]: Entering directory
`/home/petri/NetBSD-current/src/tools/gcc/obj/build/gcc'
cc -c -O -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-Wold-style-definition -Wc++-compat -DHAVE_CONFIG_H -I. -I.
-I/home/petri/NetBSD-current/src/tools/gcc/../../external/gpl3/gcc/dist/gcc
-I/home/petri/NetBSD-current/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/.
-I/home/petri/NetBSD-current/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/../include
-I/home/petri/NetBSD-current/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/../libcpp/include
-I/home/petri/NetBSD-current/src/obj/tooldir.NetBSD-6.99.15-evbarm/include
-I/home/petri/NetBSD-current/src/obj/tooldir.NetBSD-6.99.15-evbarm/include
-I/home/petri/NetBSD-current/src/obj/tooldir.NetBSD-6.99.15-evbarm/include
-I/home/petri/NetBSD-current/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/../libdecnumber
-I/home/petri/NetBSD-current/src/tools/gcc/../../ext
ernal/gpl3/gcc/dist/gcc/../libdecnumber/dpd -I../libdecnumber
-I/usr/include/libelf -DNETBSD_TOOLS -DTARGET_SYSTEM_ROOT=0
-DTARGET_SYSTEM_ROOT_RELOCATABLE insn-automata.c -o insn-automata.o
insn-automata.c:13057:2: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
nbgmake[1]: *** [insn-automata.o] Error 1
nbgmake[1]: Leaving directory
`/home/petri/NetBSD-current/src/tools/gcc/obj/build/gcc'
nbgmake: *** [all-gcc] Error 2
*** Failed target: .build_done
*** Failed command: (cd build && /usr/bin/env -i gcc_cv_libc_provides_ssp=yes
gcc_cv_as_sparc_gotdata_op=no AR=ar
AWK=/home/petri/NetBSD-current/src/obj/tooldir.NetBSD-6.99.15-evbarm/bin/nbawk
CC=cc CFLAGS=-O CPPFLAGS= CXX=c++ CXXFLAGS=-O
INSTALL=/home/petri/NetBSD-current/src/obj/tooldir.NetBSD-6.99.15-evbarm/bin/arm--netbsdelf-install\
-c\ -p\ -r LDFLAGS=
LEX=/home/petri/NetBSD-current/src/obj/tooldir.NetBSD-6.99.15-evbarm/bin/nblex
M4=/home/petri/NetBSD-current/src/obj/tooldir.NetBSD-6.99.15-evbarm/bin/nbm4
MAKE=/home/petri/NetBSD-current/src/obj/tooldir.NetBSD-6.99.15-evbarm/bin/nbgmake
PATH="/home/petri/NetBSD-current/src/obj/tooldir.NetBSD-6.99.15-evbarm/bin:$PATH"
RANLIB=ranlib
YACC=/home/petri/NetBSD-current/src/obj/tooldir.NetBSD-6.99.15-evbarm/bin/nbyacc
MACHINE=
MAKEINFO=/home/petri/NetBSD-current/src/obj/tooldir.NetBSD-6.99.15-evbarm/bin/nbmakeinfo
LIBGCC= LIBGCC1= LIBGCC1_TEST= LIBGCC2= INSTALL_LIBGCC= EXTRA_PARTS=
CPPFLAGS=-DNETBSD_TOOLS\ -DTARGET_SYSTEM_ROOT=0\
\ -DTARGET_SYSTEM_ROOT_RELOCATABLE AR=ar RANLIB=ranlib BISON=true DESTDIR=
INSTALL=/home/petri/NetBSD-current/src/obj/tooldir.NetBSD-6.99.15-evbarm/bin/arm--netbsdelf-install\
-c\ -p\ -r
/home/petri/NetBSD-current/src/obj/tooldir.NetBSD-6.99.15-evbarm/bin/nbgmake -e
MACHINE=
MAKEINFO=/home/petri/NetBSD-current/src/obj/tooldir.NetBSD-6.99.15-evbarm/bin/nbmakeinfo
LIBGCC= LIBGCC1= LIBGCC1_TEST= LIBGCC2= INSTALL_LIBGCC= EXTRA_PARTS=
CPPFLAGS=-DNETBSD_TOOLS\ -DTARGET_SYSTEM_ROOT=0\ \
-DTARGET_SYSTEM_ROOT_RELOCATABLE AR=ar RANLIB=ranlib BISON=true DESTDIR=
INSTALL=/home/petri/NetBSD-current/src/obj/tooldir.NetBSD-6.99.15-evbarm/bin/arm--netbsdelf-install\
-c\ -p\ -r all-gcc)
*** Error code 2
Stop.
nbmake: stopped in /home/petri/NetBSD-current/src/tools/gcc
*** Failed target: dependall
*** Failed command: cd "/home/petri/NetBSD-current/src/tools/gcc";
/home/petri/NetBSD-current/src/obj/tooldir.NetBSD-6.99.15-evbarm/bin/nbmake
realall
*** Error code 1
Stop.
nbmake: stopped in /home/petri/NetBSD-current/src/tools/gcc
*** Failed target: dependall-gcc
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift;
case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="";
real="/home/petri/NetBSD-current/src/tools" ;; *) this="${dir}/";
real="/home/petri/NetBSD-current/src/tools/${dir}" ;; esac; show=${this:-.};
echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" &&
/home/petri/NetBSD-current/src/obj/tooldir.NetBSD-6.99.15-evbarm/bin/nbmake
_THISDIR_="${this}" "$@" ${target}; }; _makedirtarget gcc dependall
*** Error code 1
Stop.
nbmake: stopped in /home/petri/NetBSD-current/src/tools
*** Failed target: build_install
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift;
case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="";
real="/home/petri/NetBSD-current/src/tools" ;; *) this="${dir}/";
real="/home/petri/NetBSD-current/src/tools/${dir}" ;; esac; show=${this:-.};
echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" &&
/home/petri/NetBSD-current/src/obj/tooldir.NetBSD-6.99.15-evbarm/bin/nbmake
_THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . dependall-gcc
*** Error code 1
Stop.
nbmake: stopped in /home/petri/NetBSD-current/src/tools
ERROR: Failed to make build_install in "tools"
*** BUILD ABORTED ***
I am able to reproduce the problem:
oli$ ulimit -a
time (-t seconds ) unlimited
file (-f blocks ) unlimited
data (-d kbytes ) 131072
stack (-s kbytes ) 2048
coredump (-c blocks ) unlimited
memory (-m kbytes ) 62100
locked memory (-l kbytes ) 20700
thread (-r threads ) 160
process (-p processes ) 148
nofiles (-n descriptors) 128
vmemory (-v kbytes ) unlimited
sbsize (-b bytes ) unlimited
oli$ pwd
/home/petri/NetBSD-current/src/tools/gcc/obj/build/gcc
oli$ cat crash.sh
cc -c -O -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-Wold-style-definition -Wc++-compat -DHAVE_CONFIG_H -I. -I.
-I/home/petri/NetBSD-current/src/tools/gcc/../../external/gpl3/gcc/dist/gcc
-I/home/petri/NetBSD-current/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/.
-I/home/petri/NetBSD-current/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/../include
-I/home/petri/NetBSD-current/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/../libcpp/include
-I/home/petri/NetBSD-current/src/obj/tooldir.NetBSD-6.99.15-evbarm/include
-I/home/petri/NetBSD-current/src/obj/tooldir.NetBSD-6.99.15-evbarm/include
-I/home/petri/NetBSD-current/src/obj/tooldir.NetBSD-6.99.15-evbarm/include
-I/home/petri/NetBSD-current/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/../libdecnumber
-I/home/petri/NetBSD-current/src/tools/gcc/../../ext
ernal/gpl3/gcc/dist/gcc/../libdecnumber/dpd -I../libdecnumber
-I/usr/include/libelf -DNETBSD_TOOLS -DTARGET_SYSTEM_ROOT=0
-DTARGET_SYSTEM_ROOT_RELOCATABLE insn-automata.c -o insn-automata.o
oli$ ./crash.sh
insn-automata.c:13057:2: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
oli$ uname -a
NetBSD oli 6.99.15 NetBSD 6.99.15 (IMX23_OLINUXINO) #5: Sun Dec 16 00:57:18 EET
2012
petri%joo.lan@localhost:/work/nb/obj/home/petri/dev/NetBSD/src/sys/arch/evbarm/compile/IMX23_OLINUXINO
evbarm
Building in a loop the build fails some times in a different locations:
insn-automata.c:13057:2: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
insn-automata.c:16130:5: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
insn-automata.c:36715:2: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
Operating systems seems to run stable, but I'd like to know is this due
memory error or bug of a gcc itself. How could I confirm this?
Petri
Home |
Main Index |
Thread Index |
Old Index