Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 653280 - www-client/firefox-58.0.1 fails to build with rust-1.25
Summary: www-client/firefox-58.0.1 fails to build with rust-1.25
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-15 23:24 UTC by Teodor Petrov
Modified: 2019-03-31 20:06 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Backported upstream patch (dont-deny-warnings.patch,811 bytes, patch)
2018-04-17 11:10 UTC, Mateusz Lenik
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Teodor Petrov 2018-04-15 23:24:41 UTC
This https://bugzilla.mozilla.org/show_bug.cgi?id=1434619 is the upstream issue where they are discussing the problem. It seems it is fixed for firefox 59.x but not for 58.x.

# emerge --info
Portage 2.3.28 (python 2.7.14-final-0, default/linux/amd64/17.0/desktop, gcc-6.4.0, glibc-2.26-r6, 4.14.0-gentoo x86_64)
=================================================================
System uname: Linux-4.14.0-gentoo-x86_64-AMD_Ryzen_7_1700_Eight-Core_Processor-with-gentoo-2.4.1
KiB Mem:    32966064 total,   6815348 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Sun, 15 Apr 2018 17:00:01 +0000
Head commit of repository gentoo: b04429e7ffdbe7c82befee552a85ec52348c083f
sh bash 4.4_p19
ld GNU ld (Gentoo 2.27 p1.1) 2.27
app-shells/bash:          4.4_p19::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.1-r2::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.11.0::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.35.5::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.9.6-r5::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.27-r1::gentoo, 2.28-r2::gentoo, 2.28.1::gentoo, 2.29.1::gentoo, 2.30-r1::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo, 7.3.0-r2::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r3::gentoo
sys-kernel/linux-headers: 4.16-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24

obfuscated-local-repo
    location: /home/portage_overlay
    masters: gentoo
    priority: 0

Installed sets: @cb, @e17, @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=x86-64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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="-march=x86-64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.telepoint.bg/gentoo/ http://distfiles.gentoo.org"
INSTALL_MASK="winemenubuilder.exe winemenubuilder.exe.so"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="bg en en_GB"
MAKEOPTS="-j17"
PKGDIR="/home/portage_overlay/distfiles/"
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 acpi alsa amd64 ayatana berkdb branding bzip2 cairo cdda cdr cli consolekit crypt cxx dbus dri dts dvd dvdr dvdread emboss encode exif fam flac fontconfig gdbm gif glamor gpm gtk gtk2 gtk3 iconv jack jpeg lcms libnotify mad midi mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp spell sse sse2 ssl ssse3 startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vdpau vorbis wxwidgets x264 xattr xcb xinerama xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" 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="keyboard mouse wacom joystick evdev" KERNEL="linux" L10N="bg en en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby22" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, ENV_UNSET, LANG, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

And this is the error message:
13:18.19 libdom_ipc.a.desc
13:18.19 rm -f libdom_ipc.a
13:18.19 /var/tmp/portage/www-client/firefox-58.0.1/work/firefox-58.0.1/ff/_virtualenv/bin/python /var/tmp/portage/www-client/firefox-58.0.1/work/firefox-58.0.1/config/expandlibs_gen.py -o libdom_ipc.a.desc ContentChild.o ProcessHangMonitor.o Unified_cpp_dom_ipc0.o Unified_cpp_dom_ipc1.o
13:18.29 gmake[4]: Leaving directory '/var/tmp/portage/www-client/firefox-58.0.1/work/firefox-58.0.1/ff/dom/ipc'
13:35.95    Compiling geckoservo v0.0.1 (file:///var/tmp/portage/www-client/firefox-58.0.1/work/firefox-58.0.1/servo/ports/geckolib)
13:36.29 error: unnecessary parentheses around function argument
13:36.29     --> /var/tmp/portage/www-client/firefox-58.0.1/work/firefox-58.0.1/servo/ports/geckolib/glue.rs:4366:36
13:36.29      |
13:36.29 4366 |     let name = unsafe { Atom::from((&*name)) };
13:36.29      |                                    ^^^^^^^^ help: remove these parentheses
13:36.29      |
13:36.29 note: lint level defined here
13:36.29     --> /var/tmp/portage/www-client/firefox-58.0.1/work/firefox-58.0.1/servo/ports/geckolib/lib.rs:5:9
13:36.29      |
13:36.29 5    | #![deny(warnings)]
13:36.29      |         ^^^^^^^^
13:36.29      = note: #[deny(unused_parens)] implied by #[deny(warnings)]
13:36.29
13:36.91 error: aborting due to previous error
13:36.91
13:36.92 error: Could not compile `geckoservo`.
13:36.92
13:36.92 To learn more, run the command again with --verbose.
13:36.92 gmake[4]: *** [/var/tmp/portage/www-client/firefox-58.0.1/work/firefox-58.0.1/config/rules.mk:953: force-cargo-library-build] Error 101
13:36.92 gmake[4]: Leaving directory '/var/tmp/portage/www-client/firefox-58.0.1/work/firefox-58.0.1/ff/toolkit/library/rust'
13:36.92 gmake[3]: *** [/var/tmp/portage/www-client/firefox-58.0.1/work/firefox-58.0.1/config/recurse.mk:73: toolkit/library/rust/target] Error 2
13:36.92 gmake[3]: Leaving directory '/var/tmp/portage/www-client/firefox-58.0.1/work/firefox-58.0.1/ff'
13:36.92 gmake[2]: *** [/var/tmp/portage/www-client/firefox-58.0.1/work/firefox-58.0.1/config/recurse.mk:33: compile] Error 2
13:36.92 gmake[2]: Leaving directory '/var/tmp/portage/www-client/firefox-58.0.1/work/firefox-58.0.1/ff'
13:36.92 gmake[1]: *** [/var/tmp/portage/www-client/firefox-58.0.1/work/firefox-58.0.1/config/rules.mk:432: default] Error 2
13:36.92 gmake[1]: Leaving directory '/var/tmp/portage/www-client/firefox-58.0.1/work/firefox-58.0.1/ff'
13:36.92 gmake: *** [client.mk:274: build] Error 2
13:36.97 0 compiler warnings present.
Comment 1 Mateusz Lenik 2018-04-17 11:10:08 UTC
Created attachment 527674 [details, diff]
Backported upstream patch
Comment 2 Jory A. Pratt gentoo-dev 2019-03-31 20:06:25 UTC
Please feel free to reopen and update any bug report that can be duplicated with current esr builds, 60.x. If you feel your feature needs to be re looked at in any of these bugs reopen and update, please attach patches when appropriate. Thank you Mozilla Team