pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: rust fails on NetBSD 8 i386

> (This is from running the build again after it failed; a lot worked
> before this.)
> The machine is reaonably up-to-date netbsd-8 (mid February build), i386,
> MacBook 4,1 with 3G of usable RAM, and is otherwise untroubled.
> I have been able to build rust on netbsd-8/amd64.

>    Compiling serde v1.0.99
> /usr/ANONCVS/pkgsrc/lang/rust/work/rustc-1.42.0-src/build/bootstrap/debug/deps/ text relocations
> error: /usr/ANONCVS/pkgsrc/lang/rust/work/rustc-1.42.0-src/build/bootstrap/debug/deps/ Cannot write-enable text segment: Permission denied

This is, I'm afraid.
Fixed in 1.42.

I beleive what I did to turn this error into a warning was to do
"paxctl +m <rustc bootstrap compiler>" (or was it the "cargo"
bootstrap binary which needed this treatment?  I forget...)

Alternatively, if you have the space to fetch all the bootstraps,
you could bump the bootstrap for NetBSD/i386 to 1.42, add

# To build 1.42 with 1.42, this is required:
CONFIGURE_ARGS+=        --set=rust.deny-warnings=false

to Makefile, do "make makesum", and proceed to build 1.42 with
the 1.42 bootstrap which should already be available.

Otherwise wait, and rust 1.43 will hopefully build on i386 out of
the box.


- Håvard

Home | Main Index | Thread Index | Old Index