Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 386931 - www-client/chromium-16.0.904.0-r1 fails with /lib/gcc/x86_64-nacl/4.4.3/crtbegin.o: file not recognized: File format not recognized
Summary: www-client/chromium-16.0.904.0-r1 fails with /lib/gcc/x86_64-nacl/4.4.3/crtbe...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
: 387015 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-10-12 16:31 UTC by Kamen Dokov
Modified: 2011-10-25 07:13 UTC (History)
6 users (show)

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


Attachments
build.log (build.log.tar.gz,220.12 KB, application/x-gzip)
2011-10-12 16:33 UTC, Kamen Dokov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kamen Dokov 2011-10-12 16:31:35 UTC
www-client/chromium-16.0.904.0-r1 fails with:


/usr/lib64/nacl-toolchain-newlib/bin/../lib/gcc/x86_64-nacl/4.4.3/crtbegin.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
scons: *** [scons-out/nacl_irt-x86-64/obj/src/untrusted/irt/irt.nexe] Error 1
scons: building terminated because of errors.

**********************************************************************
COMMAND EXECUTION REPORT
**********************************************************************
  16 Install
   2 set
   7 x86_64-nacl-ar
  75 x86_64-nacl-g++
  96 x86_64-nacl-gcc
   7 x86_64-nacl-ranlib

**********************************************************************
ENVIRONMENT USAGE REPORT
**********************************************************************
   6  nacl-x86-64
 197  nacl_irt-x86-64

**********************************************************************
ERROR REPORT: 1 failures
**********************************************************************

scons-out/nacl_irt-x86-64/obj/src/untrusted/irt/irt.nexe failed: Error 1

make: *** [out/Release/nacl_irt_x86_64.nexe] Error 3
make: *** Waiting for unfinished jobs....
emake failed


Reproducible: Always

Steps to Reproduce:
1.emerge =www-client/chromium-16.0.904.0-r1 
2.
3.
Actual Results:  
/usr/lib64/nacl-toolchain-newlib/bin/../lib/gcc/x86_64-nacl/4.4.3/crtbegin.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
scons: *** [scons-out/nacl_irt-x86-64/obj/src/untrusted/irt/irt.nexe] Error 1
scons: building terminated because of errors.

**********************************************************************
COMMAND EXECUTION REPORT
**********************************************************************
  16 Install
   2 set
   7 x86_64-nacl-ar
  75 x86_64-nacl-g++
  96 x86_64-nacl-gcc
   7 x86_64-nacl-ranlib

**********************************************************************
ENVIRONMENT USAGE REPORT
**********************************************************************
   6  nacl-x86-64
 197  nacl_irt-x86-64

**********************************************************************
ERROR REPORT: 1 failures
**********************************************************************

scons-out/nacl_irt-x86-64/obj/src/untrusted/irt/irt.nexe failed: Error 1

make: *** [out/Release/nacl_irt_x86_64.nexe] Error 3
make: *** Waiting for unfinished jobs....
emake failed


Expected Results:  
To build and install fine!

emerge --info '=www-client/chromium-16.0.904.0-r1'

