with rust nightly: error: linking with ... cargo-linker ... error: relocation refers to local symbol "" [12], which is defined in a discarded section
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
People
(Reporter: u636583, Unassigned)
Details
Attachments
(1 file)
|
2.65 KB,
application/x-shellscript
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Steps to reproduce:
I'm trying to compile latest firefox mercurial trunk(changeset: 467564:92d1c344e7c5 tip) with rust nightly (rustc 1.35.0-nightly (f69422288 2019-04-01), cargo 1.35.0-dev (025b01ed 2019-04-01))
using this mozconfig file (located in /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/mozconfig) contents:
. "$topsrcdir/browser/config/mozconfig"
ac_add_options --enable-application=browser
ac_add_options --enable-optimize
ac_add_options --enable-more-deterministic
ac_add_options --disable-debug
ac_add_options --disable-install-strip
ac_add_options --disable-strip
ac_add_options --enable-debug-symbols
ac_add_options --disable-tests
ac_add_options --disable-debug-js-modules
ac_add_options --prefix=/usr
export -n MOZ_TELEMETRY_REPORTING
unset MOZ_TELEMETRY_REPORTING
export MOZ_ADDON_SIGNING=1
export MOZ_REQUIRE_SIGNING=0
export -n MOZ_TELEMETRY_ON_BY_DEFAULT
unset MOZ_TELEMETRY_ON_BY_DEFAULT
ac_add_options --with-system-nspr #XXX: using this disables show_me_dns_resolve_fails.patch so it's assumed you have compiled nspr system package with the same patch!
ac_add_options --without-system-nss
ac_add_options --with-system-jpeg
ac_add_options --with-system-zlib
ac_add_options --with-system-bz2
ac_add_options --with-system-png
ac_add_options --with-system-libevent
ac_add_options --with-system-libvpx
ac_add_options --enable-system-sqlite
ac_add_options --enable-system-ffi
ac_add_options --enable-startup-notification
ac_add_options --disable-crashreporter
ac_add_options --disable-updater
ac_add_options --disable-update-channel
ac_add_options --disable-valgrind
ac_add_options --disable-jprof
ac_add_options --disable-instruments
ac_add_options --disable-callgrind
ac_add_options --disable-cpp-rtti
ac_add_options --enable-gold
ac_add_options --disable-dtrace
ac_add_options --enable-printing
ac_add_options --disable-gconf
ac_add_options --disable-libproxy
ac_add_options --disable-dbus #!!!! notified of build finish even when this is disabled
ac_add_options --disable-dbm #!!!!
ac_add_options --disable-accessibility
ac_add_options --disable-webrtc
ac_add_options --disable-raw
ac_add_options --disable-directshow
ac_add_options --disable-wmf
ac_add_options --enable-ffmpeg
ac_add_options --enable-fmp4
ac_add_options --disable-eme
ac_add_options --disable-alsa
ac_add_options --enable-jack
ac_add_options --enable-pulseaudio
ac_add_options --disable-system-extension-dirs
ac_add_options --enable-extensions=default,-skipgnomevfs,-skipgio
ac_add_options --disable-verify-mar
ac_add_options --disable-signmar
ac_add_options --disable-parental-controls
ac_add_options --enable-sandbox
ac_add_options --enable-content-sandbox
ac_add_options --enable-zipwriter
ac_add_options --disable-logrefcnt
ac_add_options --disable-dump-painting
ac_add_options --disable-elf-hack
ac_add_options --disable-tasktracer
ac_add_options --disable-stdcxx-compat
ac_add_options --disable-startupcache
ac_add_options --disable-nfc
ac_add_options --disable-webspeech
ac_add_options --disable-synth-speechd
ac_add_options --disable-webspeechtestbackend
ac_add_options --disable-synth-pico
ac_add_options --disable-system-cairo
ac_add_options --disable-system-pixman
ac_add_options --enable-xul
ac_add_options --disable-necko-wifi
ac_add_options --enable-ctypes
ac_add_options --with-system-icu #FIXME: /home/user/build/1packages/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/gfx/sfntly/cpp/src/sample/chromium/subsetter_impl.cc:51:38: error: ‘UnicodeString’ has not been declared
ac_add_options --with-intl-api
ac_add_options --disable-hardening
ac_add_options --enable-release
ac_add_options --enable-rust-simd #notanymoreXXX: requires 0002-bz-1468911.patch and a prior cdff;mv third_party/rust/packed_simd/ /tmp
ac_add_options --disable-profiling #can't use this due to: mozbuild.configure.options.InvalidOptionError: '--enable-profiling' implied by '--disable-dmd' conflicts with '--disable-profiling' from the mozconfig BUT this seems to have appeared possibly due to PGO or other options I've added since last time! TODO: try re-disabling this ... oddly enough it works only when I specify ac_add_options --disable-dmd but when I don't I get that above error as if it's already disabled-dmd ... hmmm ok wait
ac_add_options --disable-vtune #mozbuild.configure.options.InvalidOptionError: '--enable-vtune' implied by '--enable-profiling' conflicts with '--disable-vtune' from the mozconfig
ac_add_options --disable-dmd #DMD (short for "dark matter detector") is a heap profiler within Firefox. https://developer.mozilla.org/en-US/docs/Mozilla/Performance/DMD
mk_add_options AUTOCONF=autoconf-2.13
mk_add_options PYTHON=/usr/bin/python2
export CXXFLAGS="-pipe -march=native -Wno-trigraphs -fno-delete-null-pointer-checks -mtune=native -fomit-frame-pointer -O2 -fPIC -D_FORTIFY_SOURCE=2 -fno-plt"
export CFLAGS="-pipe -march=native -Wno-trigraphs -fno-delete-null-pointer-checks -mtune=native -fomit-frame-pointer -O2 -fPIC -D_FORTIFY_SOURCE=2 -fno-plt"
mk_add_options MOZ_MAKE_FLAGS="-j5"
ac_add_options --with-ccache=/usr/bin/ccache
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@
mk_add_options AUTOCLOBBER=1
on ArchLinux x86_64, CPU model name : AMD A6-3400M APU with Radeon(tm) HD Graphics (4 cores), 16G RAM
using command(s):
export LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro" # from /etc/makepkg.conf
export LDFLAGS="$LDFLAGS -Wl,-rpath,/usr/lib/firefox"
export PYTHON="/usr/bin/python2"
export MOZ_MAKE_FLAGS="-j1"
export MOZBUILD_STATE_PATH="/tmp/.mozbuild"
export MOZ_SOURCE_REPO="https://hg.mozilla.org/mozilla-central"
unset CPPFLAGS
xvfb-run -a -n 97 -s "-screen 0 1366x768x24" ./mach -v build -v -j1
Actual results:
0:05.66 /home/user/bin/cargo rustc --release --frozen --manifest-path /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/js/src/rust/Cargo.toml -vv --color=always --lib --target=x86_64-unknown-linux-gnu --features 'cranelift_x86' -- -C lto
0:05.67 !! LD_LIBRARY_PATH=
0:05.67 !! Executing '/home/user/build/2nonpkgs/rust.stuff/cargo/cargo//target/release//cargo' in pwd='/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/js/src/rust' with args: 'rustc --release --frozen --manifest-path /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/js/src/rust/Cargo.toml -vv --color=always --lib --target=x86_64-unknown-linux-gnu --features cranelift_x86 -- -C lto'
0:05.67 !! !MOZ_CARGO_WRAP_LD=' /usr/bin/ccache /usr/bin/clang -std=gnu99'
0:05.67 !! !MOZ_CARGO_WRAP_LDFLAGS='-lpthread -Wl,-O1,--sort-common,--as-needed,-z,relro -Wl,-rpath,/usr/lib/firefox -fuse-ld=gold -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc -Wl,-Bsymbolic-functions -Wl,--build-id=sha1 -fstack-protector-strong -Wl,--icf=safe -Wl,-rpath-link,/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/dist/bin -Wl,-rpath-link,/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/dist/lib -fcolor-diagnostics'!
0:05.67 Default host: x86_64-unknown-linux-gnu
0:05.79 installed toolchains
0:05.79 --------------------
0:05.79 nightly-x86_64-unknown-linux-gnu (default)
0:05.79 master-installed
0:05.79 master-stage1
0:05.79 master-stage2
0:05.79 active toolchain
0:05.79 ----------------
0:05.80 nightly-x86_64-unknown-linux-gnu (default)
0:05.81 rustc 1.35.0-nightly (f69422288 2019-04-01)
0:07.10 Compiling proc-macro2 v0.4.24
0:07.10 Fresh unicode-xid v0.1.0
0:07.10 Compiling ryu v0.2.4
0:07.11 Compiling serde v1.0.80
0:07.11 Running CARGO_PKG_REPOSITORY='https://github.com/alexcrichton/proc-macro2' CARGO_PKG_AUTHORS='Alex Crichton <alex@alexcrichton.com>' LD_LIBRARY_PATH='/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps:/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/user/build/2nonpkgs/rust.stuff/cargo/cargo/target/release/cargo CARGO_PKG_VERSION_MAJOR=0 CARGO_MANIFEST_DIR=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/third_party/rust/proc-macro2 CARGO_PKG_VERSION=0.4.24 CARGO_PKG_VERSION_PRE= CARGO_TARGET_BINFILE_FULLPATH=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/build/proc-macro2-b607e185fe58c8a6/build-script-build CARGO_PKG_DESCRIPTION='A stable implementation of the upcoming new proc_macro API. Comes with an 0:07.11 option, off by default, to also reimplement itself in terms of the upstream 0:07.11 unstable API. 0:07.11 ' CARGO_PKG_NAME=proc-macro2 CARGO_PKG_VERSION_PATCH=24 CARGO_PKG_HOMEPAGE='https://github.com/alexcrichton/proc-macro2' CARGO_PKG_VERSION_MINOR=4 /home/user/bin/rustc --crate-name build_script_build /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/third_party/rust/proc-macro2/build.rs --color always --crate-type bin --emit=dep-info,link -C opt-level=2 -C codegen-units=1 --cfg 'feature="default"' --cfg 'feature="proc-macro"' -C metadata=b607e185fe58c8a6 -C extra-filename=-b607e185fe58c8a6 --out-dir /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/build/proc-macro2-b607e185fe58c8a6 -C linker=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/build/cargo-linker -L dependency=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps --cap-lints warn
0:07.11 Running CARGO_PKG_REPOSITORY='https://github.com/dtolnay/ryu' CARGO_PKG_AUTHORS='David Tolnay <dtolnay@gmail.com>' LD_LIBRARY_PATH='/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps:/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/user/build/2nonpkgs/rust.stuff/cargo/cargo/target/release/cargo CARGO_PKG_VERSION_MAJOR=0 CARGO_MANIFEST_DIR=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/third_party/rust/ryu CARGO_PKG_VERSION=0.2.4 CARGO_PKG_VERSION_PRE= CARGO_TARGET_BINFILE_FULLPATH=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/build/ryu-ab2a5ec2a629ad15/build-script-build CARGO_PKG_DESCRIPTION='Fast floating point to string conversion' CARGO_PKG_NAME=ryu CARGO_PKG_VERSION_PATCH=4 CARGO_PKG_HOMEPAGE= CARGO_PKG_VERSION_MINOR=2 /home/user/bin/rustc --crate-name build_script_build /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/third_party/rust/ryu/build.rs --color always --crate-type bin --emit=dep-info,link -C opt-level=2 -C codegen-units=1 -C metadata=ab2a5ec2a629ad15 -C extra-filename=-ab2a5ec2a629ad15 --out-dir /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/build/ryu-ab2a5ec2a629ad15 -C linker=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/build/cargo-linker -L dependency=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps --cap-lints warn
0:07.11 Compiling itoa v0.4.1
0:07.11 Running CARGO_PKG_REPOSITORY='https://github.com/dtolnay/itoa' CARGO_PKG_AUTHORS='David Tolnay <dtolnay@gmail.com>' LD_LIBRARY_PATH='/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps:/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/user/build/2nonpkgs/rust.stuff/cargo/cargo/target/release/cargo CARGO_PKG_VERSION_MAJOR=0 CARGO_MANIFEST_DIR=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/third_party/rust/itoa CARGO_PKG_VERSION=0.4.1 CARGO_PKG_VERSION_PRE= CARGO_PKG_DESCRIPTION='Fast functions for printing integer primitives to an io::Write' CARGO_PKG_NAME=itoa CARGO_PKG_VERSION_PATCH=1 CARGO_PKG_HOMEPAGE= CARGO_PKG_VERSION_MINOR=4 /home/user/bin/rustc --crate-name itoa /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/third_party/rust/itoa/src/lib.rs --color always --crate-type lib --emit=dep-info,link -C opt-level=2 -C codegen-units=1 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=d51be5505fb63670 -C extra-filename=-d51be5505fb63670 --out-dir /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps -C linker=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/build/cargo-linker -L dependency=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps --cap-lints warn
0:07.11 Running CARGO_PKG_REPOSITORY='https://github.com/serde-rs/serde' CARGO_PKG_AUTHORS='Erick Tryzelaar <erick.tryzelaar@gmail.com>:David Tolnay <dtolnay@gmail.com>' LD_LIBRARY_PATH='/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps:/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/user/build/2nonpkgs/rust.stuff/cargo/cargo/target/release/cargo CARGO_PKG_VERSION_MAJOR=1 CARGO_MANIFEST_DIR=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/third_party/rust/serde CARGO_PKG_VERSION=1.0.80 CARGO_PKG_VERSION_PRE= CARGO_TARGET_BINFILE_FULLPATH=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/build/serde-121150e9925d4b57/build-script-build CARGO_PKG_DESCRIPTION='A generic serialization/deserialization framework' CARGO_PKG_NAME=serde CARGO_PKG_VERSION_PATCH=80 CARGO_PKG_HOMEPAGE='https://serde.rs' CARGO_PKG_VERSION_MINOR=0 /home/user/bin/rustc --crate-name build_script_build /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/third_party/rust/serde/build.rs --color always --crate-type bin --emit=dep-info,link -C opt-level=2 -C codegen-units=1 --cfg 'feature="default"' --cfg 'feature="rc"' --cfg 'feature="serde_derive"' --cfg 'feature="std"' -C metadata=121150e9925d4b57 -C extra-filename=-121150e9925d4b57 --out-dir /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/build/serde-121150e9925d4b57 -C linker=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/build/cargo-linker -L dependency=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps --cap-lints warn
0:07.13 !! LD_LIBRARY_PATH=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps:/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib
0:07.13 !! Executing '/home/user/.cargo/bin/rustc' in pwd='/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/third_party/rust/itoa' with args: '--crate-name itoa /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/third_party/rust/itoa/src/lib.rs --color always --crate-type lib --emit=dep-info,link -C opt-level=2 -C codegen-units=1 --cfg feature="default" --cfg feature="std" -C metadata=d51be5505fb63670 -C extra-filename=-d51be5505fb63670 --out-dir /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps -C linker=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/build/cargo-linker -L dependency=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps --cap-lints warn'
0:07.13 !! LD_LIBRARY_PATH=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps:/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib
0:07.13 !! !MOZ_CARGO_WRAP_LD=' /usr/bin/ccache /usr/bin/clang -std=gnu99'
0:07.13 !! !MOZ_CARGO_WRAP_LDFLAGS='-lpthread -Wl,-O1,--sort-common,--as-needed,-z,relro -Wl,-rpath,/usr/lib/firefox -fuse-ld=gold -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc -Wl,-Bsymbolic-functions -Wl,--build-id=sha1 -fstack-protector-strong -Wl,--icf=safe -Wl,-rpath-link,/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/dist/bin -Wl,-rpath-link,/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/dist/lib -fcolor-diagnostics'!
0:07.13 !! Executing '/home/user/.cargo/bin/rustc' in pwd='/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/third_party/rust/proc-macro2' with args: '--crate-name build_script_build /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/third_party/rust/proc-macro2/build.rs --color always --crate-type bin --emit=dep-info,link -C opt-level=2 -C codegen-units=1 --cfg feature="default" --cfg feature="proc-macro" -C metadata=b607e185fe58c8a6 -C extra-filename=-b607e185fe58c8a6 --out-dir /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/build/proc-macro2-b607e185fe58c8a6 -C linker=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/build/cargo-linker -L dependency=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps --cap-lints warn'
0:07.13 !! !MOZ_CARGO_WRAP_LD=' /usr/bin/ccache /usr/bin/clang -std=gnu99'
0:07.13 !! !MOZ_CARGO_WRAP_LDFLAGS='-lpthread -Wl,-O1,--sort-common,--as-needed,-z,relro -Wl,-rpath,/usr/lib/firefox -fuse-ld=gold -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc -Wl,-Bsymbolic-functions -Wl,--build-id=sha1 -fstack-protector-strong -Wl,--icf=safe -Wl,-rpath-link,/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/dist/bin -Wl,-rpath-link,/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/dist/lib -fcolor-diagnostics'!
0:07.14 !! LD_LIBRARY_PATH=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps:/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib
0:07.14 !! Executing '/home/user/.cargo/bin/rustc' in pwd='/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/third_party/rust/ryu' with args: '--crate-name build_script_build /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/third_party/rust/ryu/build.rs --color always --crate-type bin --emit=dep-info,link -C opt-level=2 -C codegen-units=1 -C metadata=ab2a5ec2a629ad15 -C extra-filename=-ab2a5ec2a629ad15 --out-dir /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/build/ryu-ab2a5ec2a629ad15 -C linker=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/build/cargo-linker -L dependency=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps --cap-lints warn'
0:07.14 !! !MOZ_CARGO_WRAP_LD=' /usr/bin/ccache /usr/bin/clang -std=gnu99'
0:07.14 !! !MOZ_CARGO_WRAP_LDFLAGS='-lpthread -Wl,-O1,--sort-common,--as-needed,-z,relro -Wl,-rpath,/usr/lib/firefox -fuse-ld=gold -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc -Wl,-Bsymbolic-functions -Wl,--build-id=sha1 -fstack-protector-strong -Wl,--icf=safe -Wl,-rpath-link,/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/dist/bin -Wl,-rpath-link,/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/dist/lib -fcolor-diagnostics'!
0:07.14 Default host: x86_64-unknown-linux-gnu
0:07.15 Default host: x86_64-unknown-linux-gnu
0:07.15 Default host: x86_64-unknown-linux-gnu
0:07.16 !! LD_LIBRARY_PATH=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps:/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib
0:07.16 !! Executing '/home/user/.cargo/bin/rustc' in pwd='/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/third_party/rust/serde' with args: '--crate-name build_script_build /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/third_party/rust/serde/build.rs --color always --crate-type bin --emit=dep-info,link -C opt-level=2 -C codegen-units=1 --cfg feature="default" --cfg feature="rc" --cfg feature="serde_derive" --cfg feature="std" -C metadata=121150e9925d4b57 -C extra-filename=-121150e9925d4b57 --out-dir /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/build/serde-121150e9925d4b57 -C linker=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/build/cargo-linker -L dependency=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps --cap-lints warn'
0:07.16 !! !MOZ_CARGO_WRAP_LD=' /usr/bin/ccache /usr/bin/clang -std=gnu99'
0:07.16 !! !MOZ_CARGO_WRAP_LDFLAGS='-lpthread -Wl,-O1,--sort-common,--as-needed,-z,relro -Wl,-rpath,/usr/lib/firefox -fuse-ld=gold -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc -Wl,-Bsymbolic-functions -Wl,--build-id=sha1 -fstack-protector-strong -Wl,--icf=safe -Wl,-rpath-link,/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/dist/bin -Wl,-rpath-link,/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/dist/lib -fcolor-diagnostics'!
0:07.19 Default host: x86_64-unknown-linux-gnu
0:07.30 installed toolchains
0:07.30 --------------------
0:07.30 nightly-x86_64-unknown-linux-gnu (default)
0:07.30 master-installed
0:07.30 master-stage1
0:07.30 master-stage2
0:07.30 active toolchain
0:07.30 ----------------
0:07.30 nightly-x86_64-unknown-linux-gnu (default)
0:07.31 rustc 1.35.0-nightly (f69422288 2019-04-01)
0:07.32 installed toolchains
0:07.32 --------------------
0:07.32 nightly-x86_64-unknown-linux-gnu (default)
0:07.32 master-installed
0:07.32 master-stage1
0:07.32 master-stage2
0:07.32 active toolchain
0:07.32 ----------------
0:07.32 nightly-x86_64-unknown-linux-gnu (default)
0:07.33 installed toolchains
0:07.33 --------------------
0:07.33 nightly-x86_64-unknown-linux-gnu (default)
0:07.33 master-installed
0:07.33 master-stage1
0:07.33 master-stage2
0:07.33 active toolchain
0:07.33 ----------------
0:07.33 nightly-x86_64-unknown-linux-gnu (default)
0:07.33 installed toolchains
0:07.33 --------------------
0:07.34 nightly-x86_64-unknown-linux-gnu (default)
0:07.34 master-installed
0:07.34 master-stage1
0:07.34 master-stage2
0:07.34 active toolchain
0:07.34 ----------------
0:07.34 nightly-x86_64-unknown-linux-gnu (default)
0:07.34 rustc 1.35.0-nightly (f69422288 2019-04-01)
0:07.35 rustc 1.35.0-nightly (f69422288 2019-04-01)
0:07.37 rustc 1.35.0-nightly (f69422288 2019-04-01)
0:07.83 Fresh cc v1.0.23 (https://github.com/glandium/cc-rs?branch=1.0.23-clang-cl-aarch64#2aa71628)
0:07.83 Compiling failure_derive v0.1.3
0:07.83 Running CARGO_PKG_REPOSITORY='https://github.com/withoutboats/failure_derive' CARGO_PKG_AUTHORS='Without Boats <woboats@gmail.com>' LD_LIBRARY_PATH='/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps:/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/user/build/2nonpkgs/rust.stuff/cargo/cargo/target/release/cargo CARGO_PKG_VERSION_MAJOR=0 CARGO_MANIFEST_DIR=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/third_party/rust/failure_derive CARGO_PKG_VERSION=0.1.3 CARGO_PKG_VERSION_PRE= CARGO_TARGET_BINFILE_FULLPATH=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/build/failure_derive-b7b9ab5c8aba49d2/build-script-build CARGO_PKG_DESCRIPTION='derives for the failure crate' CARGO_PKG_NAME=failure_derive CARGO_PKG_VERSION_PATCH=3 CARGO_PKG_HOMEPAGE='https://boats.gitlab.io/failure' CARGO_PKG_VERSION_MINOR=1 /home/user/bin/rustc --crate-name build_script_build /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/third_party/rust/failure_derive/build.rs --color always --crate-type bin --emit=dep-info,link -C opt-level=2 -C codegen-units=1 -C metadata=b7b9ab5c8aba49d2 -C extra-filename=-b7b9ab5c8aba49d2 --out-dir /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/build/failure_derive-b7b9ab5c8aba49d2 -C linker=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/build/cargo-linker -L dependency=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps --cap-lints warn
0:07.85 !! LD_LIBRARY_PATH=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps:/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib
0:07.85 !! Executing '/home/user/.cargo/bin/rustc' in pwd='/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/third_party/rust/failure_derive' with args: '--crate-name build_script_build /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/third_party/rust/failure_derive/build.rs --color always --crate-type bin --emit=dep-info,link -C opt-level=2 -C codegen-units=1 -C metadata=b7b9ab5c8aba49d2 -C extra-filename=-b7b9ab5c8aba49d2 --out-dir /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/build/failure_derive-b7b9ab5c8aba49d2 -C linker=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/build/cargo-linker -L dependency=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps --cap-lints warn'
0:07.85 !! !MOZ_CARGO_WRAP_LD=' /usr/bin/ccache /usr/bin/clang -std=gnu99'
0:07.85 !! !MOZ_CARGO_WRAP_LDFLAGS='-lpthread -Wl,-O1,--sort-common,--as-needed,-z,relro -Wl,-rpath,/usr/lib/firefox -fuse-ld=gold -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc -Wl,-Bsymbolic-functions -Wl,--build-id=sha1 -fstack-protector-strong -Wl,--icf=safe -Wl,-rpath-link,/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/dist/bin -Wl,-rpath-link,/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/dist/lib -fcolor-diagnostics'!
0:07.87 Default host: x86_64-unknown-linux-gnu
0:08.01 installed toolchains
0:08.01 --------------------
0:08.01 nightly-x86_64-unknown-linux-gnu (default)
0:08.01 master-installed
0:08.01 master-stage1
0:08.01 master-stage2
0:08.01 active toolchain
0:08.01 ----------------
0:08.01 nightly-x86_64-unknown-linux-gnu (default)
0:08.04 rustc 1.35.0-nightly (f69422288 2019-04-01)
0:16.57 error: linking with /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/build/cargo-linker failed: exit code: 1
0:16.57 |
0:16.57 = note: "/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/build/cargo-linker" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/build/serde-121150e9925d4b57/build_script_build-121150e9925d4b57.build_script_build.d44vtbe8-cgu.0.rcgu.o" "-o" "/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/build/serde-121150e9925d4b57/build_script_build-121150e9925d4b57" "/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/build/serde-121150e9925d4b57/build_script_build-121150e9925d4b57.3367c55vai3i48ma.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-Wl,-O1" "-nodefaultlibs" "-L" "/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps" "-L" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,--start-group" "-Wl,-Bstatic" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-c01cac2ce9e03269.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-a9e3145b7a6e05dd.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-dd1b17e574d71e63.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-0d46e4bd4496c954.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-fab060072b0569f5.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-45ff0d61110b1510.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-5e910cc24ee736e2.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-e6d4692001ede088.rlib" "-Wl,--end-group" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-9b00dedc0dda6ebf.rlib" "-Wl,-Bdynamic" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil"
0:16.63 = note: /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-9b00dedc0dda6ebf.rlib(compiler_builtins-9b00dedc0dda6ebf.compiler_builtins.cqcjgied-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [12], which is defined in a discarded section
0:16.63 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-9b00dedc0dda6ebf.rlib(compiler_builtins-9b00dedc0dda6ebf.compiler_builtins.cqcjgied-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [13], which is defined in a discarded section
0:16.63 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-9b00dedc0dda6ebf.rlib(compiler_builtins-9b00dedc0dda6ebf.compiler_builtins.cqcjgied-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [14], which is defined in a discarded section
0:16.63 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-9b00dedc0dda6ebf.rlib(compiler_builtins-9b00dedc0dda6ebf.compiler_builtins.cqcjgied-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [15], which is defined in a discarded section
...
lots more of these here
...
0:16.80 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-9b00dedc0dda6ebf.rlib(compiler_builtins-9b00dedc0dda6ebf.compiler_builtins.cqcjgied-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [181], which is defined in a discarded section
0:16.80 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-9b00dedc0dda6ebf.rlib(compiler_builtins-9b00dedc0dda6ebf.compiler_builtins.cqcjgied-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [182], which is defined in a discarded section
0:16.81 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-9b00dedc0dda6ebf.rlib(compiler_builtins-9b00dedc0dda6ebf.compiler_builtins.cqcjgied-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [183], which is defined in a discarded section
0:16.81 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [622], which is defined in a discarded section
0:16.81 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [623], which is defined in a discarded section
0:16.81 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [625], which is defined in a discarded section
0:16.81 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [626], which is defined in a discarded section
0:16.81 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [629], which is defined in a discarded section
...
lots more of these here
...
0:16.83 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [673], which is defined in a discarded section
0:16.83 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [674], which is defined in a discarded section
0:16.83 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [679], which is defined in a discarded section
0:16.84 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x12): error: relocation refers to local symbol "" [683], which is defined in a discarded section
0:16.84 section group signature: "(null)"
0:16.84 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x1b): error: relocation refers to local symbol "" [696], which is defined in a discarded section
0:16.84 section group signature: "(null)"
0:16.84 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x5a): error: relocation refers to local symbol "" [750], which is defined in a discarded section
0:16.84 section group signature: "(null)"
0:16.84 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x6c): error: relocation refers to local symbol "" [761], which is defined in a discarded section
...
impressively lots more of these here
...
0:17.56 section group signature: "(null)"
0:17.56 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [1819], which is defined in a discarded section
0:17.56 section group signature: "(null)"
0:17.56 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [1820], which is defined in a discarded section
0:17.56 section group signature: "(null)"
0:17.56 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [1821], which is defined in a discarded section
0:17.56 section group signature: "(null)"
0:17.56 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-dd1b17e574d71e63.rlib(rustc_demangle-dd1b17e574d71e63.rustc_demangle.ajv0t5ph-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [18], which is defined in a discarded section
0:17.56 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-dd1b17e574d71e63.rlib(rustc_demangle-dd1b17e574d71e63.rustc_demangle.ajv0t5ph-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [20], which is defined in a discarded section
0:17.56 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-dd1b17e574d71e63.rlib(rustc_demangle-dd1b17e574d71e63.rustc_demangle.ajv0t5ph-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [25], which is defined in a discarded section
0:17.56 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-dd1b17e574d71e63.rlib(rustc_demangle-dd1b17e574d71e63.rustc_demangle.ajv0t5ph-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [26], which is defined in a discarded section
0:17.56 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-dd1b17e574d71e63.rlib(rustc_demangle-dd1b17e574d71e63.rustc_demangle.ajv0t5ph-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [28], which is defined in a discarded section
...
more of them here
...
0:17.58 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-45ff0d61110b1510.rlib(alloc-45ff0d61110b1510.alloc.a3xes3y3-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [78], which is defined in a discarded section
0:17.58 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-45ff0d61110b1510.rlib(alloc-45ff0d61110b1510.alloc.a3xes3y3-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [79], which is defined in a discarded section
0:17.58 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-45ff0d61110b1510.rlib(alloc-45ff0d61110b1510.alloc.a3xes3y3-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [80], which is defined in a discarded section
0:17.58 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-45ff0d61110b1510.rlib(alloc-45ff0d61110b1510.alloc.a3xes3y3-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [81], which is defined in a discarded section
0:17.58 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-e6d4692001ede088.rlib(core-e6d4692001ede088.core.32glli4c-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [230], which is defined in a discarded section
0:17.58 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-e6d4692001ede088.rlib(core-e6d4692001ede088.core.32glli4c-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [231], which is defined in a discarded section
0:17.58 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-e6d4692001ede088.rlib(core-e6d4692001ede088.core.32glli4c-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [232], which is defined in a discarded section
0:17.58 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-e6d4692001ede088.rlib(core-e6d4692001ede088.core.32glli4c-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [234], which is defined in a discarded section
...
hundreds more here
...
0:17.82 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-e6d4692001ede088.rlib(core-e6d4692001ede088.core.32glli4c-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [914], which is defined in a discarded section
0:17.82 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-e6d4692001ede088.rlib(core-e6d4692001ede088.core.32glli4c-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [915], which is defined in a discarded section
0:17.82 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-e6d4692001ede088.rlib(core-e6d4692001ede088.core.32glli4c-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [916], which is defined in a discarded section
0:17.82 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-e6d4692001ede088.rlib(core-e6d4692001ede088.core.32glli4c-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [917], which is defined in a discarded section
0:17.82 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-e6d4692001ede088.rlib(core-e6d4692001ede088.core.32glli4c-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [918], which is defined in a discarded section
0:17.82 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-e6d4692001ede088.rlib(core-e6d4692001ede088.core.32glli4c-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [919], which is defined in a discarded section
0:17.82 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-e6d4692001ede088.rlib(core-e6d4692001ede088.core.32glli4c-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [920], which is defined in a discarded section
0:17.82 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-e6d4692001ede088.rlib(core-e6d4692001ede088.core.32glli4c-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [921], which is defined in a discarded section
0:17.82 clang-8: error: linker command failed with exit code 1 (use -v to see invocation)
0:17.82
0:17.82 error: aborting due to previous error
0:17.82 error: Could not compile serde.
0:17.82 Caused by:
0:17.82 process didn't exit successfully: CARGO_PKG_REPOSITORY='https://github.com/serde-rs/serde' CARGO_PKG_AUTHORS='Erick Tryzelaar <erick.tryzelaar@gmail.com>:David Tolnay <dtolnay@gmail.com>' LD_LIBRARY_PATH='/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps:/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/user/build/2nonpkgs/rust.stuff/cargo/cargo/target/release/cargo CARGO_PKG_VERSION_MAJOR=1 CARGO_MANIFEST_DIR=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/third_party/rust/serde CARGO_PKG_VERSION=1.0.80 CARGO_PKG_VERSION_PRE= CARGO_TARGET_BINFILE_FULLPATH=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/build/serde-121150e9925d4b57/build-script-build CARGO_PKG_DESCRIPTION='A generic serialization/deserialization framework' CARGO_PKG_NAME=serde CARGO_PKG_VERSION_PATCH=80 CARGO_PKG_HOMEPAGE='https://serde.rs' CARGO_PKG_VERSION_MINOR=0 /home/user/bin/rustc --crate-name build_script_build /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/third_party/rust/serde/build.rs --color always --crate-type bin --emit=dep-info,link -C opt-level=2 -C codegen-units=1 --cfg 'feature="default"' --cfg 'feature="rc"' --cfg 'feature="serde_derive"' --cfg 'feature="std"' -C metadata=121150e9925d4b57 -C extra-filename=-121150e9925d4b57 --out-dir /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/build/serde-121150e9925d4b57 -C linker=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/build/cargo-linker -L dependency=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps --cap-lints warn (exit code: 1)
0:17.82 warning: build failed, waiting for other jobs to finish...
0:17.82 error: linking with /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/build/cargo-linker failed: exit code: 1
0:17.82 |
0:17.82 = note: "/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/build/cargo-linker" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/build/proc-macro2-b607e185fe58c8a6/build_script_build-b607e185fe58c8a6.build_script_build.94cdbcl3-cgu.0.rcgu.o" "-o" "/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/build/proc-macro2-b607e185fe58c8a6/build_script_build-b607e185fe58c8a6" "/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/build/proc-macro2-b607e185fe58c8a6/build_script_build-b607e185fe58c8a6.3shva53l7iaso6pf.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-Wl,-O1" "-nodefaultlibs" "-L" "/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps" "-L" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,--start-group" "-Wl,-Bstatic" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-c01cac2ce9e03269.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-a9e3145b7a6e05dd.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-dd1b17e574d71e63.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-0d46e4bd4496c954.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-fab060072b0569f5.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-45ff0d61110b1510.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-5e910cc24ee736e2.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-e6d4692001ede088.rlib" "-Wl,--end-group" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-9b00dedc0dda6ebf.rlib" "-Wl,-Bdynamic" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil"
0:17.83 = note: /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-9b00dedc0dda6ebf.rlib(compiler_builtins-9b00dedc0dda6ebf.compiler_builtins.cqcjgied-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [12], which is defined in a discarded section
0:17.83 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-9b00dedc0dda6ebf.rlib(compiler_builtins-9b00dedc0dda6ebf.compiler_builtins.cqcjgied-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [13], which is defined in a discarded section
0:17.83 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-9b00dedc0dda6ebf.rlib(compiler_builtins-9b00dedc0dda6ebf.compiler_builtins.cqcjgied-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [14], which is defined in a discarded section
0:17.83 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-9b00dedc0dda6ebf.rlib(compiler_builtins-9b00dedc0dda6ebf.compiler_builtins.cqcjgied-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [15], which is defined in a discarded section
...
more here
...
0:17.90 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-9b00dedc0dda6ebf.rlib(compiler_builtins-9b00dedc0dda6ebf.compiler_builtins.cqcjgied-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [180], which is defined in a discarded section
0:17.90 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-9b00dedc0dda6ebf.rlib(compiler_builtins-9b00dedc0dda6ebf.compiler_builtins.cqcjgied-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [181], which is defined in a discarded section
0:17.90 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-9b00dedc0dda6ebf.rlib(compiler_builtins-9b00dedc0dda6ebf.compiler_builtins.cqcjgied-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [182], which is defined in a discarded section
0:17.90 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-9b00dedc0dda6ebf.rlib(compiler_builtins-9b00dedc0dda6ebf.compiler_builtins.cqcjgied-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [183], which is defined in a discarded section
0:17.90 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [622], which is defined in a discarded section
0:17.90 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [623], which is defined in a discarded section
0:17.90 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [625], which is defined in a discarded section
...
more here
...
0:17.91 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [673], which is defined in a discarded section
0:17.92 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [674], which is defined in a discarded section
0:17.92 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [679], which is defined in a discarded section
0:17.92 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x12): error: relocation refers to local symbol "" [683], which is defined in a discarded section
0:17.92 section group signature: "(null)"
0:17.92 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x1b): error: relocation refers to local symbol "" [696], which is defined in a discarded section
0:17.92 section group signature: "(null)"
0:17.92 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x5a): error: relocation refers to local symbol "" [750], which is defined in a discarded section
...
more here
...
0:17.99 section group signature: "(null)"
0:17.99 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x645): error: relocation refers to local symbol "" [1785], which is defined in a discarded section
0:17.99 section group signature: "(null)"
0:18.00 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x64e): error: relocation refers to local symbol "" [1787], which is defined in a discarded section
0:18.00 section group signature: "(null)"
0:18.00 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [684], which is defined in a discarded section
0:18.00 section group signature: "(null)"
0:18.00 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e4188d26f42911c5.rlib(std-e4188d26f42911c5.std.b8iklw2d-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [687], which is defined in a discarded section
...
snip huge section
...
0:20.92 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-e6d4692001ede088.rlib(core-e6d4692001ede088.core.32glli4c-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [915], which is defined in a discarded section
0:20.92 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-e6d4692001ede088.rlib(core-e6d4692001ede088.core.32glli4c-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [916], which is defined in a discarded section
0:20.92 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-e6d4692001ede088.rlib(core-e6d4692001ede088.core.32glli4c-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [917], which is defined in a discarded section
0:20.92 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-e6d4692001ede088.rlib(core-e6d4692001ede088.core.32glli4c-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [918], which is defined in a discarded section
0:20.92 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-e6d4692001ede088.rlib(core-e6d4692001ede088.core.32glli4c-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [919], which is defined in a discarded section
0:20.92 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-e6d4692001ede088.rlib(core-e6d4692001ede088.core.32glli4c-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [920], which is defined in a discarded section
0:20.92 /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-e6d4692001ede088.rlib(core-e6d4692001ede088.core.32glli4c-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [921], which is defined in a discarded section
0:20.92 clang-8: error: linker command failed with exit code 1 (use -v to see invocation)
0:20.92
0:20.92 error: aborting due to previous error
0:20.92 error: Could not compile failure_derive.
0:20.92 Caused by:
0:20.92 process didn't exit successfully: CARGO_PKG_REPOSITORY='https://github.com/withoutboats/failure_derive' CARGO_PKG_AUTHORS='Without Boats <woboats@gmail.com>' LD_LIBRARY_PATH='/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps:/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/user/build/2nonpkgs/rust.stuff/cargo/cargo/target/release/cargo CARGO_PKG_VERSION_MAJOR=0 CARGO_MANIFEST_DIR=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/third_party/rust/failure_derive CARGO_PKG_VERSION=0.1.3 CARGO_PKG_VERSION_PRE= CARGO_TARGET_BINFILE_FULLPATH=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/build/failure_derive-b7b9ab5c8aba49d2/build-script-build CARGO_PKG_DESCRIPTION='derives for the failure crate' CARGO_PKG_NAME=failure_derive CARGO_PKG_VERSION_PATCH=3 CARGO_PKG_HOMEPAGE='https://boats.gitlab.io/failure' CARGO_PKG_VERSION_MINOR=1 /home/user/bin/rustc --crate-name build_script_build /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/third_party/rust/failure_derive/build.rs --color always --crate-type bin --emit=dep-info,link -C opt-level=2 -C codegen-units=1 -C metadata=b7b9ab5c8aba49d2 -C extra-filename=-b7b9ab5c8aba49d2 --out-dir /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/build/failure_derive-b7b9ab5c8aba49d2 -C linker=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/build/cargo-linker -L dependency=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps --cap-lints warn (exit code: 1)
0:20.92 make[4]: *** [/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/config/makefiles/rust.mk:236: force-cargo-library-build] Error 101
0:20.92 make[4]: Leaving directory '/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/js/src/rust'
0:20.92 make[3]: *** [/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/config/recurse.mk:74: js/src/rust/target] Error 2
0:20.92 make[3]: Leaving directory '/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu'
0:20.92 make[2]: *** [/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/config/recurse.mk:34: compile] Error 2
0:20.92 make[2]: Leaving directory '/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu'
0:20.92 make[1]: *** [/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/config/rules.mk:400: default] Error 2
0:20.92 make[1]: Leaving directory '/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu'
0:20.92 make: *** [client.mk:125: build] Error 2
0:20.95 0 compiler warnings present.
0:20.98 ccache (direct) hit rate: 0.0%; (preprocessed) hit rate: 0.0%; miss rate: 0.0%
/home/user/build/1packages/4used/firefox-hg/PKGBUILD: line 267: kill: (12748) - No such process
==> ERROR: A failure occurred in build().
Aborting...
Expected results:
no compilation/linking errors
This used to compile just fine before, but either rust nightly being updated recently or my CFLAGS/CPPFLAGS getting changed recently are causing this to fail.
The attached script should have
LD_LIBRARY_PATH=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps:/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib
instead of LD_LIBRARY_PATH=''
though it has the same effect.
Note that I also tried and can successfully reproduce the issue with a rustc compiled locally, for which the script is like this:
#!/bin/bash
rustup default master-installed
export MOZ_CARGO_WRAP_LD="/usr/bin/ccache /usr/bin/clang -std=gnu99"
export MOZ_CARGO_WRAP_LDFLAGS="-lpthread -Wl,-O1,--sort-common,--as-needed,-z,relro -Wl,-rpath,/usr/lib/firefox -fuse-ld=gold -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc -Wl,-Bsymbolic-functions -Wl,--build-id=sha1 -fstack-protector-strong -Wl,--icf=safe -Wl,-rpath-link,/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/dist/bin -Wl,-rpath-link,/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/dist/lib -fcolor-diagnostics"
#export LD_LIBRARY_PATH="/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps"
export LD_LIBRARY_PATH="/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps:/home/user/build/2nonpkgs/rust.stuff/rust/rust.installed.dir/lib"
shellcheck disable=SC2016
time CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=4 CARGO_PKG_VERSION_PRE='' CARGO_PKG_DESCRIPTION='A stable implementation of the upcoming new proc_macro API. Comes with an option, off by default, to also reimplement itself in terms of the upstream unstable API.' CARGO_PKG_VERSION=0.4.24 CARGO_TARGET_BINFILE_FULLPATH=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/build/proc-macro2-f082263f63c67a6c/build-script-build LD_LIBRARY_PATH='/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps:/home/user/build/2nonpkgs/rust.stuff/rust/rust.installed.dir/lib' CARGO_PKG_AUTHORS='Alex Crichton <alex@alexcrichton.com>' CARGO_PKG_HOMEPAGE='https://github.com/alexcrichton/proc-macro2' CARGO_MANIFEST_DIR=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/third_party/rust/proc-macro2 CARGO=/home/user/build/2nonpkgs/rust.stuff/cargo/cargo/target/release/cargo CARGO_PKG_VERSION_PATCH=24 CARGO_PKG_NAME=proc-macro2 CARGO_PKG_REPOSITORY='https://github.com/alexcrichton/proc-macro2' /home/user/bin/rustc --crate-name build_script_build /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/third_party/rust/proc-macro2/build.rs --color always --crate-type bin --emit=dep-info,link -C opt-level=2 -C codegen-units=1 --cfg 'feature="default"' --cfg 'feature="proc-macro"' -C metadata=f082263f63c67a6c -C extra-filename=-f082263f63c67a6c --out-dir /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/build/proc-macro2-f082263f63c67a6c -C linker=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/build/cargo-linker -L dependency=/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps --cap-lints warn
#real 0m2.256s
#user 0m2.180s
#sys 0m0.161s
It is almost 4 times faster for some reason, compared to nightly! Though both nightly and this locally compiled rust (aka master-installed) are based off of the same commit.
rustc 1.35.0-dev (f69422288 2019-04-01)
binary: rustc
commit-hash: f694222887cf31f51e68927716c25736e62f037f
commit-date: 2019-04-01
host: x86_64-unknown-linux-gnu
release: 1.35.0-dev
LLVM version: 8.0
cargo 1.35.0-dev (025b01ed 2019-04-01)
release: 1.35.0
commit-hash: 025b01edd0bba49b7e49c1cacc65bb1f6462ee57
commit-date: 2019-04-01
Any ideas on what I could try to get rid of the issue? Other than bisecting rust. Now if only I could remember which nightly worked last hmm...
Updated•7 years ago
|
no issue with toolchain nightly-2019-03-26-x86_64-unknown-linux-gnu
rustc 1.35.0-nightly (4c27fb19b 2019-03-25)
binary: rustc
commit-hash: 4c27fb19ba15a2e45485e601a79914c6280196b0
commit-date: 2019-03-25
host: x86_64-unknown-linux-gnu
release: 1.35.0-nightly
LLVM version: 8.0
cargo 1.35.0-dev (025b01ed 2019-04-01)
release: 1.35.0
commit-hash: 025b01edd0bba49b7e49c1cacc65bb1f6462ee57
commit-date: 2019-04-01
(yeah I didn't change the cargo version)
So with just:
$ rustup install nightly-2019-03-26
$ rustup default nightly-2019-03-26-x86_64-unknown-linux-gnu
(and then clean/rm the firefox build dir, of course)
Firefox compilation is still ongoing at the moment but I can tell it went past the proc-macro2 compilation and apparently MOZ_CARGO_WRAP_LDFLAGS=' ' but maybe the output was mangled due to my enabling -j4 in two places.
Re-running the build shows 3 fresh proc-macro2, so it has to have worked:
0:05.82 Fresh proc-macro2 v0.3.5
0:05.86 Fresh proc-macro2 v0.4.24
0:07.28 Fresh proc-macro2 v0.4.24
I'll try to find the first bad nightly next.
This issue doesn't happen with
Last good nightly:
nightly-2019-03-28-x86_64-unknown-linux-gnu (default)
rustc 1.35.0-nightly (33ef0bad2 2019-03-27)
binary: rustc
commit-hash: 33ef0bad21d6bb646c7c3ab0dbf381ca96c324bf
commit-date: 2019-03-27
host: x86_64-unknown-linux-gnu
release: 1.35.0-nightly
LLVM version: 8.0
The issue happens with
First bad nightly:
nightly-2019-03-29-x86_64-unknown-linux-gnu (default)
rustc 1.35.0-nightly (237bf3244 2019-03-28)
binary: rustc
commit-hash: 237bf3244fffef501cf37d4bda00e1fce3fcfb46
commit-date: 2019-03-28
host: x86_64-unknown-linux-gnu
release: 1.35.0-nightly
LLVM version: 8.0
For each test I was using the same cargo and a clean firefox build dir:
cargo 1.35.0-dev (025b01ed 2019-04-01)
release: 1.35.0
commit-hash: 025b01edd0bba49b7e49c1cacc65bb1f6462ee57
commit-date: 2019-04-01
Meanwhile I will double-check the above (eg. let firefox finish compiling with last good nightly, and re-check it fails with first bad nightly)
Comment 4•7 years ago
|
||
It seems you should open a bug against rust.
made a rust issue at: https://github.com/rust-lang/rust/issues/59652
Firefox compilation succeeded just fine with Last good nightly mentioned above (nightly-2019-03-28-x86_64-unknown-linux-gnu), so now I have ArchLinux package local/firefox-hg r467616+.48ae682107da+-1
Wow, I must've been wrong because I couldn't reproduce the issue with the first bad nightly: nightly-2019-03-29-x86_64-unknown-linux-gnu but only with the next one which is:
nightly-2019-03-30-x86_64-unknown-linux-gnu (default)
rustc 1.35.0-nightly (e782d790f 2019-03-29)
binary: rustc
commit-hash: e782d790f1b63d82af39248bebe027f92d891bcc
commit-date: 2019-03-29
host: x86_64-unknown-linux-gnu
release: 1.35.0-nightly
LLVM version: 8.0
That's why I wanted to double-check because I knew something like this was bound to happen... Now I will have to re-check to make sure the new last good nightly is indeed nightly-2019-03-29-x86_64-unknown-linux-gnu
bisected Rust to commit/PR https://github.com/rust-lang/rust/pull/59401
and double checked that it is indeed the cause.
Further updates in the rust issue linked from Comment 5
7:34.01 error: linking with /home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/build/cargo-linker failed: exit code: 1
7:34.01 |
7:34.01 = note: "/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/build/cargo-linker" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/user/build/2nonpkgs/rust.stuff/rust/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/build/ryu-8a7536ee956c68e6/build_script_build-8a7536ee956c68e6.build_script_build.4q1f8hxs-cgu.0.rcgu.o" "-o" "/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/build/ryu-8a7536ee956c68e6/build_script_build-8a7536ee956c68e6" "/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/build/ryu-8a7536ee956c68e6/build_script_build-8a7536ee956c68e6.19umj6qtuq39brcy.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-Wl,-O1" "-nodefaultlibs" "-L" "/home/user/build/1packages/4used/firefox-hg/makepkg_pacman/firefox-hg/src/firefox-hg/obj-x86_64-pc-linux-gnu/release/deps" "-L" "/home/user/build/2nonpkgs/rust.stuff/rust/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,--start-group" "-Wl,-Bstatic" "/home/user/build/2nonpkgs/rust.stuff/rust/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-578e8481ab9b9fe6.rlib" "/home/user/build/2nonpkgs/rust.stuff/rust/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-9ab5307c4acbe3e8.rlib" "/home/user/build/2nonpkgs/rust.stuff/rust/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-c61712546c368f26.rlib" "/home/user/build/2nonpkgs/rust.stuff/rust/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-fa0c687e7b50547c.rlib" "/home/user/build/2nonpkgs/rust.stuff/rust/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-d9adaabb2b975ad1.rlib" "/home/user/build/2nonpkgs/rust.stuff/rust/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-5c17a4ebd8683a60.rlib" "/home/user/build/2nonpkgs/rust.stuff/rust/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-f4f63167eba4ba79.rlib" "/home/user/build/2nonpkgs/rust.stuff/rust/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-51342466fe7e9788.rlib" "/home/user/build/2nonpkgs/rust.stuff/rust/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-092919e4956df028.rlib" "-Wl,--end-group" "/home/user/build/2nonpkgs/rust.stuff/rust/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-b8e922db290b80ba.rlib" "-Wl,-Bdynamic" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil"
7:34.12 = note: /home/user/build/2nonpkgs/rust.stuff/rust/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-b8e922db290b80ba.rlib(compiler_builtins-b8e922db290b80ba.compiler_builtins.79vw674n-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [12], which is defined in a discarded section
7:34.14 /home/user/build/2nonpkgs/rust.stuff/rust/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-b8e922db290b80ba.rlib(compiler_builtins-b8e922db290b80ba.compiler_builtins.79vw674n-cgu.0.rcgu.o)(.stack_sizes+0x0): error: relocation refers to local symbol "" [13], which is defined in a discarded section
...
This issue happens only when overriding the default(of not using ld.gold, the gold linker) in mozconfig with ac_add_options --enable-gold and it seems to be a ld.gold issue
That being said, the following patch(applied to binutils 2.32, not yet released on ArchLinux) works around it:
diff --git a/gold/target-reloc.h b/gold/target-reloc.h
index 97e45da619..20a6fc0542 100644
--- a/gold/target-reloc.h
+++ b/gold/target-reloc.h
@@ -136,6 +136,8 @@ class Default_comdat_behavior
if (Layout::is_debug_info_section(name))
return CB_PRETEND;
if (strcmp(name, ".eh_frame") == 0
+ || strncmp(name, ".stack_sizes", 12+1) == 0
+ //|| strncmp(name, ".gnu.build.attributes", 21) == 0 // FIXME: We should really be checking the section type for ST_NOTE... // NOTE: this line(and inspiration for the above .stack_sizes line) from: https://bugzilla.redhat.com/show_bug.cgi?id=1600431#c6 ) // decided to comment out this line since I cannot repro that bug that it supposedly fixes with GNU gold (GNU Binutils 2.31.1) 1.16 or with GNU gold (GNU Binutils 2.32) 1.16
|| strcmp(name, ".gcc_except_table") == 0)
return CB_IGNORE;
return CB_ERROR;
Other workarounds(pick one):
- prevent Rust from emitting stack sizes (see patch inside Details of https://github.com/rust-lang/rust/issues/59652#issuecomment-479654606 )
- making firefox not use
ld.goldlinker by either NOT specifyingac_add_options --enable-goldinsidemozconfig, or by explicitly specifyingac_add_options --disable-gold(this is the default) - somehow avoiding
--gc-sectionsfrom being passed told.goldlinker, the code which passes it is inside Rust, and I reference it here: https://github.com/rust-lang/rust/issues/59652#issuecomment-482253086
So, I think this issue can be closed? Thoughts?
Rust decided to revert the PR that was causing this, in commit https://github.com/rust-lang/rust/commit/633fc9eef0d26a1c9b59fad8e807632f234a8aae
2 days ago.
Description
•