Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Firefox 91.4.0-r1 fails to compile on x86
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
dilbot
Apprentice
Apprentice


Joined: 06 Feb 2004
Posts: 153
Location: Canada

PostPosted: Sat Dec 25, 2021 12:57 am    Post subject: Firefox 91.4.0-r1 fails to compile on x86 Reply with quote

on multiple machines:

198:22.76 gmake[1]: Leaving directory '/var/tmp/portage/www-client/firefox-91.4.0-r1/work/firefox_build'
198:22.76 gmake: *** [client.mk:65: build] Error 2
198:22.76 68 compiler warnings present.
* ERROR: www-client/firefox-91.4.0-r1::gentoo failed (compile phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 127: Called src_compile
* environment, line 5184: Called die
* The specific snippet of code:
* ${virtx_cmd} ./mach build --verbose || die
*
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sat Dec 25, 2021 1:08 am    Post subject: Reply with quote

When emerge fails then portage usually adds a few lines to the end with instructions how to seek support, where the logs are located, etc. Didn't you get these instructions?
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
dilbot
Apprentice
Apprentice


Joined: 06 Feb 2004
Posts: 153
Location: Canada

PostPosted: Sat Dec 25, 2021 1:29 am    Post subject: Reply with quote

Thanks - here are the info and pqv outputs. The build logs are a bit large.

emerge__info.txt
Portage 3.0.28 (python 3.9.9-final-0, default/linux/x86/17.0, gcc-11.2.0, glibc-2.33-r7, 5.10.76-gentoo-r1 i686)
=================================================================
System Settings
=================================================================
System uname: Linux-5.10.76-gentoo-r1-i686-Intel-R-_Core-TM-_i3-2100_CPU_@_3.10GHz-with-glibc2.33
KiB Mem: 8145096 total, 269220 free
KiB Swap: 33246204 total, 33221496 free
Timestamp of repository gentoo: Fri, 24 Dec 2021 18:00:01 +0000
Head commit of repository gentoo: 74f095b4da46d896961f219265f62c1dafdf4591
sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
app-misc/pax-utils: 1.3.3::gentoo
app-shells/bash: 5.1_p8::gentoo
dev-java/java-config: 2.3.1::gentoo
dev-lang/perl: 5.34.0-r3::gentoo
dev-lang/python: 2.7.18_p13::gentoo, 3.8.12_p1::gentoo, 3.9.9::gentoo, 3.10.0_p1::gentoo
dev-lang/rust: 1.56.1::gentoo
dev-util/cmake: 3.21.4::gentoo
dev-util/meson: 0.59.4::gentoo
sys-apps/baselayout: 2.7-r3::gentoo
sys-apps/openrc: 0.44.10::gentoo
sys-apps/sandbox: 2.25::gentoo
sys-devel/autoconf: 2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake: 1.13.4-r2::gentoo, 1.16.4::gentoo
sys-devel/binutils: 2.37_p1::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang: 13.0.0::gentoo
sys-devel/gcc: 11.2.0::gentoo
sys-devel/gcc-config: 2.4::gentoo
sys-devel/libtool: 2.4.6-r6::gentoo
sys-devel/lld: 13.0.0::gentoo
sys-devel/llvm: 13.0.0::gentoo
sys-devel/make: 4.3::gentoo
sys-kernel/linux-headers: 5.10-r1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.33-r7::gentoo
Repositories:

gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-verify-jobs: 1
sync-rsync-verify-max-age: 24
sync-rsync-extra-opts:
sync-rsync-verify-metamanifest: yes
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="@FREE"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/libreoffice/program/sofficerc /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 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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 -march=i686 -pipe"
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 qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
SHELL="/bin/bash"
USE="X acl alsa apache2 apng apulse bzip2 cairo cli crypt cups dbus dri drm elogind fdk ffmpeg flac fortran gdbm gegl glamor gtk gudev gui harfbuzz http2 hwdb iconv icu introspection ipv6 jack jpeg kdenlive libglvnd libkms libtirpc lsa matroska melt minizip mmx motif mozilla mp3 mp4 mpeg mplayer mysql mysqli nas ncurses nls nptl nss ogg opengl openmp openssl oss pam pcre pcre16 pcre32 pdf php png policykit postproc python python3_9 qt3support qt5 readline sdl seamonkey seccomp secure-delete split-usr sqlite sse sse2 ssl text theora threads tiff unicode vorbis widgets x86 xa xattr xdl xkb xml xmp zlib" ABI_X86="32" ADA_TARGET="gnat_2020" 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_X86="avx mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis 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" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9 python3_8" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

emerge__pqv.txt
www-client/firefox-91.4.0-r1 [78.15.0] USE="clang dbus gmp-autoupdate jack openh264 system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp -debug -eme-free -geckodriver -hardened -hwaccel -lto (-pgo) -pulseaudio -screencast (-selinux) -sndio% -system-png% -wayland -wifi" L10N="-ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -ca-valencia -cak -cs -cy -da -de -dsb -el -en-CA -en-GB -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 -ia -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mk -mr -ms -my -nb -ne -nl -nn -oc -pa -pl -pt-BR -pt-PT -rm -ro -ru -sco% -si -sk -sl -son -sq -sr -sv -szl% -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW"
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1678

PostPosted: Sat Dec 25, 2021 1:35 am    Post subject: Reply with quote

Need the build log too but given you're on x86 (although you don't need to be, your CPU should support amd64!), it's probably bug 816975 (see also this thread).
Back to top
View user's profile Send private message
dilbot
Apprentice
Apprentice


Joined: 06 Feb 2004
Posts: 153
Location: Canada

PostPosted: Sat Dec 25, 2021 1:45 am    Post subject: Reply with quote

Yes, I could find the same "error generated" in my build logs as described in the bug report

184:18.15 typedef long double double_t;
184:18.15 ^
184:18.45 1 error generated.
184:18.46 gmake[4]: *** [/var/tmp/portage/www-client/firefox-91.4.0-r1/work/firefox-91.4.0/config/rules.mk:676: e_acos.o] Error 1


Trying to build firefox-95.0.1-r1 now to see if that helps.

Thanks for the help!
Back to top
View user's profile Send private message
dilbot
Apprentice
Apprentice


Joined: 06 Feb 2004
Posts: 153
Location: Canada

PostPosted: Sat Dec 25, 2021 7:26 am    Post subject: Reply with quote

Same problem in firefox-95.0.1-r1.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Sat Dec 25, 2021 1:17 pm    Post subject: Reply with quote

dilbot,

That's a 32 bit build. See www-client/firefox-91.4.0-r1 build failed on ~x86
There is a patch there that may help.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
dilbot
Apprentice
Apprentice


Joined: 06 Feb 2004
Posts: 153
Location: Canada

PostPosted: Sat Dec 25, 2021 6:45 pm    Post subject: Reply with quote

Thanks - I'll try the patch.

Just out of curiosity - if this Intel CPU can run under AMD64, why is it called AMD64? I've always avoided
running Intel on the AMD just because of the name. Maybe it should be galled "Generic64" or something.

Maybe my best fix long-term is to get out of x86 and switch the build to AMD64.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sat Dec 25, 2021 7:11 pm    Post subject: Reply with quote

Running 32 bit has memory access issues already starting with second gigabyte. The first 64 bit CPU came from AMD, that's why it is called AMD64. Intel had its own Itanium platform, RIP.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!


Last edited by Jaglover on Sat Dec 25, 2021 7:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2719

PostPosted: Sat Dec 25, 2021 7:12 pm    Post subject: Reply with quote

