Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401827 - dev-lang/v8: build failure on ~arm, -m32 offending flag appended to g++
Summary: dev-lang/v8: build failure on ~arm, -m32 offending flag appended to g++
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-01 16:47 UTC by Fabio Erculiani (RETIRED)
Modified: 2012-04-10 09:05 UTC (History)
1 user (show)

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


Attachments
build log (build.log,30.90 KB, text/plain)
2012-02-01 16:48 UTC, Fabio Erculiani (RETIRED)
Details
this patch properly sets the target_arch when native building (fix-arm-target.patch,231 bytes, patch)
2012-02-01 16:52 UTC, Fabio Erculiani (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Erculiani (RETIRED) gentoo-dev 2012-02-01 16:47:02 UTC
I've tested versions 3.7.x and 3.8.x and both are affected.
When building on armv7 hardfp under qemu-user, dev-lang/v8 fails to build.

See attached build.log and proposed fix.
(Give me a few minutes)

Reproducible: Always
Comment 1 Fabio Erculiani (RETIRED) gentoo-dev 2012-02-01 16:48:31 UTC
Created attachment 300677 [details]
build log
Comment 2 Fabio Erculiani (RETIRED) gentoo-dev 2012-02-01 16:48:52 UTC
Portage 2.2.0_alpha81 (default/linux/arm/10.0, gcc-4.6.2, glibc-2.13-r4, 3.0.0-sabayon armv7l)
=================================================================
System uname: Linux-3.0.0-sabayon-armv7l-with-gentoo-2.1
Timestamp of tree: Wed, 01 Feb 2012 07:45:01 +0000
distcc 3.1 armv7a-hardfloat-linux-gnueabi [enabled]
ccache version 3.1.6 [enabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3::go-genlink
dev-lang/python:          2.6.7-r2, 2.7.2-r3
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.8.3-r1::sabayon-distro
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
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.6.2::sabayon-distro
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4::sabayon-distro
Repositories: gentoo sabayon sabayon-distro pandaboard go-genlink
Installed sets: 
ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-O2 -ftree-vectorize -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /etc/entropy /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/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /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 -ftree-vectorize -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distcc distcc-pump distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="usr/share/gtk-doc/html/*"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j16 -s"
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="/var/lib/layman/sabayon /var/lib/layman/sabayon-distro /var/lib/layman/pandaboard /var/lib/layman/genlink"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl alsa arm berkdb bzip2 cli cpudetection cracklib crypt cups cxx dbus flac fortran gdbm goom gpm iconv ipv6 joystick modules mp3 mudflap ncurses nls nptl nptlonly openmp pam pcre pppd readline session ssl sysfs tcpd theora threads truetype unicode vorbis xorg xvid zlib" 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" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev omapfb dummy v4l" 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, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Fabio Erculiani (RETIRED) gentoo-dev 2012-02-01 16:52:34 UTC
Created attachment 300679 [details, diff]
this patch properly sets the target_arch when native building
Comment 4 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2012-02-01 17:47:22 UTC
(In reply to comment #3)
> Created attachment 300679 [details, diff] [details, diff]
> this patch properly sets the target_arch when native building

Looks good, but could you please go with this to upstream first? I can backport any patches as needed, but I'd like the v8 developers to check this for correctness.

Please paste the links to upstream report here.
Comment 5 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2012-03-14 11:15:32 UTC
@arm please get this fixed (that includes upstreaming the fixes) or drop your keywords.

Fabio, I seriously guess you could get this fixed much faster by contacting upstream as suggested above. I simply don't have an ARM box for testing, and fixes like that should be made upstream.
Comment 6 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2012-03-24 10:34:02 UTC
~arm keyword dropped (this is not hardfp specific).