Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 374323 - www-client/chromium-14.0.803.0 build fail for arm platform
Summary: www-client/chromium-14.0.803.0 build fail for arm platform
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-07 10:04 UTC by Yixun Lan
Modified: 2011-07-17 04:33 UTC (History)
1 user (show)

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


Attachments
full build log of chromium (chromium_14.log.tar.gz2,76.72 KB, application/octet-stream)
2011-07-07 10:13 UTC, Yixun Lan
Details
this patch enable eabi_hardfloat (chromium-arm-vfp-r0.patch,432 bytes, text/plain)
2011-07-07 13:55 UTC, Yixun Lan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yixun Lan archtester gentoo-dev 2011-07-07 10:04:08 UTC
export LD_LIBRARY_PATH=/var/tmp/portage/www-client/chromium-14.0.803.0/work/ch
romium-14.0.803.0/out/Release/lib.host:/var/tmp/portage/www-client/chromium-14.0
.803.0/work/chromium-14.0.803.0/out/Release/lib.target:$LD_LIBRARY_PATH; cd v8/t
ools/gyp; mkdir -p /var/tmp/portage/www-client/chromium-14.0.803.0/work/chromium
-14.0.803.0/out/Release/obj.target/geni; "/var/tmp/portage/www-client/chromium-1
4.0.803.0/work/chromium-14.0.803.0/out/Release/mksnapshot" --noenable_armv7 --no
enable_vfp3 "/var/tmp/portage/www-client/chromium-14.0.803.0/work/chromium-14.0.
803.0/out/Release/obj.target/geni/snapshot.cc"
  export LD_LIBRARY_PATH=/var/tmp/portage/www-client/chromium-14.0.803.0/work/ch
romium-14.0.803.0/out/Release/lib.host:/var/tmp/portage/www-client/chromium-14.0
.803.0/work/chromium-14.0.803.0/out/Release/lib.target:$LD_LIBRARY_PATH; cd thir
d_party/ffmpeg; mkdir -p /var/tmp/portage/www-client/chromium-14.0.803.0/work/ch
romium-14.0.803.0/out/Release/obj.target/geni /var/tmp/portage/www-client/chromi
um-14.0.803.0/work/chromium-14.0.803.0/out/Release/obj/gen/ffmpeg/third_party/ff
mpeg; python ../../tools/generate_stubs/generate_stubs.py -i "/var/tmp/portage/w
ww-client/chromium-14.0.803.0/work/chromium-14.0.803.0/out/Release/obj.target/ge
ni" -o "/var/tmp/portage/www-client/chromium-14.0.803.0/work/chromium-14.0.803.0
/out/Release/obj/gen/ffmpeg/third_party/ffmpeg" -t posix_stubs -e ffmpeg_stub_he
aders.fragment -s ffmpeg_stubs -p third_party/ffmpeg avutil-50.sigs avcodec-52.n
ovpx_sigs avformat-52.sigs
ERROR: Binary compiled with -mfloat-abi=hard but without -DUSE_EABI_HARDFLOAT
make: *** [out/Release/obj.target/geni/snapshot.cc] Error 1
make: *** Waiting for unfinished jobs....
emake failed


Reproducible: Always

Steps to Reproduce:
1. I'm doing native compile on pandaboard (www.pandaboard.org)
2. emerge =www-client/chromium-14.0.803.0
2.
3.
Actual Results:  
build successfully


 emerge --info

