Created attachment 328368 [details] build.log Building dev-lang/v8 on Raspberry Pi which has hardfloat but no vfvp3 support results in this: armv6j-hardfloat-linux-gnueabi-g++ '-DENABLE_DEBUGGER_SUPPORT' '-DENABLE_EXTRA_CHECKS' '-DV8_TARGET_ARCH_ARM' '-DUSE_EABI_HARDFLOAT=1' '-DCAN_USE_VFP3_INSTRUCTIONS' -I../src -Wall -W -Wno-unused-parameter -Wnon-virtual-dtor -pthread -fno-rtti -fno-exceptions -pedantic -ansi -fvisibility=hidden -fPIC -mfloat-abi=hard -fdata-sections -ffunction-sections -O3 -MMD -MF /var/tmp/portage/dev-lang/v8-3.13.7.4/work/v8-3.13.7.4/out/arm.release/.deps//var/tmp/portage/dev-lang/v8-3.13.7.4/work/v8-3.13.7.4/out/arm.release/obj.target/mksnapshot/src/mksnapshot.o.d.raw -O2 -march=armv6j -mfpu=vfp -mfloat-abi=hard -c -o /var/tmp/portage/dev-lang/v8-3.13.7.4/work/v8-3.13.7.4/out/arm.release/obj.target/mksnapshot/src/mksnapshot.o ../src/mksnapshot.cc armv6j-hardfloat-linux-gnueabi-g++ -pthread -Wl,-O1,--as-needed -o /var/tmp/portage/dev-lang/v8-3.13.7.4/work/v8-3.13.7.4/out/arm.release/mksnapshot -Wl,--start-group /var/tmp/portage/dev-lang/v8-3.13.7.4/work/v8-3.13.7.4/out/arm.release/obj.target/mksnapshot/src/mksnapshot.o /var/tmp/portage/dev-lang/v8-3.13.7.4/work/v8-3.13.7.4/out/arm.release/obj.target/tools/gyp/libv8_base.a /var/tmp/portage/dev-lang/v8-3.13.7.4/work/v8-3.13.7.4/out/arm.release/obj.target/tools/gyp/libv8_nosnapshot.a -Wl,--end-group LD_LIBRARY_PATH=/var/tmp/portage/dev-lang/v8-3.13.7.4/work/v8-3.13.7.4/out/arm.release/lib.host:/var/tmp/portage/dev-lang/v8-3.13.7.4/work/v8-3.13.7.4/out/arm.release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../tools/gyp; mkdir -p /var/tmp/portage/dev-lang/v8-3.13.7.4/work/v8-3.13.7.4/out/arm.release/obj.target/v8_snapshot/geni; "/var/tmp/portage/dev-lang/v8-3.13.7.4/work/v8-3.13.7.4/out/arm.release/mksnapshot" --log-snapshot-positions --logfile "/var/tmp/portage/dev-lang/v8-3.13.7.4/work/v8-3.13.7.4/out/arm.release/obj.target/v8_snapshot/geni/snapshot.log" "/var/tmp/portage/dev-lang/v8-3.13.7.4/work/v8-3.13.7.4/out/arm.release/obj.target/v8_snapshot/geni/snapshot.cc" /bin/sh: line 1: 12435 Illegal instruction "/var/tmp/portage/dev-lang/v8-3.13.7.4/work/v8-3.13.7.4/out/arm.release/mksnapshot" --log-snapshot-positions --logfile "/var/tmp/portage/dev-lang/v8-3.13.7.4/work/v8-3.13.7.4/out/arm.release/obj.target/v8_snapshot/geni/snapshot.log" "/var/tmp/portage/dev-lang/v8-3.13.7.4/work/v8-3.13.7.4/out/arm.release/obj.target/v8_snapshot/geni/snapshot.cc" make[1]: *** [/var/tmp/portage/dev-lang/v8-3.13.7.4/work/v8-3.13.7.4/out/arm.release/obj.target/v8_snapshot/geni/snapshot.cc] Error 132 # emerge --info Portage 2.2.0_alpha142 (default/linux/arm/10.0/armv6j/desktop, gcc-4.7.2, glibc-2.15-r3, 3.6.1-raspberrypi armv6l) ================================================================= System uname: Linux-3.6.1-raspberrypi-armv6l-ARMv6-compatible_processor_rev_7_-v6l-with-gentoo-2.1 Timestamp of tree: Wed, 31 Oct 2012 12:15:01 +0000 ld GNU ld (GNU Binutils) 2.22 app-shells/bash: 4.2_p37 dev-java/java-config: 2.1.12 dev-lang/python: 2.7.3-r2, 3.2.3 dev-util/cmake: 2.8.9 dev-util/pkgconfig: 0.27.1 sys-apps/baselayout: 2.1-r1 sys-apps/openrc: 0.9.8.4 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.11.6 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.5.4, 4.6.3, 4.7.2 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers) sys-libs/glibc: 2.15-r3 Repositories: gentoo local ACCEPT_KEYWORDS="arm" ACCEPT_LICENSE="* -@EULA" CBUILD="armv6j-hardfloat-linux-gnueabi" CFLAGS="-O2 -march=armv6j -mfpu=vfp -mfloat-abi=hard" CHOST="armv6j-hardfloat-linux-gnueabi" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=armv6j -mfpu=vfp -mfloat-abi=hard" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=softfp" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=softfp" GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/" LANG="de_DE.utf8" LDFLAGS="-Wl,-O1,--as-needed" LINGUAS="de en" PKGDIR="/var/cache/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --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="X a52 aac acl acpi alsa arm berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups curl cxx dbus dts dvdr emboss encode exif fam ffmpeg firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg lcms ldap libnotify mad mng modules mp3 mp4 mpeg mudflap ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pppd qt3support qt4 readline sdl session spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets xcb xml xv 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="authn_core authz_core socache_shmcb unixd 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="kexi words flow plan sheets 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" PHP_TARGETS="php5-3" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev" 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, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Created attachment 328378 [details, diff] v8-3.13-hardfp-vfp.patch possible fix, testing that now
(In reply to comment #1) > Created attachment 328378 [details, diff] [details, diff] > v8-3.13-hardfp-vfp.patch > > possible fix, testing that now Thank you for filing bug about this! Do you want to submit your patch/fix upstream? If so let me know if I can help you with that. Generally I'm not going to apply any patches that have not been accepted upstream, but I'm also interesting in actually getting this fixed upstream. By the way, have you tried using vfp3 argument for the Makefile? I see flags like v8_can_use_vfp3_instructions and v8_can_use_vfp2_instructions, so maybe the infrastructure is already in place. Oh, and so it seems you've found hardfloat does not imply vfp3, right? That's definitely a v8 bug.
The patch makes the build complete successfully. I reported issue 2393 upstream.
(In reply to comment #3) > The patch makes the build complete successfully. > I reported issue 2393 upstream. Thank you. Upstream is waiting for you to sign the CLA.
I signed the CLA, but no reaction from upstream so far.
(In reply to comment #5) > I signed the CLA, but no reaction from upstream so far. Pinged upstream: https://groups.google.com/d/topic/v8-users/acVnWcO8utA/discussion
Thank you for reporting this, now fixed in CVS.
I encountered the same problem (Illegal instruction) while building dev-lang/v8-3.16.14.2 on the Raspberry Pi until I added "vfp3=off" to the emake command line. Probably the ebuild should have IUSE+="+vfp3" and the emake like should have $(use vfp3 || echo "vfp3=off").
(In reply to comment #8) Please report a new bug for any new issues that arose since the original bug was fixed.
Created attachment 342512 [details, diff] v8-3.16.14.2-armv7-vfp3.patch Note, you also have to disable ARMv7 instructions when building on the Raspberry Pi. These changes to the ebuild did the trick for me.
(In reply to comment #9) > (In reply to comment #8) > Please report a new bug for any new issues that arose since the original bug > was fixed. I'll attach this patch to a new bug.
(In reply to comment #11) > I'll attach this patch to a new bug. Bug 462200.