Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
chromium-38.0.2125.58 on RPi
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ShiroiKuma
n00b
n00b


Joined: 09 Nov 2012
Posts: 40
Location: Japan

PostPosted: Sun Sep 21, 2014 12:32 pm    Post subject: chromium-38.0.2125.58 on RPi Reply with quote

I've been trying for 3 days now to compile Chromium on my Raspberry Pi, so far the only app that hasn't compiled at all. I've tried with and without distcc, it just takes forever. The one interesting thing is that even though the CFLAGS are "-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard", part of the final build seems to be trying to use -march=armv7-a -mtune=generic-armv7-a... surely that's a guaranteed fail. Has anyone had success building on the RPi? If so, which version, I'm completely open to only unmasking a 'fairly' stable version rather than the latest and greatest.

The final error from the emerge is
Code:
 *      out/Release/mksnapshot
 * Fallback PaX marking -m with scanelf
 * Please check that PaX marking worked
 TYPE    PAX   FILE
ET_EXEC --mxe- out/Release/mksnapshot
ninja -v -j 13 -l 1 -C out/Release chrome chrome_sandbox chromedriver
ninja: Entering directory `out/Release'
ninja: warning: multiple rules generate obj/third_party/zlib/google/zip.zip.o. builds involving this target will not be correct; continuing anyway
ninja: warning: multiple rules generate obj/third_party/zlib/google/zip.zip_internal.o. builds involving this target will not be correct; continuing anyway
ninja: warning: multiple rules generate obj/third_party/zlib/google/zip.zip_reader.o. builds involving this target will not be correct; continuing anyway
[1/15558] ln -f /var/tmp/portage/www-client/chromium-38.0.2125.58/temp/flapper_version.h gen/flapper_version.h 2>/dev/null || (rm -rf gen/flapper_version.h && cp -af /var/tmp/portage/www-client/chromium-38.0.2125.58/temp/flapper_version.h gen/flapper_version.h)
[2/15558] armv6j-hardfloat-linux-gnueabi-g++ -MMD -MF obj/third_party/pdfium/core/src/fxcrt/fxcrt.fx_arabic.o.d -DFOXIT_CHROME_BUILD -D_FXFT_VERSION_=2501 -D_FPDFSDK_LIB -D_NO_GDIPLUS_ -DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -DDISABLE_NACL -DCHROMIUM_BUILD -DTOOLKIT_VIEWS=1 -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 -DUSE_ASH=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_GLIB=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DUSE_X11=1 -DUSE_CLIPBOARD_AURAX11=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_PRE_SYNC_BACKUP -DUSE_XI2_MT=2 -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DUSE_PROPRIETARY_CODECS -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DUSE_UDEV -DENABLE_EGLIMAGE=1 -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_BACKGROUND=1 -DENABLE_GOOGLE_NOW=1 -DCLD_VERSION=2 -DCLD2_DATA_SOURCE=static -DENABLE_FULL_PRINTING=1 -DENABLE_PRINTING=1 -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_MANAGED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1 -DUSE_NSS=1 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -Igen -fstack-protector --param=ssp-buffer-size=4  -pthread -fno-exceptions -fno-strict-aliasing -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -Wno-format -Wno-unused-result -march=armv7-a -mtune=generic-armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -mthumb -O2 -fno-ident -fdata-sections -ffunction-sections -funwind-tables -O2 -pipe -march=armv6j -mfloat-abi=hard -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -Wno-deprecated -Wno-abi -std=gnu++11 -Wno-narrowing -Wno-literal-suffix  -c ../../third_party/pdfium/core/src/fxcrt/fx_arabic.cpp -o obj/third_party/pdfium/core/src/fxcrt/fxcrt.fx_arabic.o
FAILED: armv6j-hardfloat-linux-gnueabi-g++ -MMD -MF obj/third_party/pdfium/core/src/fxcrt/fxcrt.fx_arabic.o.d -DFOXIT_CHROME_BUILD -D_FXFT_VERSION_=2501 -D_FPDFSDK_LIB -D_NO_GDIPLUS_ -DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -DDISABLE_NACL -DCHROMIUM_BUILD -DTOOLKIT_VIEWS=1 -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 -DUSE_ASH=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_GLIB=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DUSE_X11=1 -DUSE_CLIPBOARD_AURAX11=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_PRE_SYNC_BACKUP -DUSE_XI2_MT=2 -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DUSE_PROPRIETARY_CODECS -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DUSE_UDEV -DENABLE_EGLIMAGE=1 -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_BACKGROUND=1 -DENABLE_GOOGLE_NOW=1 -DCLD_VERSION=2 -DCLD2_DATA_SOURCE=static -DENABLE_FULL_PRINTING=1 -DENABLE_PRINTING=1 -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_MANAGED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1 -DUSE_NSS=1 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -Igen -fstack-protector --param=ssp-buffer-size=4  -pthread -fno-exceptions -fno-strict-aliasing -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -Wno-format -Wno-unused-result -march=armv7-a -mtune=generic-armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -mthumb -O2 -fno-ident -fdata-sections -ffunction-sections -funwind-tables -O2 -pipe -march=armv6j -mfloat-abi=hard -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -Wno-deprecated -Wno-abi -std=gnu++11 -Wno-narrowing -Wno-literal-suffix  -c ../../third_party/pdfium/core/src/fxcrt/fx_arabic.cpp -o obj/third_party/pdfium/core/src/fxcrt/fxcrt.fx_arabic.o
In file included from /usr/include/endian.h:60:0,
                 from /usr/include/bits/waitstatus.h:64,
                 from /usr/include/stdlib.h:42,
                 from ../../third_party/pdfium/core/src/fxcrt/../../include/fxcrt/fx_system.h:51,
                 from ../../third_party/pdfium/core/src/fxcrt/../../include/fxcrt/fx_basic.h:10,
                 from ../../third_party/pdfium/core/src/fxcrt/../../include/fxcrt/fx_ext.h:10,
                 from ../../third_party/pdfium/core/src/fxcrt/fx_arabic.cpp:7:
/usr/include/bits/byteswap.h: In function ‘unsigned int __bswap_32(unsigned int)’:
/usr/include/bits/byteswap.h:44:31: sorry, unimplemented: Thumb-1 hard-float VFP ABI
ninja: build stopped: subcommand failed.


The output of emerge -pqv '=www-client/chromium-38.0.2125.58::gentoo' is
Code:
[ebuild  N    ] www-client/chromium-38.0.2125.58  USE="(pic) tcmalloc -bindist -cups -custom-cflags -gnome -gnome-keyring -kerberos (-neon) -pulseaudio (-selinux) {-test}" LINGUAS="en_GB ja -am -ar -bg -bn -ca -cs -da -de -el -es -es_LA -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt_BR -pt_PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -vi -zh_CN -zh_TW"


The output of emerge --info '=www-client/chromium-38.0.2125.58::gentoo' is
Code:
Portage 2.2.8-r1 (default/linux/arm/13.0/armv6j, gcc-4.7.3, glibc-2.19-r1, 3.12.28+ armv6l)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.12.28+-armv6l-with-gentoo-2.2
KiB Mem:      447864 total,    210084 free
KiB Swap:    1048572 total,   1042932 free
Timestamp of tree: Fri, 19 Sep 2014 17:45:02 +0000
ld GNU ld (Gentoo 2.23.2 p1.0) 2.23.2
distcc 3.1 armv6j-hardfloat-linux-gnueabi [enabled]
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.7, 3.3.5-r1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv6j-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard"
CHOST="armv6j-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /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/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv6j"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -march=armv6j"
GENTOO_MIRRORS="http://ftp.jaist.ac.jp/pub/Linux/Gentoo/"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j13 -l1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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=""
USE="X acl arm berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv icu ipv6 libkms lightweight minizip modules ncurses nls nptl openmp pam pcre python readline server session ssl tcpd unicode vnc zlib" 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 author" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB ja" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="exynos omap 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON


And the full build log is.... too big. 486k... so I've uploaded it to filebin. http://filebin.ca/1b6Bjb6YifbW/build.log
Back to top
View user's profile Send private message
ShiroiKuma
n00b
n00b


Joined: 09 Nov 2012
Posts: 40
Location: Japan

PostPosted: Sun Sep 21, 2014 2:51 pm    Post subject: 37.0.2062.120 Reply with quote

Just a quick update, seeing as the last stable amd64/x86 version is 37.0.2062.120, I'm trying this specific version on my RPi at the moment. I'll update this in the morning (if it's finished by then).

Update
Different file, but same error.

A bit more googling around and I found very few references to the errors regarding "sorry, unimplemented: Thumb-1 hard-float VFP ABI", however I came across this issue at google code https://code.google.com/p/chromium/issues/detail?id=369136 , albeit for an overylay and therefore using the suggested
package.use wrote:
sys-libs/gcc-libs -thumb
in package.use is not going to be of use here.

So, how to disable thumb generation? According to https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html we do have a -mthumb and -marm CFLAG available, so I'm going to give -marm a try and see how it compiles today.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum