From owner-freebsd-gecko@freebsd.org Mon Feb 15 16:30:36 2021 Return-Path: Delivered-To: freebsd-gecko@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 31A08531BD3 for ; Mon, 15 Feb 2021 16:30:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4DfV2h0k90z4lYT for ; Mon, 15 Feb 2021 16:30:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 170DF531851; Mon, 15 Feb 2021 16:30:36 +0000 (UTC) Delivered-To: gecko@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 16D55531DF2 for ; Mon, 15 Feb 2021 16:30:36 +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 4DfV2h045Bz4lSs for ; Mon, 15 Feb 2021 16:30:36 +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 E5F0F20C0D for ; Mon, 15 Feb 2021 16:30:35 +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 11FGUZjk071184 for ; Mon, 15 Feb 2021 16:30:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 11FGUZaw071183 for gecko@FreeBSD.org; Mon, 15 Feb 2021 16:30:35 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 253539] www/firefox: fails to build with LTO enabled Date: Mon, 15 Feb 2021 16:30:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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 Only Me X-Bugzilla-Who: iron.udjin@gmail.com 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: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-gecko@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Gecko Rendering Engine issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Feb 2021 16:30:36 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253539 Bug ID: 253539 Summary: www/firefox: fails to build with LTO enabled Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: gecko@FreeBSD.org Reporter: iron.udjin@gmail.com Assignee: gecko@FreeBSD.org Flags: maintainer-feedback?(gecko@FreeBSD.org) OS: 13.0-STABLE stable/13-n244516-a73aaaeb579b When I enable LTO options, firefox fails build: /usr/local/bin/clang++11 -std=3Dgnu++17 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE= =3D2 -fstack-protector-strong -Qunused-arguments -DLIBICONV_PLUG -isystem /usr/local/include -Qunused-arguments -Wall -Wbitfield-enum-conversion -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wshadow-field-in-constructor-modified -Wsign-compare -Wtype-limits -Wunreachable-code -Wunreachable-code-return -Wwrite-strings -Wno-invalid-offsetof -Wclass-varargs -Wempty-init-stmt -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wloop-analysis -Wc++2a-compat -Wcomma -Wimplicit-fallthrough -Wunused-function -Wunused-variable -Wstring-conversion -Wtautological-overlap-compare -Wtautological-unsigned-enum-zero-compare -Wtautological-unsigned-zero-comp= are -Wno-error=3Dtautological-type-limit-compare -Wno-inline-new-delete -Wno-error=3Ddeprecated-declarations -Wno-error=3Darray-bounds -Wno-error=3Dbackend-plugin -Wno-error=3Dreturn-std-move -Wno-error=3Datomic-alignment -Wno-error=3Ddeprecated-copy -Wformat -Wformat-security -Wno-gnu-zero-variadic-macro-arguments -Wno-psabi -Wno-unknown-warning-option -fno-sized-deallocation -fno-aligned-new -O2 -p= ipe -O2 -pipe -march=3Dnative -mtune=3Dnative -O3 -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -DLIBICONV_PLUG -isystem /usr/local/include -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pipe -O2 -O2 -O3 -fomit-frame-pointer -funwind-tables -fPIC -shared -Wl,-z,defs -Wl,--warn-unresolved-symbols -Wl,--gc-sections -Wl,-h,libxul.so -o libxul.so /tmpfs/usr/ports/www/firefox/work/.build/toolkit/library/build/libxul_so.li= st=20 -flto=3Dthin -Wl,-plugin-opt=3D-import-instr-limit=3D10 -Wl,-plugin-opt=3Dnew-pass-manager -Wl,-plugin-opt=3D-import-hot-multiplier= =3D30 -pthread -Wl,--as-needed -fstack-protector-strong -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc -Wl,-Bsymbolic-functions -Wl,--build-id=3Dsha1 -fstack-protector-strong -Wl,-rpath-link,/tmpfs/usr/ports/www/firefox/work/.build/dist/bin -Wl,-rpath-link,/usr/local/lib ../../../js/src/build/libjs_static.a /tmpfs/usr/ports/www/firefox/work/.build/x86_64-unknown-freebsd/release/lib= gkrust.a ../../../config/external/lgpllibs/liblgpllibs.so ../../../config/external/sqlite/libmozsqlite3.so ../../../widget/gtk/mozgtk/stub/libmozgtk_stub.so -L/usr/local/lib -licui= 18n -L/usr/local/lib -licuuc -licudata -laom -ldav1d -lX11 -lX11-xcb -lxcb -lXcomposite -lXcursor -lXdamage -lXext -lXfixes -lXi -lXrender -lpthread -= lffi -lplds4 -lplc4 -lnspr4 -pthread -ldl -lz -lm -lnss3 -lsmime3 -lssl3 -lnssut= il3 -lfreetype -lfontconfig -lutil -lpng -lwebpdemux -lwebp -lgraphite2 -lharfb= uzz -levent -lvpx -lpixman-1 -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0 -l= intl -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf= -2.0 -lgio-2.0 -lxcb-shm -lpangoft2-1.0 -lXt -lgthread-2.0 ld: warning: undefined symbol: environ >>> referenced by std.4i6l8qi9-cgu.4 >>> std-51221f867f83fee2.std.4i6l8qi9-cgu.4.rcgu.o:(std::sys:= :unix::os::env::h4012e7da961963c4) in archive /tmpfs/usr/ports/www/firefox/= work/.build/x86_64-unknown-freebsd/release/libgkrust.a >>> referenced by std.4i6l8qi9-cgu.8 >>> std-51221f867f83fee2.std.4i6l8qi9-cgu.8.rcgu.o:(std::sys:= :unix::process::process_inner::_$LT$impl$u20$std..sys..unix..process..proce= ss_common..Command$GT$::spawn::h150bb45ff1056f1c) in archive /tmpfs/usr/por= ts/www/firefox/work/.build/x86_64-unknown-freebsd/release/libgkrust.a >>> referenced by std.4i6l8qi9-cgu.8 >>> std-51221f867f83fee2.std.4i6l8qi9-cgu.8.rcgu.o:(std::sys:= :unix::process::process_inner::_$LT$impl$u20$std..sys..unix..process..proce= ss_common..Command$GT$::do_exec::h18490b6b7e7a764d) in archive /tmpfs/usr/p= orts/www/firefox/work/.build/x86_64-unknown-freebsd/release/libgkrust.a >>> referenced 2 more times ld: error: undefined hidden symbol: JS::SetHostCleanupFinalizationRegistryCallback(JSContext*, void (*)(JSFunction*, JSObject*, void*), void*) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::~CycleCollecte= dJSContext()) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::Initialize(JSR= untime*, unsigned int)) ld: error: undefined hidden symbol: JS_SetContextPrivate(JSContext*, void*) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::~CycleCollecte= dJSContext()) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::Initialize(JSR= untime*, unsigned int)) ld: error: undefined hidden symbol: JS_DestroyContext(JSContext*) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::~CycleCollecte= dJSContext()) >>> referenced by Unified_cpp_netwerk_base0.cpp >>> lto.tmp:(mozilla::net::ProxyAutoConfig::SetupJS()) >>> referenced by Unified_cpp_netwerk_base0.cpp >>> lto.tmp:(mozilla::net::ProxyAutoConfig::SetupJS()) >>> referenced 1 more times ld: error: undefined hidden symbol: JS_NewContext(unsigned int, JSRuntime*) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::Initialize(JSR= untime*, unsigned int)) >>> referenced by Unified_cpp_netwerk_base0.cpp >>> lto.tmp:(mozilla::net::ProxyAutoConfig::SetupJS()) ld: error: undefined hidden symbol: JS::SetJobQueue(JSContext*, JS::JobQueu= e*) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::Initialize(JSR= untime*, unsigned int)) ld: error: undefined hidden symbol: JS::SetPromiseRejectionTrackerCallback(JSContext*, void (*)(JSContext*, boo= l, JS::Handle, JS::PromiseRejectionHandlingState, void*), void*) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::Initialize(JSR= untime*, unsigned int)) ld: error: undefined hidden symbol: JS::AddPersistentRoot(JS::RootingContex= t*, JS::RootKind, JS::PersistentRooted*) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::Initialize(JSR= untime*, unsigned int)) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::Initialize(JSR= untime*, unsigned int)) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::Initialize(JSR= untime*, unsigned int)) >>> referenced 35 more times ld: error: undefined hidden symbol: JS::GetPromiseID(JS::Handle) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::PromiseRejecti= onTrackerCallback(JSContext*, bool, JS::Handle, JS::PromiseRejec= tionHandlingState, void*)) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::NotifyUnhandle= dRejections::Run()) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::NotifyUnhandle= dRejections::Cancel()) >>> referenced 1 more times ld: error: undefined hidden symbol: JS::GetPromiseResult(JS::Handle) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::PromiseRejecti= onTrackerCallback(JSContext*, bool, JS::Handle, JS::PromiseRejec= tionHandlingState, void*)) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::NotifyUnhandle= dRejections::Run()) >>> referenced by Unified_cpp_dom_promise0.cpp >>> lto.tmp:(mozilla::dom::PromiseDebugging::GetState(mozilla= ::dom::GlobalObject&, JS::Handle, mozilla::dom::PromiseDebugging= StateHolder&, mozilla::ErrorResult&)) >>> referenced 2 more times ld: error: undefined hidden symbol: JS::CurrentGlobalOrNull(JSContext*) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::enqueuePromise= Job(JSContext*, JS::Handle, JS::Handle, JS::Handle, JS::Handle)) >>> referenced by Unified_cpp_xpcom_base2.cpp >>> lto.tmp:(nsSystemInfo::GetProcessInfo(JSContext*, mozilla= ::dom::Promise**)) >>> referenced by Unified_cpp_intl_l10n0.cpp >>> lto.tmp:(mozilla::intl::Localization::FormatValues(JSCont= ext*, mozilla::dom::Sequence co= nst&, mozilla::ErrorResult&)) >>> referenced 2220 more times ld: error: undefined hidden symbol: JS::HeapObjectPostWriteBarrier(JSObject= **, JSObject*, JSObject*) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::enqueuePromise= Job(JSContext*, JS::Handle, JS::Handle, JS::Handle, JS::Handle)) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::enqueuePromise= Job(JSContext*, JS::Handle, JS::Handle, JS::Handle, JS::Handle)) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::enqueuePromise= Job(JSContext*, JS::Handle, JS::Handle, JS::Handle, JS::Handle)) >>> referenced 4228 more times ld: error: undefined hidden symbol: JS::GetPromiseUserInputEventHandlingState(JS::Handle) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::enqueuePromise= Job(JSContext*, JS::Handle, JS::Handle, JS::Handle, JS::Handle)) ld: error: undefined hidden symbol: JS::JobQueueMayNotBeEmpty(JSContext*) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::PerformMicroTa= skCheckPoint(bool)) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::DispatchToMicr= oTask(already_AddRefed)) >>> referenced by Unified_cpp_dom_workers0.cpp >>> lto.tmp:(mozilla::dom::WorkerJSContext::DispatchToMicroTa= sk(already_AddRefed)) >>> referenced 1 more times ld: error: undefined hidden symbol: JS::JobQueueIsEmpty(JSContext*) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::PerformMicroTa= skCheckPoint(bool)) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::PerformDebugge= rMicroTaskCheckpoint()) ld: error: undefined hidden symbol: js::MallocArena >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::saveJobQueue(J= SContext*)) >>> referenced by Unified_cpp_netwerk_base0.cpp >>> lto.tmp:(mozilla::Vector::growStorageBy(unsigned long)) >>> referenced by Unified_cpp_netwerk_base0.cpp >>> lto.tmp:(mozilla::Vector::growStorageBy(unsigned long)) >>> referenced 78 more times ld: error: undefined hidden symbol: JS_ReportOutOfMemory(JSContext*) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::saveJobQueue(J= SContext*)) >>> referenced by Unified_cpp_netwerk_base0.cpp >>> lto.tmp:(mozilla::net::Dashboard::GetSockets(mozilla::net= ::SocketData*)) >>> referenced by Unified_cpp_netwerk_base0.cpp >>> lto.tmp:(mozilla::net::Dashboard::GetHttpConnections(mozi= lla::net::HttpData*)) >>> referenced 597 more times ld: error: undefined hidden symbol: JS::IsIdleGCTaskNeeded(JSRuntime*) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::AfterProcessTa= sk(unsigned int)) ld: error: undefined hidden symbol: JS::ClearKeptObjects(JSContext*) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::AfterProcessMi= crotasks()) ld: error: undefined hidden symbol: JS::GetPromiseIsHandled(JS::Handle) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::NotifyUnhandle= dRejections::Run()) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(mozilla::CycleCollectedJSContext::NotifyUnhandle= dRejections::Run()) ld: error: undefined hidden symbol: JS::GCCellPtr::outOfLineKind() const >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(NoteWeakMapChildrenTracer::onChild(JS::GCCellPtr= const&)) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(NoteWeakMapChildrenTracer::onChild(JS::GCCellPtr= const&)) >>> referenced by Unified_cpp_xpcom_base0.cpp >>> lto.tmp:(NoteWeakMapChildrenTracer::onChild(JS::GCCellPtr= const&)) >>> referenced 829 more times ld: error: too many errors emitted, stopping now (use -error-limit=3D0 to s= ee all errors) clang++: error: linker command failed with exit code 1 (use -v to see invocation) gmake[5]: *** [/tmpfs/usr/ports/www/firefox/work/firefox-85.0.2/config/rules.mk:545: libxul.so] Error 1 gmake[5]: Leaving directory '/tmpfs/usr/ports/www/firefox/work/.build/toolkit/library/build' gmake[4]: *** [/tmpfs/usr/ports/www/firefox/work/firefox-85.0.2/config/recurse.mk:72: toolkit/library/build/target] Error 2 gmake[4]: Leaving directory '/tmpfs/usr/ports/www/firefox/work/.build' gmake[3]: *** [/tmpfs/usr/ports/www/firefox/work/firefox-85.0.2/config/recurse.mk:34: compile] Error 2 gmake[3]: Leaving directory '/tmpfs/usr/ports/www/firefox/work/.build' gmake[2]: *** [/tmpfs/usr/ports/www/firefox/work/firefox-85.0.2/config/rules.mk:355: all] Error 2 gmake[2]: Leaving directory '/tmpfs/usr/ports/www/firefox/work/.build' *** Error code 1 Stop. make[1]: stopped in /usr/ports/www/firefox *** Error code 1 Stop. make: stopped in /usr/ports/www/firefox =3D=3D=3D>>> make build failed for www/firefox =3D=3D=3D>>> Aborting update --=20 You are receiving this mail because: You are the assignee for the bug.=