Portage 2.2.0_alpha39_p20 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.13-r4, 2.6.39.1-zen-00003-g6d6d304 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-2.6.39.1-zen-00003-g6d6d304-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6000+-with-gentoo-2.1
Timestamp of tree: Wed, 12 Oct 2011 13:30:01 +0000
ccache version 3.1.6 [enabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r3
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo repo_name-seti
Installed sets: @kde, @koffice
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64-sse3 -O2 -pipe -fomit-frame-pointer -ftree-vectorize -ftree-loop-linear"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/env.d /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/config/kdm/ /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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="-march=athlon64-sse3 -O2 -pipe -fomit-frame-pointer -ftree-vectorize -ftree-loop-linear -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs candy ccache distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.osuosl.org http://mirrors.ludost.net/gentoo/ ftp://mirrors.ludost.net/gentoo/ http://gentoo.osuosl.org http://mirror.gentoo.no/ http://gentoo.ynet.sk/pub http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="bg_BG.UTF-8"
LC_ALL="bg_BG.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--enable-new-dtags"
LINGUAS="en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
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/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acl acpi alsa amd64 bash-completion bitmap-fonts bluray branding cairo cdr cli consolekit cracklib crypt cups dbus dri dvd dvdr dvdread encode esd evo exceptions fam fortran gcj gdbm gif gpm handbook html iconv ipv6 isdnlog jpeg kde4 ldap mad midi mikmod mmx mmxext mp3 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ocamlopt ogg opengl openmp oss pam pcre pdf png policykit pppd pulseaudio python qt3support qt4 quicktime readline reflection sdl session spell spl sqlite sse sse2 sse3 ssl ssse3 svg tcpd threads tiff truetype truetype-fonts type1-fonts udev udisks unicode upower vorbis xcomposite xml xorg xv zeroconf zlib zsh-completion" ALSA_CARDS="hda-nvidia hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dumpio env expires ext_filter file_cache filter headers ident imagemap include info log_config log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http rewrite setenvif speling status substitute unique_id userdir usertrack version vhost_alias cgid cgi" APACHE2_MPMS="worker" CAMERAS="ptp2 canon" ELIBC="glibc" GPSD_PROTOCOLS="aivdm ashtech clientdebug earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 navcom nmea ntrip oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar timing tnt tripmate tsip ubx" INPUT_DEVICES="evdev" KERNEL="linux" LINGUAS="en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

emerge -pqv '=www-client/chromium-16.0.904.0-r1'

[ebuild     U ] www-client/chromium-16.0.904.0-r1 [16.0.891.0] USE="chromedriver cups kerberos pulseaudio -bindist -gnome -gnome-keyring -test" LINGUAS="-am -ar -bg -bn -ca -cs -da -de -el -en_GB -es -es_LA -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -nb -nl -pl -pt_BR -pt_PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -vi -zh_CN -zh_TW"
Comment 1 Kamen Dokov 2011-10-12 16:33:49 UTC
Created attachment 289685 [details]
build.log
Comment 2 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-10-13 02:45:22 UTC
Does it fail without ccache? Can anyone reproduce on x86? Does that version work for anyone else?

Does the error persist after syncing and rebuilding nacl-toolchain-newlib?
Comment 3 Cédric Jeanneret 2011-10-13 06:08:49 UTC
Hello,

I tried to update chromium today - it still fails, this time for www-client/chromium-16.0.904.0-r2 - exactly the same error.

Versions:
dev-lang/nacl-toolchain-newlib 0_p6869
gcc (Gentoo 4.5.3-r1 p1.0, pie-0.4.5) 4.5.3

NO ccache enabled, NO distcc or else.
Comment 4 Kamen Dokov 2011-10-13 08:07:19 UTC
(In reply to comment #2)
> Does it fail without ccache? Can anyone reproduce on x86? Does that version
> work for anyone else?
> 
> Does the error persist after syncing and rebuilding nacl-toolchain-newlib?


Rebuilt  nacl-toolchain-newlib and tried to build chromium with

FEATURES='-ccache' MAKEOPTS='-j1' emerge  =www-client/chromium-16.0.904.0-r2

No progress so far, the result is still:

/usr/lib64/nacl-toolchain-newlib/bin/../lib/gcc/x86_64-nacl/4.4.3/crtbegin.o: file not recognized: File format not recognized
Comment 5 Albert W. Hopkins 2011-10-13 20:36:39 UTC
chromium-16.0.904.0-r2 has this problem for me.  I don't use ccache or distcc.
Comment 6 GUnit 2011-10-14 16:17:51 UTC
The version chromium-16.0.906.0 works fine for me on gentoo amd64.
Comment 7 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-10-15 03:04:30 UTC
*** Bug 387015 has been marked as a duplicate of this bug. ***
Comment 8 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-10-15 03:13:05 UTC
"Fixed", NaCl disabled again.
Comment 9 Kamen Dokov 2011-10-15 05:53:01 UTC
It compiles fine now.
Thank you!
Comment 10 Neil Bothwick 2011-10-20 10:23:28 UTC
The same error is now occurring with www-client/chromium-16.0.912.0.
Comment 11 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-10-20 10:36:08 UTC
(In reply to comment #10)
> The same error is now occurring with www-client/chromium-16.0.912.0.

Have you updated nacl-toolchain-newlib?
Comment 12 Kamen Dokov 2011-10-20 12:13:01 UTC
Compiles to me fine, but yesterday i rebuilt nacl.

chromium is becoming a pretty big build (with all that v8, driver, nacl), it wouldn't heart if there is a chromium-bin for once in a while ;)
Comment 13 Andrew Waters 2011-10-20 13:22:05 UTC
Using
  dev-lang/nacl-toolchain-newlib-0_p6869-r1
  www-client/chromium-16.0.912.0
  dev-lang/v8-3.6.6.3

worked for me.
Comment 14 Neil Bothwick 2011-10-20 17:55:56 UTC
I hadn't updated it because the autounmask output from the previous merge only added 0_p6869 so the r1 release was still masked, and the chromium ebuild doesn't depend on a specific version. I also had v8-9999 installed, also because of the autoumnsk output from the previous ebuild. 

With dev-lang/nacl-toolchain-newlib-0_p6869-r1 and dev-lang/v8-3.6.6.3, the latest chromium built fine.
Comment 15 SpanKY gentoo-dev 2011-10-25 07:13:11 UTC
RESTRICT=strip is probably way too course

you could use STRIP_MASK="*.o"

or another option might be to do it the way we do with gcc.  something like:
    env RESTRICT="" CHOST=${CHOST} prepstrip "${D}${BINPATH}"
    env RESTRICT="" CHOST=${CTARGET} prepstrip "${D}${LIBPATH}"