app-shells/bash:          4.2_p10
dev-lang/python:          2.7.2, 3.2
dev-util/ccache:          3.1.5
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.6.3-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r3
Repositories: gentoo pandaboard enlightenment-niifaq
Installed sets: 
ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -mfpu=neon -march=armv7-a -mtune=cortex-a9 -mfloat-abi=hard"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -mfpu=neon -march=armv7-a -mtune=cortex-a9 -mfloat-abi=hard"
DISTDIR="/mnt/data/panda/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FEATURES="assume-digests binpkg-logs 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://sabayon/ ftp://sabayon/ http://mirrors.163.com/gentoo http://ftp.twaren.net/Linux/Gentoo http://mirrors.xmu.edu.cn/gentoo http://mirror.averse.net/pub/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US zh zh_CN"
MAKEOPTS="-j4 -l4"
PKGDIR="/mnt/data/panda/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="/mnt/data/panda/portage"
PORTDIR_OVERLAY="/var/lib/layman/pandaboard /var/lib/layman/enlightenment-niifaq"
SYNC="rsync://sabayon/gentoo-portage"
Portage 2.2.0_alpha43_p2 (!../usr/portage/profiles/default/linux/arm/10.0, gcc-4.5.2, glibc-2.13-r3, 2.6.38.4 armv7l)
=================================================================
System uname: Linux-2.6.38.4-armv7l-ARMv7_Processor_rev_2_-v7l-with-gentoo-2.0.3
Timestamp of tree: Wed, 06 Jul 2011 12:15:01 +0000
ccache version 3.1.5 [disabled]
USE="X acl arm berkdb bzip2 cli cracklib crypt cups cxx fortran gdbm gpm iconv ipv6 jpeg modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl png pppd python readline session ssl sysfs tcpd unicode xorg 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" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US zh zh_CN" 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

dennis@ ~ $
Comment 1 Yixun Lan archtester gentoo-dev 2011-07-07 10:05:56 UTC
<Openfree`> anyone has expience build chromium on gentoo-arm, I'm using OMAP4 pandaboard
<Openfree`> while using chromium-14.0.803.0, first encounter unrecognize neon instruction problem, because I'm using -mfp=vfpv3-d16
<Openfree`> then I swith to -mfpu=neon, then have problem with -DUSE_EABI_HARDFLOAT, because of enable -mfloat-abi=hard
<Openfree`> I'm trying to add this, not sure it will work, http://paste.pocoo.org/show/432028/
<Openfree`> oops, better file a bug report
<Openfree`> also have problem with firefox :-(
Comment 2 Yixun Lan archtester gentoo-dev 2011-07-07 10:08:23 UTC
I've try to add this, but with no luck,
expect result should see  -DUSE_EABI_HARDFLOAT when come to build v8
but I look at log, haven't seen yet

panda chromium # diff -Nur /usr/portage/www-client/chromium/chromium-14.0.803.0.ebuild chromium-14.0.803.0.ebuild 
--- /usr/portage/www-client/chromium/chromium-14.0.803.0.ebuild 2011-06-28 21:27:06.000000000 +0800
+++ chromium-14.0.803.0.ebuild  2011-07-07 15:54:08.000000000 +0800
@@ -220,6 +220,7 @@
                append-flags -fno-tree-sink
 
                myconf+=" -Dtarget_arch=arm -Ddisable_nacl=1 Dlinux_use_tcmalloc=0"
+               myconf+=" -Dv8_can_use_vfp_instructions=1 -Dv8_use_arm_eabi_hardfloat=1"
        else
                die "Failed to determine target arch, got '$myarch'."
        fi
Comment 3 Yixun Lan archtester gentoo-dev 2011-07-07 10:13:23 UTC
Created attachment 279313 [details]
full build log of chromium

decompressed log takes 4.8MB, so I compress it
Comment 4 Yixun Lan archtester gentoo-dev 2011-07-07 13:55:22 UTC
Created attachment 279329 [details]
this patch enable eabi_hardfloat

after apply this patch, you can see compile v8 will enable '-DCAN_USE_VFP_INSTRUCTIONS' '-DUSE_EABI_HARDFLOAT=1'
Comment 5 Yixun Lan archtester gentoo-dev 2011-07-07 22:04:12 UTC
that patch works, now I compile successfully.
Comment 6 Yixun Lan archtester gentoo-dev 2011-07-07 22:05:01 UTC
also should remove line "doins out/Release/libppGoogleNaClPluginChrome.so || die"
there is no this file after compiling
Comment 7 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-07-17 04:33:27 UTC
Sorry, I think that ebuild isn't even keyworded ~arm, and I think hardfload is not (yet) supported by upstream.