pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: firefox build error with rustc [Was: not a PIE errors]
On Sat, 29 Jan 2022 at 11:23, Mayuresh <mayuresh%acm.org@localhost> wrote:
>
> On Sat, Jan 29, 2022 at 04:43:42PM +0530, Mayuresh wrote:
> > On Sat, Jan 29, 2022 at 09:29:52AM +0530, Mayuresh wrote:
> > > /usr/pkg/bin/cargo rustc --release --frozen --manifest-path
> > > /usr/local/netbsd/work/www/firefox/work/firefox-96.0.2/toolkit/library/rust/Cargo.toml
> > > -vv -j1 -j1 --lib --target=x86_64-unknown-netbsd --features
> > > 'cubeb_pulse_rust moz_places webrtc glean_with_gecko glean_disable_upload'
> > > -- -Clto
> > > error: The argument '--jobs <N>' was provided more than once, but cannot
> > > be used multiple times
>
> As a quick workaround, in work/firefox-96.0.2/config/makefiles/rust.mk I
> commented the line shown. May be some patch is adding -j1 which is already
> there.
>
> 61 ifeq ($(OS_ARCH),NetBSD)
> 62 #cargo_build_flags += -j1
> 63 endif
>
> --
> Mayuresh
$ ls -l /usr/pkgsrc/packages/All/firefox-96.0.2.tgz
-rw-r--r-- 1 root wheel 70292528 Jan 27 03:59
/usr/pkgsrc/packages/All/firefox-96.0.2.tgz
$ rustc --version
rustc 1.57.0
$ uname -a
NetBSD ymir 9.99.93 NetBSD 9.99.93 (GENERIC) #14: Wed Jan 26 10:26:50
GMT 2022 sysbuild@ymir:/home/sysbuild/amd64/obj/home/sysbuild/src/sys/arch/amd64/compile/GENERIC
amd64
I've seen the problem with -j given multiple times before, someone
helped me on the spot then, so I don't remember the solution.
--
----
Home |
Main Index |
Thread Index |
Old Index