Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 350051 - sys-devel/gcc-4.5.2 fails to emerge (ARM) - {standard input}:41899: Error: open CFI at the end of file; missing .cfi_endproc directive
Summary: sys-devel/gcc-4.5.2 fails to emerge (ARM) - {standard input}:41899: Error: op...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-29 16:21 UTC by John L. Poole
Modified: 2011-07-06 18:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,1.31 MB, text/plain)
2010-12-29 16:22 UTC, John L. Poole
Details
environment (environment,188.44 KB, text/plain)
2010-12-29 16:22 UTC, John L. Poole
Details
emerge --info =sys-devel/gcc-4.5.2 (gcc-emerge-info.txt,3.94 KB, text/plain)
2010-12-29 16:23 UTC, John L. Poole
Details
gcc-4.4.5 build.log.gz (build.log.gz,230.33 KB, application/x-gzip)
2011-07-06 18:27 UTC, Matt Turner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John L. Poole 2010-12-29 16:21:12 UTC
>>> Failed to emerge sys-devel/gcc-4.5.2, Log file:

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

 * Messages for package sys-devel/gcc-4.5.2:

 * ERROR: sys-devel/gcc-4.5.2 failed:
 *   emake failed with bootstrap-lean
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 4971:  Called toolchain_src_compile
 *   environment, line 5566:  Called gcc_src_compile
 *   environment, line 3119:  Called gcc_do_make
 *   environment, line 2906:  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.2',
 * the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.5.2'.
 * The complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.5.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.5.2/temp/environment'.
 * S: '/var/tmp/portage/sys-devel/gcc-4.5.2/work/build'
plug ~ # 

Reproducible: Always

Steps to Reproduce:
1. emerge sys-devel/gcc
2.
3.

Actual Results:  
>>> Failed to emerge sys-devel/gcc-4.5.2, Log file:

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

 * Messages for package sys-devel/gcc-4.5.2:

 * ERROR: sys-devel/gcc-4.5.2 failed:
 *   emake failed with bootstrap-lean
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 4971:  Called toolchain_src_compile
 *   environment, line 5566:  Called gcc_src_compile
 *   environment, line 3119:  Called gcc_do_make
 *   environment, line 2906:  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.2',
 * the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.5.2'.
 * The complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.5.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.5.2/temp/environment'.
 * S: '/var/tmp/portage/sys-devel/gcc-4.5.2/work/build'
plug ~ # 

Expected Results:  
successful emerge

plug tmp # cat /etc/portage/package.keywords |grep gcc
sys-devel/gcc ~arm
plug tmp # cat /etc/portage/package.use |grep gcc
plug tmp #
Comment 1 John L. Poole 2010-12-29 16:22:36 UTC
Created attachment 258364 [details]
build.log
Comment 2 John L. Poole 2010-12-29 16:22:56 UTC
Created attachment 258365 [details]
environment
Comment 3 John L. Poole 2010-12-29 16:23:22 UTC
Created attachment 258367 [details]
emerge --info =sys-devel/gcc-4.5.2
Comment 4 John L. Poole 2010-12-29 16:24:33 UTC
 emerge -pqv =sys-devel/gcc-4.5.2

[ebuild     U ] sys-devel/gcc-4.5.2 [4.5.1-r1] USE="fortran mudflap nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -graphite -gtk (-hardened) (-libffi) -lto (-multilib) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla" 
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-12-29 16:39:27 UTC
MAKEOPTS="-j17" on native ARM hardware?

Does the result change with -j1 at all? Related post (found via searching for "missing .cfi_endproc directive" on google) http://forums.gentoo.org/viewtopic-t-829611.html
Comment 6 John L. Poole 2010-12-29 16:42:38 UTC
(In reply to comment #5)
> MAKEOPTS="-j17" on native ARM hardware?
> 
> Does the result change with -j1 at all? Related post (found via searching for
> "missing .cfi_endproc directive" on google)
> http://forums.gentoo.org/viewtopic-t-829611.html
> 

Good catch.  I usually use distributed cross compiling to other servers, I had turned off distcc for this GCC install and neglected to readjust the -j setting.  I'll try with "-j2" and if that fails with "-j1" and then advise.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2010-12-29 17:39:08 UTC
(In reply to comment #6)
> Good catch.  I usually use distributed cross compiling to other servers, I had
> turned off distcc for this GCC install and neglected to readjust the -j
> setting.  I'll try with "-j2" and if that fails with "-j1" and then advise.

Even with distcc enabled, most compiling in sys-devel/gcc explicitly disables distcc again, so you should probably add an exemption to /etc/portage/env/sys-devel/gcc (FEATURES="${FEATURES} -distcc"; MAKEOPTS="-j1") to prevent that from happening anyway.
Comment 8 John L. Poole 2010-12-30 16:24:06 UTC
I started the compile yesterday morning with "-j2", it's still compiling.  Looks good.  I'll report when it is completed.
Comment 9 John L. Poole 2010-12-30 17:27:32 UTC
emerge successfully concluded using "-j2".  Took about 22 hours to emerge.

Great suggestion in comment #7.

Thank you!

As far as I am concerned, this bug may be closed.  However, I'm not certain of the protocol, so I'm reopening this bug to trigger action which may simply be to close or document whatever else is deemed appropriate (e.g. user error?).
Comment 10 Matt Turner gentoo-dev 2011-07-06 18:27:03 UTC
Created attachment 279255 [details]
gcc-4.4.5 build.log.gz
Comment 11 Matt Turner gentoo-dev 2011-07-06 18:29:19 UTC
Perhaps this is a different bug. I don't know.

# emerge --info
Portage 2.1.10.3 (default/linux/amd64/10.0, gcc-4.5.2, glibc-2.12.2-r0, 3.0.0-rc1+ x86_64)
=================================================================
System uname: Linux-3.0.0-rc1+-x86_64-Intel-R-_Core-TM-_i5-2500K_CPU_@_3.30GHz-with-gentoo-2.0.2
Timestamp of tree: Tue, 05 Jul 2011 20:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.25-r2
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.2-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.1
sys-devel/binutils:       2.21
sys-devel/gcc:            4.5.2, 4.6.0
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.2.10
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo x11 xhub gnome x-portage-overlay geki-overlay x-mattst88
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 Q3AEULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_BZIP2_COMMAND="lbzip2"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/x11 /usr/portage/local/layman/xhub /usr/portage/local/layman/gnome /home/mattst88/projects/portage-overlay /usr/portage/local/gekis-playground /usr/portage/local/mattst88"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 bash-completion bzip2 cairo cdparanoia cdr cli consolekit cracklib crypt cscope cups curl cxx dbus dhclient dri dvd encode exif expat ffmpeg flac fontconfig fuse gconf gd gdu gif gimp git gnome gnome-keyring gnutls gpg graphite gstreamer gtk iconv icu java jpeg jpeg2k lcms libnotify lm_sensors lto lzo mad mbox mmap mmx mmxext mng modules mp3 mpeg mudflap multilib nautilus ncurses nfs nls nptl nptlonly nsplugin ogg openal opengl openmp pam pch pcre pdf perl png policykit ppds pppd pulseaudio python rar readline samba sdl session sndfile spell sqlite sse sse2 sse3 sse4 ssl ssse3 svg sysfs system-sqlite tcpd theora threads tiff truetype udev unicode urandom v4l v4l2 vaapi vorbis x264 xcb xml xorg xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


The hardened/stage2 builds also seem to be failing because of this.
Comment 12 SpanKY gentoo-dev 2011-07-06 18:56:31 UTC
it's a different issue.  you have an ICE while the reporter here had an OOM.