Date: Wed, 05 Dec 2018 11:06:53 +0000 From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 233707] www/firefox: fails to build with -fstack-protector-{strong,all} + -Wl,-z,nocopyreloc Message-ID: <bug-233707-29464-TaCCssIJZ5@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-233707-29464@https.bugs.freebsd.org/bugzilla/> References: <bug-233707-29464@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233707 --- Comment #4 from Jan Beich <jbeich@FreeBSD.org> --- Default SSP_CFLAGS appear to cancel -fstack-protector-strong, so the port builds fine: https://ptpb.pw/G4f6 Upstream build isn't so fortunate: $ pkg install python27 $ hash git 2>/dev/null || pkg install mercurial $ hg clone https://hg.mozilla.org/mozilla-unified firefox || git clone https://github.com/mozilla/gecko-dev firefox $ cd firefox $ hg update central || git checkout origin/master $ ./mach bootstrap # select Firefox for Desktop $ ./mach build [...] checking for clock_gettime(CLOCK_MONOTONIC)... no [...] mozbuild.frontend.reader.BuildReaderError: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D FATAL ERROR PROCESSING MOZBUILD FILE =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D The error occurred while processing the following file: /path/to/mozilla-central/mozglue/misc/moz.build A moz.build file called the error() function. The error it encountered is: No TimeStamp implementation on this platform. Build will not succeed (In reply to Dimitry Andric from comment #1) > Maybe a workaround is to compile firefox with -fPIE? :) $ CFLAGS=3D-fPIE CXXFLAGS=3D$CFLAGS ./mach build [...] security/nss/lib/util/libnssutil3.so ld: error: relocation R_X86_64_PC32 cannot be used against symbol SEC_PrintableStringTemplate; recompile with -fPIC >>> defined in ../util_nssutil/secasn1d.o >>> referenced by secasn1d.c >>> ../util_nssutil/secasn1d.o:(SEC_ASN1DecoderUpdate_Util) [...] --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-233707-29464-TaCCssIJZ5>