From nobody Mon Jul 12 15:20:37 2021 X-Original-To: gecko@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 74C691279A76 for ; Mon, 12 Jul 2021 15:20:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GNnX52jb2z4WQ2 for ; Mon, 12 Jul 2021 15:20:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 46BD011457 for ; Mon, 12 Jul 2021 15:20:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 16CFKbWQ025002 for ; Mon, 12 Jul 2021 15:20:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 16CFKbH2025001 for gecko@FreeBSD.org; Mon, 12 Jul 2021 15:20:37 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: gecko@FreeBSD.org Subject: [Bug 255311] mail/thunderbird fails to build with LTO option enabled Date: Mon, 12 Jul 2021 15:20:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: mi@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gecko@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc bug_severity Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Gecko Rendering Engine issues List-Archive: https://lists.freebsd.org/archives/freebsd-gecko List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-gecko@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255311 Mikhail Teterin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mi@FreeBSD.org Severity|Affects Only Me |Affects Some People --- Comment #1 from Mikhail Teterin --- "Me too"... Building on 11.4-stable/amd64, using clang12 (itself freshly bu= ilt by its port): > error: linking with `/spare/usr/ports/mail/thunderbird/work/thunderbird-7= 8.12.0/build/cargo-linker` failed: exit status: 1 > | > =3D note: "/spare/usr/ports/mail/thunderbird/work/thunderbird-78.12.0/bu= ild cargo-linker" "-m64" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-Wl,--as= -needed" "-L" "/opt/lib/rustlib/x86_64-unknown-freebsd/lib" "/spare/usr/por= ts/mail/thunderbird/work/.build/release/build/proc-macro2-c10ea1ece1827ca8/= build_script_build-c10ea1ece1827ca8.build_script_build.4jz208pc-cgu.0.rcgu.= o" "/spare/usr/ports/mail/thunderbird/work/.build/release/build/proc-macro2= -c10ea1ece1827ca8/build_script_build-c10ea1ece1827ca8.build_script_build.4j= z208pc-cgu.1.rcgu.o" "/spare/usr/ports/mail/thunderbird/work/.build/release= /build/proc-macro2-c10ea1ece1827ca8/build_script_build-c10ea1ece1827ca8.bui= ld_script_build.4jz208pc-cgu.10.rcgu.o" "/spare/usr/ports/mail/thunderbird/= work/.build/release/build/proc-macro2-c10ea1ece1827ca8/build_script_build-c= 10ea1ece1827ca8.build_script_build.4jz208pc-cgu.11.rcgu.o" "/spare/usr/port= s/mail/thunderbird/work/.build/release/build/proc-macro2-c10ea1ece1827ca8/b= uild_script_build-c10ea1ece1827ca8.build_script_build.4jz208pc-cgu.12.rcgu.= o" "/spare/usr/ports/mail/thunderbird/work/.build/release/build/proc-macro2= -c10ea1ece1827ca8/build_script_build-c10ea1ece1827ca8.build_script_build.4j= z208pc-cgu.13.rcgu.o" "/spare/usr/ports/mail/thunderbird/work/.build/releas= e/build/proc-macro2-c10ea1ece1827ca8/build_script_build-c10ea1ece1827ca8.bu= ild_script_build.4jz208pc-cgu.14.rcgu.o" "/spare/usr/ports/mail/thunderbird= /work/.build/release/build/proc-macro2-c10ea1ece1827ca8/build_script_build-= c10ea1ece1827ca8.build_script_build.4jz208pc-cgu.15.rcgu.o" "/spare/usr/por= ts/mail/thunderbird/work/.build/release/build/proc-macro2-c10ea1ece1827ca8/= build_script_build-c10ea1ece1827ca8.build_script_build.4jz208pc-cgu.2.rcgu.= o" "/spare/usr/ports/mail/thunderbird/work/.build/release/build/proc-macro2= -c10ea1ece1827ca8/build_script_build-c10ea1ece1827ca8.build_script_build.4j= z208pc-cgu.3.rcgu.o" "/spare/usr/ports/mail/thunderbird/work/.build/release= /build/proc-macro2-c10ea1ece1827ca8/build_script_build-c10ea1ece1827ca8.bui= ld_script_build.4jz208pc-cgu.4.rcgu.o" "/spare/usr/ports/mail/thunderbird/w= ork/.build/release/build/proc-macro2-c10ea1ece1827ca8/build_script_build-c1= 0ea1ece1827ca8.build_script_build.4jz208pc-cgu.5.rcgu.o" "/spare/usr/ports/= mail/thunderbird/work/.build/release/build/proc-macro2-c10ea1ece1827ca8/bui= ld_script_build-c10ea1ece1827ca8.build_script_build.4jz208pc-cgu.6.rcgu.o" = "/spare/usr/ports/mail/thunderbird/work/.build/release/build/proc-macro2-c1= 0ea1ece1827ca8/build_script_build-c10ea1ece1827ca8.build_script_build.4jz20= 8pc-cgu.7.rcgu.o" "/spare/usr/ports/mail/thunderbird/work/.build/release/bu= ild/proc-macro2-c10ea1ece1827ca8/build_script_build-c10ea1ece1827ca8.build_= script_build.4jz208pc-cgu.8.rcgu.o" "/spare/usr/ports/mail/thunderbird/work= /.build/release/build/proc-macro2-c10ea1ece1827ca8/build_script_build-c10ea= 1ece1827ca8.build_script_build.4jz208pc-cgu.9.rcgu.o" "-o" "/spare/usr/port= s/mail/thunderbird/work/.build/release/build/proc-macro2-c10ea1ece1827ca8/b= uild_script_build-c10ea1ece1827ca8" "/spare/usr/ports/mail/thunderbird/work= /.build/release/build/proc-macro2-c10ea1ece1827ca8/build_script_build-c10ea= 1ece1827ca8.2crvumdazz2s49ps.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelr= o" "-Wl,-znow" "-nodefaultlibs" "-L" "/spare/usr/ports/mail/thunderbird/wor= k/.build/release/deps" "-L" "/opt/lib/rustlib/x86_64-unknown-freebsd/lib" "= -Wl,--start-group" "-Wl,-Bstatic" "/opt/lib/rustlib/x86_64-unknown-freebsd/= lib/libstd-60484778edbab02a.rlib" "/opt/lib/rustlib/x86_64-unknown-freebsd/= lib/libpanic_unwind-dc2ae4d0a466e49f.rlib" "/opt/lib/rustlib/x86_64-unknown= -freebsd/lib/libminiz_oxide-4ffdbfe2ec17bf17.rlib" "/opt/lib/rustlib/x86_64= -unknown-freebsd/lib/libadler-c0c35bf5c8faaa12.rlib" "/opt/lib/rustlib/x86_= 64-unknown-freebsd/lib/libobject-2f585d565898c512.rlib" "/opt/lib/rustlib/x= 86_64-unknown-freebsd/lib/libaddr2line-c4981ba22728774a.rlib" "/opt/lib/rus= tlib/x86_64-unknown-freebsd/lib/libgimli-53f3ea5ca1698b2e.rlib" "/opt/lib/r= ustlib/x86_64-unknown-freebsd/lib/libstd_detect-ca404df982551ee0.rlib" "/op= t/lib/rustlib/x86_64-unknown-freebsd/lib/librustc_demangle-6cc518f71c9c2316= .rlib" "/opt/lib/rustlib/x86_64-unknown-freebsd/lib/libhashbrown-df5cfc7c9e= 693ffe.rlib" "/opt/lib/rustlib/x86_64-unknown-freebsd/lib/librustc_std_work= space_alloc-05242e744576510b.rlib" "/opt/lib/rustlib/x86_64-unknown-freebsd= /lib/libunwind-9845119b8b6a2916.rlib" "/opt/lib/rustlib/x86_64-unknown-free= bsd/lib/libcfg_if-6c8ff242046b1c52.rlib" "/opt/lib/rustlib/x86_64-unknown-f= reebsd/lib/liblibc-85760c759f190965.rlib" "/opt/lib/rustlib/x86_64-unknown-= freebsd/lib/liballoc-3a190eca975ddd7e.rlib" "/opt/lib/rustlib/x86_64-unknow= n-freebsd/lib/librustc_std_workspace_core-7525106f2a6b24a2.rlib" "/opt/lib/= rustlib/x86_64-unknown-freebsd/lib/libcore-4ee7510cd643b335.rlib" "-Wl,--en= d-group" "/opt/lib/rustlib/x86_64-unknown-freebsd/lib/libcompiler_builtins-= 46641b4a03e19e40.rlib" "-Wl,-Bdynamic" "-lexecinfo" "-lpthread" "-lgcc_s" "= -lc" "-lm" "-lrt" "-lpthread" "-lrt" "-lutil" "-lutil" > =3D note: clang: warning: argument unused during compilation: '-pthread'= [-Wunused-command-line-argument] > /opt/bin/ld: /tmp/lto-llvm-f7837b.o: in function `std::backtrace= _rs::symbolize::gimli::elf::Object::section': > std.36oq6ef3-cgu.5:(.text._ZN3std12backtrace_rs9symbolize5gimli3= elf6Object7section17h56e1f216297ada85E+0x13): undefined reference to `__rus= t_probestack' > clang: error: linker command failed with exit code 1 (use -v to = see invocation) Searching for the __rust_probestack, one finds: https://github.com/rust-lang/rust/issues/74657 where the "fix" seems to be in using lld or gold instead of bfd. Indeed, after I edited the ${WRKSRC}/build/cargo-linker to add `-fuse-ld=3D= gold` to the command-line, the above error disappeared. Should the port be doing this automatically? --=20 You are receiving this mail because: You are the assignee for the bug.=