dilbot wrote:
Just out of curiosity - if this Intel CPU can run under AMD64, why is it called AMD64? I've always avoided
running Intel on the AMD just because of the name.
It's just a historical thing given formerly it wasn't both and amd64 came first (Edit: first for what we're using right now I meant), so the name was adopted and it kinda stuck around rather than switching to something like x86-64.

fwiw the gentoo download page tries to show some alternative names, i.e. "amd64 aka x86-64, x64, Intel 64", and the amd64 handbook also mentions intel in the hardware requirements section for one.

If you can use amd64, I'd definitely switch to it anyhow. x86-32 support still exists but is becoming a lower priority thing, very little testing is done and new packages don't always get keyworded for it (and when they are, I tend to wonder if it was tested at all given x86 doesn't have to go through arch teams and it assumes maintainers did the right thing).


Last edited by Ionen on Sat Dec 25, 2021 7:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Sat Dec 25, 2021 7:38 pm    Post subject: Reply with quote

dilbot,

Intel were the first, between AMD/Intel to market with a 64 bit CPU. It was called the Itanium.
Its one main drawback was that in could not run any existing Intel/AMD 32 bit code without emulating the 32 bit CPU in software, so there was effectively no software for it.
It was quickly dubbed the Itanic and is no longer made.

Some time later, AMD introduced the Opteron, which was the first AMD64 CPU. It had the advantage that it could run all the existing 32 bit and even 16 bit software too.
That hurt Intel. Intel licenced parts of the design an made compatible CPUs. At first under licence.

The AMD64 name stuck for Intel/AMD 64 bit processors. If you have an Intel CPU that is not an Itanium, its amd64.
With more than 2G RAM, you should run an AMD64 install.
A 32 bit install is limited to 3GB virtual address space per process and some things find it difficult to link in that.
In theory, its 4G (2^32) but its a very bad thing to not map the kernel.

An amd64 reinstall is the way to go. There are some shortcuts you can take, so post back if you want to know them.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
dilbot
Apprentice
Apprentice


Joined: 06 Feb 2004
Posts: 153
Location: Canada

PostPosted: Sun Dec 26, 2021 3:27 am    Post subject: Reply with quote

Hi Neddy,

Thanks for this - I'll do the switch to AMD64. What steps/shortcuts do you recommend to do this without breaking the machines?
I have 8x identical boxes running our small business office, with one spare.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Sun Dec 26, 2021 8:03 am    Post subject: Reply with quote

Wouldn't necessarily call not mapping (most) of kernel space a bad thing, it's what's done when running a 32 bit userspace on a 64-bit kernel. Also I believe there's a patchset that I'm not sure made into mainline such that PAE with PTI will get (near) 4GiB process space if it doesn't need things like video memory mapped. It's slow if you need kernel calls or need to multitask/handle interrupts but you'll get upwards near the full 4GB of RAM.

Since you have a spare machine I'd transition that to 64-bit first and source copies from that. No, you can't do an in-place upgrade unfortunately, or at least it would be very difficult. However I still run 32-bit boxes and haven't given up on them just yet. Writing is on the wall, sure, but it still works.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Sun Dec 26, 2021 11:27 am    Post subject: Reply with quote

dilbot,

Its going to break as there is no 32 bit to 64 bit upgrade path.
Backup /home but this should survive if its its own partition. If not it will be lost.

Keep a copy of /etc as you can use it to refer to on your new install.
Most of /etc/portage can be reused but take care that it does not contain any CHOST entry as that's going to change.
Your profile symlink will also change.

Save your /var/lib/portage/world.

Boot with some 64 bit media, now do a 64 bit install. Do not make a new filesystem on /home if its its own partition.
There is no need to redo the partition table unless your really want to.
Once the stage3 is in place, put /etc/portage and the world file back.
Choose an amd64 profile. Run
Code:
emerge --info
and check that you have a 64 bit CHOST.

Now you can run
Code:
emerge -e1av @world --keep-going
to install everything in your world file.
Well almost everything. Expect some failures as you are not yet on your own kernel.

Build the kernel, set up the boot loader and reboot to test.

The main time savers are salvaging portages settings.
Everything else is new.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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