View previous topic :: View next topic |
Author |
Message |
jacealvejetti n00b
Joined: 29 Mar 2019 Posts: 13 Location: Michigan, USA
|
Posted: Sat Jun 15, 2019 1:40 am Post subject: Cant compile any 'complicated' browsers, Asus c201 |
|
|
So I recent got gentoo to run stable on my Asus c201, even got a decent kernel script setup to patch and do the needed signing to make it bootable for depthcharge/libre boot
shoutout to steevdave for all his help.
For the past week since I have been fighting to get any browser above midori to compile successfully.
Firefox fails with:
Code: |
* ERROR: www-client/firefox-67.0::gentoo failed (compile phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 124: Called src_compile
* environment, line 5227: Called die
* The specific snippet of code:
* MOZ_MAKE_FLAGS="${MAKEOPTS} -O" SHELL="${SHELL:-${EPREFIX}/bin/bash}" MOZ_NOSPAM=1 ${_virtx} ./mach build --verbose || die
|
Firefox-bin says there nothing to unpack, should be expected as its not supported on arm,
Chromium has another error but I didn't capture it.
Code: |
genbook ~/firefox-info # emerge --info '=www-client/firefox-67.0::gentoo'
Portage 2.3.67 (python 3.6.8-final-0, default/linux/arm/17.0/armv7a/desktop, gcc-9.1.0, glibc-2.29-r2, 5.1.8-gentoo armv7l)
=================================================================
System Settings
=================================================================
System uname: Linux-5.1.8-gentoo-armv7l-ARMv7_Processor_rev_1_-v7l-with-gentoo-2.6
KiB Mem: 4111948 total, 1850180 free
KiB Swap: 8388604 total, 8313084 free
Timestamp of repository gentoo: Wed, 12 Jun 2019 11:00:01 +0000
Head commit of repository gentoo: 90144b7cde998631f19ebd96232d4bc375bc1e95
sh bash 5.0_p7
ld GNU ld (Gentoo 2.32 p2) 2.32.0
ccache version 3.7.1 [disabled]
app-shells/bash: 5.0_p7::gentoo
dev-java/java-config: 2.2.0-r4::gentoo
dev-lang/perl: 5.30.0::gentoo
dev-lang/python: 2.7.16::gentoo, 3.6.8::gentoo
dev-util/ccache: 3.7.1::gentoo
dev-util/cmake: 3.14.5::gentoo
dev-util/pkgconfig: 0.29.2::gentoo
sys-apps/baselayout: 2.6-r1::gentoo
sys-apps/openrc: 0.41.2::gentoo
sys-apps/sandbox: 2.17::gentoo
sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake: 1.16.1-r1::gentoo
sys-devel/binutils: 2.32-r1::gentoo
sys-devel/gcc: 9.1.0-r1::gentoo
sys-devel/gcc-config: 2.0::gentoo
sys-devel/libtool: 2.4.6-r5::gentoo
sys-devel/make: 4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.0-r1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.29-r2::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-extra-opts:
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-max-age: 24
sync-rsync-verify-jobs: 1
ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="@FREE"
CBUILD="armv7a-unknown-linux-gnueabihf"
CFLAGS="-O2 -pipe -mfpu=neon -mtls-dialect=gnu -marm -march=native -mtune=cortex-a17 -mfloat-abi=hard -pipe -fomit-frame-pointer -fstack-protector-strong -funsafe-math-optimizations"
CHOST="armv7a-unknown-linux-gnueabihf"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -mfpu=neon -mtls-dialect=gnu -marm -march=native -mtune=cortex-a17 -mfloat-abi=hard -pipe -fomit-frame-pointer -fstack-protector-strong -funsafe-math-optimizations"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://www.gtlib.gatech.edu/pub/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo https://gentoo.ussg.indiana.edu/ http://gentoo.ussg.indiana.edu/ https://mirrors.lug.mtu.edu/gentoo/ http://mirrors.lug.mtu.edu/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl alsa arm armv5te armv6 armv6t2 armvfp berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam flac fortran gdbm gif glamor gpm gtk iconv icu ipv6 jpeg lcms ldap libnotify mad mng mp3 mp4 mpeg ncurses neon networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb thumb2 v4 v5 v6 v7 vfp" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" 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: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
|
Code: |
genbook ~/firefox-info # emerge -pqv '=www-client/firefox-67.0::gentoo'
[ebuild N ] www-client/firefox-67.0 USE="clang dbus gmp-autoupdate neon pulseaudio screenshot startup-notification -bindist -custom-cflags -custom-optimization -debug -eme-free -geckodriver (-hardened) -hwaccel -jack -lto (-pgo) (-selinux) -system-av1 -system-harfbuzz -system-icu -system-jpeg -system-libevent -system-libvpx -system-sqlite -system-webp -test -wayland -wifi" L10N="-ach -af -an -ar -as -ast -az -bg -bn-BD -bn-IN -br -bs -ca -cak -cs -cy -da -de -dsb -el -en-GB -en-ZA -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mai -mk -ml -mr -ms -nb -nl -nn -or -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -ta -te -th -tr -uk -uz -vi -xh -zh-CN -zh-TW"
* IMPORTANT: 18 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
|
I am at a loss, any help would be appreciated, just know I am doing the compiling on the device, so each try takes a few hours. _________________ Current Project: 9 Node Distcc compile cluster composed of four Raspberry Pi 3b, three 3b+ and two 2bs |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
jacealvejetti n00b
Joined: 29 Mar 2019 Posts: 13 Location: Michigan, USA
|
Posted: Sat Jun 15, 2019 3:44 am Post subject: |
|
|
Wish I could post the build.log tried pastbin, to long, not knowing what I'm looking for, I grepped for "Error 2" not anything to see.
I compiled the entire system on -j5, though I will start a compile on lower (-j2?, -j3?, never saw ram as the issue, going on the old n+1) and see if it helps anything.
In the mean time something I forgot to mention in my last post, I have tried compiling with and without all the 'system-' flags, for firefox atleast.
Firing the compile, -j2 "-system-" flags. _________________ Current Project: 9 Node Distcc compile cluster composed of four Raspberry Pi 3b, three 3b+ and two 2bs |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22861
|
Posted: Sat Jun 15, 2019 4:23 am Post subject: |
|
|
-j based on CPUs+1 is a common choice if your concern is keeping the CPUs busy, which would apply for small packages or systems where you have much more RAM per CPU core than is the case here. In your case, your primary concern needs to be keeping total size within available RAM, so you may need to choose a value that leaves some CPU power unused. |
|
Back to top |
|
|
jacealvejetti n00b
Joined: 29 Mar 2019 Posts: 13 Location: Michigan, USA
|
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54638 Location: 56N 3W
|
Posted: Sat Jun 15, 2019 7:38 pm Post subject: |
|
|
jacealvejetti,
Code: | * ERROR: www-client/firefox-67.0::gentoo failed (compile phase):
* (no error message) | That happens when the Out of Memory Manager kicks in.
The log will show it and there will be a lot of lines in dmesg too.
Your armv7a can address at most, 4G of virtual memory as its a 32 bit CPU.
it certain to run you out of RAM. Some of firefox is in C++, which can take 2G RAM pert thread.
You will need to set MAKEOPTS="-j1" for firefox. Portage has a per package way to do that.
Lots of swap won't always help. Swap can't be used for everything.
You may need to resort to a QEMU arm7a chroot on a amd64 system to build firefox for arm.
Once its built, the binary should install and run. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
jacealvejetti n00b
Joined: 29 Mar 2019 Posts: 13 Location: Michigan, USA
|
Posted: Sun Jun 16, 2019 12:16 am Post subject: |
|
|
I am not going to even try to seem like i know what it worked.
Firefox 60.7.0 compiled without a hitch the first time, -j5 and all, I watched the ram most of the way though, the highest I saw it get was around 3.2GB.
While not solved this does give me atleast what I needed to call this working, and I can continue to move forward.
Next up latest with -j1 to see if it compiles.
More just because its what I wanted, I was able to login to my esxi box and launch remote, WOOT! _________________ Current Project: 9 Node Distcc compile cluster composed of four Raspberry Pi 3b, three 3b+ and two 2bs |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
jacealvejetti n00b
Joined: 29 Mar 2019 Posts: 13 Location: Michigan, USA
|
Posted: Sun Jun 16, 2019 12:43 am Post subject: |
|
|
Not to my knowledge, after looking up what it is and where its set, no.
running a normal emerge update and firefox shows:
Code: |
[ebuild U *] www-client/firefox-67.0 [60.7.0] USE="-lto% (-pgo) -system-av1% -system-webp% -wayland%"
|
guessing the -lto% would assume its not enabled as well.
(first post from the system its self.)
I do see after all my fiddling with firefox I have run into a dependcie issue though, think it may be a cause?
Code: |
sys-devel/llvm:8
(sys-devel/llvm-8.0.9999:8/8::gentoo, ebuild scheduled for merge) conflicts with
~sys-devel/llvm-8.0.0:8=[-debug,llvm_targets_ARM,llvm_targets_BPF] required by (sys-devel/clang-8.0.0:8/8::gentoo, installed)
^ ^^^^^
~sys-devel/llvm-8.0.0:8/8=[-debug,llvm_targets_ARM,llvm_targets_BPF] required by (sys-devel/clang-8.0.0:8/8::gentoo, installed)
^
|
_________________ Current Project: 9 Node Distcc compile cluster composed of four Raspberry Pi 3b, three 3b+ and two 2bs |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54638 Location: 56N 3W
|
Posted: Sun Jun 16, 2019 9:01 am Post subject: |
|
|
jacealvejetti,
That's a bug Code: | sys-devel/llvm-8.0.9999 | is a live version and should be masked.
Live versions of packages are not tested at all. Its commit by commit to the upstream repository, as it happens.
Careless use of then accepting whatever portage suggests can get you into this state.
Then its a feature, not a bug.
is a very bad thing and should not be used. Its useful for suggestions to point you in the right direction but the reconsiderations should not be used verbatim. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
jacealvejetti n00b
Joined: 29 Mar 2019 Posts: 13 Location: Michigan, USA
|
Posted: Tue Jun 18, 2019 4:34 pm Post subject: |
|
|
NeddySeagoon,
Appreciate the input,
to my memory,I havent used the autounmask, I wont say never as I did alot of crazyness trying to get firefox working.
I will mask the 9999, not the first thing I have had to mask, currently I have anything newer than 60.7 firefox masked till I can get a stable crossdev setup, and the new vboot-utils as its giving me ssl issues on compile.
Thanks! _________________ Current Project: 9 Node Distcc compile cluster composed of four Raspberry Pi 3b, three 3b+ and two 2bs |
|
Back to top |
|
|
|
|
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
|
|