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

Bug 359911

Summary: dev-lang/v8-3.0.12.30 - tests fail & dysfunction on armv7a-hardfloat-linux-gnueabi
Product: Gentoo Linux Reporter: Fabian Köster <gentoo>
Component: [OLD] UnspecifiedAssignee: Chromium Project <chromium>
Status: RESOLVED UPSTREAM    
Severity: normal CC: arm, siarhei.siamashka
Priority: Normal    
Version: unspecified   
Hardware: ARM   
OS: Linux   
URL: http://code.google.com/p/v8/issues/detail?id=1301
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log with failing tests

Description Fabian Köster 2011-03-22 11:02:59 UTC
I am using a Pandaboard (ARM Cortex-A9) with gcc-4.5.2, native compilation on the device (no cross-compile) and the following configuration:

CFLAGS="-O2 -pipe -mcpu=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=hard"
CHOST="armv7a-hardfloat-linux-gnueabi"

Some of the included tests in dev-lang/v8-3.0.12.30 fail and most JavaScript code on websites does not work ẇhen using www-client/chromium-10.0.648.133.

I assume the problems are caused by problems with v8 and hardfloat but I will cross-check on a system with softfloat toolchain soon.

Reproducible: Always




Portage 2.1.9.42 (default/linux/arm/10.0, gcc-4.5.2, glibc-2.11.3-r0, 2.6.35.3 armv7l)
=================================================================
System uname: Linux-2.6.35.3-armv7l-ARMv7_Processor_rev_2_-v7l-with-gentoo-1.12.14
Timestamp of tree: Mon, 21 Mar 2011 23:45:01 +0000
app-shells/bash:     4.1_p9
dev-lang/python:     2.6.6-r2
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="@FREE freedist TI"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -mcpu=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=hard"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -mcpu=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=hard"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j3"
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/pandaboard /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl arm avahi bash-completion berkdb bzip2 cli cracklib crypt cups cxx dbus dvb flac fortran gdbm gif gnome-keyring gpm gstreamer iconv idn ipv6 jabber jpeg lastfm modules mpeg mudflap ncurses neon nls nptl nptlonly ogg openmp pam pcre perl png policykit pppd pulseaudio python readline rss session ssl startup-notification sysfs tcpd theora thunar tiff udev unicode vorbis xorg xv 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" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="usb-dib0700" 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="de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="dummy fbdev omapfb vfl" 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
Comment 1 Fabian Köster 2011-03-22 11:05:22 UTC
Created attachment 266827 [details]
build.log with failing tests
Comment 2 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-04-02 09:53:42 UTC
CC-ing ARM arch team, I have no idea how to fix those issues.
Comment 3 Siarhei Siamashka 2011-04-03 02:20:00 UTC
JIT definitely needs to be updated to support hardfloat calling conventions. And this is probably better to be done in upstream because the patches may be not so trivial. For example, Mozilla added hardfloat support to NanoJIT for Firefox4 via the following bug: https://bugzilla.mozilla.org/show_bug.cgi?id=602834

ARM hardfloat is still not ready for casual users and it has some problems. JIT is one of the sources of such problems. And also it is much harder to find usable closed source binary drivers for hardfloat ABI, if somebody wants hardware accelerated OpenGL ES for example.
Comment 4 Fabian Köster 2011-04-03 11:02:27 UTC
I now cross-checked on an equal system with softfloat-toolchain and chromium (10.0.648.204) works perfectly there.

I think I will stay on softfloat for now because it causes less trouble (e.g. binary drivers work).

I reported a bug upstream [1] so you may close this bug as RESOLVED UPSTREAM now.

[1] http://code.google.com/p/v8/issues/detail?id=1301
Comment 5 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-04-03 14:26:08 UTC
Thank you for testing and forwarding the bug upstream.