Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 390121

Summary: Error: open CFI at the end of file; missing .cfi_endproc directive - when trying to emerge gcc, cmake on armv7a-hardfloat-linux-gnueabi installation on Pandaboard
Product: Gentoo Linux Reporter: Rob Stoddard <rob>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED DUPLICATE    
Severity: normal CC: arm
Priority: Normal    
Version: unspecified   
Hardware: ARM   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Rob Stoddard 2011-11-10 20:33:49 UTC
I tried to install gnome-light on my Pandaboard, which is running armv7a-hardfloat-linux-gnueabi.  Cmake failed to emerge with this really odd looking error.  I figured maybe I could clear it up by emerging a new version of gcc.  I got more-or-less exactly the same error from GCC!

Reproducible: Always

Steps to Reproduce:
1. Try to emerge gcc on a new hardfloat installation on Pandaboard
  -or-
2. Try to emerge cmake on a hardfloat installation on Pandaboard


Actual Results:  
On emerging gcc:

/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./prev-gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./prev-gcc/ -B/usr/armv7a-hardfloat-linux-gnueabi/bin/ -B/usr/armv7a-hardfloat-linux-gnueabi/bin/ -B/usr/armv7a-hardfloat-linux-gnueabi/lib/ -isystem /usr/armv7a-hardfloat-linux-gnueabi/include -isystem /usr/armv7a-hardfloat-linux-gnueabi/sys-include    -c   -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -gtoggle -DIN_GCC   -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/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc -I/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc/../libcpp/include  -I/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc/../libdecnumber/dpd -I../libdecnumber     /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc/fold-const.c -o fold-const.o
/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./prev-gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./prev-gcc/ -B/usr/armv7a-hardfloat-linux-gnueabi/bin/ -B/usr/armv7a-hardfloat-linux-gnueabi/bin/ -B/usr/armv7a-hardfloat-linux-gnueabi/lib/ -isystem /usr/armv7a-hardfloat-linux-gnueabi/include -isystem /usr/armv7a-hardfloat-linux-gnueabi/sys-include    -c   -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -gtoggle -DIN_GCC   -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/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc -I/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc/../libcpp/include  -I/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc/../libdecnumber/dpd -I../libdecnumber     /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc/function.c -o function.o
/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc/fold-const.c: In function 'fold_overflow_warning':
/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc/fold-const.c:1026:5: warning: format not a string literal and no format arguments
{standard input}: Assembler messages:
{standard input}:138967: Warning: end of file not at end of a line; newline inserted
{standard input}:140819: Error: unknown pseudo-op: `.lvl1282'
{standard input}:140819: Error: open CFI at the end of file; missing .cfi_endproc directive
xgcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <http://bugs.gentoo.org/> for instructions.
make[3]: *** [insn-recog.o] Error 1
make[3]: *** Waiting for unfinished jobs....
rm gcc.pod gfortran.pod
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build'
make: *** [bootstrap-lean] Error 2
emake failed
 * ERROR: sys-devel/gcc-4.5.3-r1 failed (compile phase):
 *   emake failed with bootstrap-lean
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 4563:  Called toolchain_src_compile
 *   environment, line 5263:  Called gcc_do_make
 *   environment, line 2723:  Called die
 * The specific snippet of code:
 *       emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
 *
 * If you need support, post the output of 'emerge --info =sys-devel/gcc-4.5.3-r1',
 * the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.5.3-r1'.
 * The complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.5.3-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.5.3-r1/temp/environment'.
 * S: '/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build'

>>> Failed to emerge sys-devel/gcc-4.5.3-r1, Log file:

>>>  '/var/tmp/portage/sys-devel/gcc-4.5.3-r1/temp/build.log'

 * Messages for package sys-devel/gcc-4.5.3-r1:

 * ERROR: sys-devel/gcc-4.5.3-r1 failed (compile phase):
 *   emake failed with bootstrap-lean
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 4563:  Called toolchain_src_compile
 *   environment, line 5263:  Called gcc_do_make
 *   environment, line 2723:  Called die
 * The specific snippet of code:
 *       emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
 *
 * If you need support, post the output of 'emerge --info =sys-devel/gcc-4.5.3-r1',
 * the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.5.3-r1'.
 * The complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.5.3-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.5.3-r1/temp/environment'.
 * S: '/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build'

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.



On emerging cmake:


armv7a-hardfloat-linux-gnueabi-g++ -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard  -I/var/tmp/portage/dev-util/cmake-2.8.4-r1/work/cmake-2.8.4/Bootstrap.cmk -I/var/tmp/portage/dev-util/cmake-2.8.4-r1/work/cmake-2.8.4/Source   -I/var/tmp/portage/dev-util/cmake-2.8.4-r1/work/cmake-2.8.4/Bootstrap.cmk -c /var/tmp/portage/dev-util/cmake-2.8.4-r1/work/cmake-2.8.4/Source/cmScriptGenerator.cxx -o cmScriptGenerator.o
armv7a-hardfloat-linux-gnueabi-g++ -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard  -I/var/tmp/portage/dev-util/cmake-2.8.4-r1/work/cmake-2.8.4/Bootstrap.cmk -I/var/tmp/portage/dev-util/cmake-2.8.4-r1/work/cmake-2.8.4/Source   -I/var/tmp/portage/dev-util/cmake-2.8.4-r1/work/cmake-2.8.4/Bootstrap.cmk -c /var/tmp/portage/dev-util/cmake-2.8.4-r1/work/cmake-2.8.4/Source/cmSourceFile.cxx -o cmSourceFile.o
{standard input}: Assembler messages:
{standard input}:19021: Warning: end of file not at end of a line; newline inserted
{standard input}:19714: Error: open CFI at the end of file; missing .cfi_endproc directive
armv7a-hardfloat-linux-gnueabi-g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <http://bugs.gentoo.org/> for instructions.
gmake: *** [cmMakefile.o] Error 1
gmake: *** Waiting for unfinished jobs....
---------------------------------------------
Error when bootstrapping CMake:
Problem while running gmake
---------------------------------------------
Log of errors: /var/tmp/portage/dev-util/cmake-2.8.4-r1/work/cmake-2.8.4/Bootstrap.cmk/cmake_bootstrap.log
---------------------------------------------
 * ERROR: dev-util/cmake-2.8.4-r1 failed (prepare phase):
 *   Bootstrap failed
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_prepare
 *   environment, line 3360:  Called _src_bootstrap
 *   environment, line  540:  Called die
 * The specific snippet of code:
 *       ./bootstrap --prefix="${T}/cmakestrap/" ${par_arg} || die "Bootstrap failed"
 *
 * If you need support, post the output of 'emerge --info =dev-util/cmake-2.8.4-r1',
 * the complete build log and the output of 'emerge -pqv =dev-util/cmake-2.8.4-r1'.
 * The complete build log is located at '/var/tmp/portage/dev-util/cmake-2.8.4-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/cmake-2.8.4-r1/temp/environment'.
 * S: '/var/tmp/portage/dev-util/cmake-2.8.4-r1/work/cmake-2.8.4'

>>> Failed to emerge dev-util/cmake-2.8.4-r1, Log file:

>>>  '/var/tmp/portage/dev-util/cmake-2.8.4-r1/temp/build.log'

 * Messages for package dev-util/cmake-2.8.4-r1:

 * ERROR: dev-util/cmake-2.8.4-r1 failed (prepare phase):
 *   Bootstrap failed
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_prepare
 *   environment, line 3360:  Called _src_bootstrap
 *   environment, line  540:  Called die
 * The specific snippet of code:
 *       ./bootstrap --prefix="${T}/cmakestrap/" ${par_arg} || die "Bootstrap failed"
 *
 * If you need support, post the output of 'emerge --info =dev-util/cmake-2.8.4-r1',
 * the complete build log and the output of 'emerge -pqv =dev-util/cmake-2.8.4-r1'.
 * The complete build log is located at '/var/tmp/portage/dev-util/cmake-2.8.4-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/cmake-2.8.4-r1/temp/environment'.
 * S: '/var/tmp/portage/dev-util/cmake-2.8.4-r1/work/cmake-2.8.4'

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.



Expected Results:  
Gcc and cmake should build properly.

/etc/make.conf:

CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
CXXFLAGS="${CFLAGS}"
CHOST="armv7a-hardfloat-linux-gnueabi"
USE="-qt4 -kde X dbus gtk gnome gdu consolekit policykit extras"
MAKEOPTS="-j5"

This is a more-or-less new install, as of a few days ago, however, I had downloaded the binaries used for the install a while ago.

stage3-armv7a_hardfp-20110408.tar.bz2

and the latest portage.  If this is a known bug with this stage 3 that has been squashed, I wouldn't shed a tear if I had to wipe and reinstall this system; please let me know.   Thank you.
Comment 1 Agostino Sarubbo gentoo-dev 2011-11-10 20:55:59 UTC
please add complete build log
Comment 2 SpanKY gentoo-dev 2011-11-11 01:37:51 UTC
xgcc: Internal error: Killed (program cc1)

install more ram / more swap / don't use -pipe / etc...

read `dmesg` to find out what happened

*** This bug has been marked as a duplicate of bug 20600 ***