pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/55475: firefox requires rust-bin when rust-src is specified
nia wrote:
> The following reply was made to PR pkg/55475; it has been noted by GNATS.
>
> From: nia <nia%NetBSD.org@localhost>
> To: gnats-bugs%netbsd.org@localhost
> Cc: pkg-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, pkgsrc-bugs%netbsd.org@localhost
> Subject: Re: pkg/55475: firefox requires rust-bin when rust-src is specified
> Date: Sun, 12 Jul 2020 10:28:44 +0000
>
> I suspect you need to clean your `work` directories so the new setting is picked
> up if you attempted to build Firefox before changing RUST_TYPE.
I ran "make clean" before each attempt. I build packages using
pkg_comp1. Twice now I deleted all packages, removed the whole
chroot including the work directory, built it all over again with
rust (src) specified before firefox and it still failed. However,
I started all over yet once again, and after updating pkgsrc again
and it appears that it is working with rust-src this time. Both
rust-src and firefox were updated in pkgsrc this time.
Thanks
> > Also, rust-bin is only for NetBSD 8 (apparently unless compat 8 is compiled in).
>
> It's for 8, 9, and newer. GENERIC netbsd kernels have no problems running
> binaries from older versions, and the assumption is that people don't
> remove random kernel options. If you have compat disabled you won't be
> able to build Rust from source anyway, since the bootstrapping process uses
> NetBSD 8.0 binaries...
And yet it doesn't run rustc, even though I used a GENERIC kernel
which certainly should :
# NetBSD backward compatibility. Support goes from COMPAT_15 up until
# the latest release. Note that really old compat (< COMPAT_16) is only
# useful for 32-bit i386 binaries.
include "conf/compat_netbsd15.config"
$ /usr/pkgnew/bin/rustc
/bin/sh: Cannot execute ELF binary /usr/pkgnew/bin/rustc
$ ls -l /usr/pkgnew/bin/rustc
-rwxr-xr-x 1 root wheel 12800 Jul 7 11:40 /usr/pkgnew/bin/rustc
Using:
options DEBUG_EXEC
options DEBUG_ELF
$ /usr/pkgnew/bin/rustc
/usr/pkgnew/bin/rustc: Exec format error. Binary file not executable.
[ 119.1513362] netbsd_elf64_signature: not netbsd
[ 119.1513362] elf32_check_header: bad magic e_ident[EI_MAG0,EI_MAG3] 0x7f454c46 , e_ident[EI_CLASS] 0x2
[ 119.1513362] elf32_check_header: bad magic e_ident[EI_MAG0,EI_MAG3] 0x7f454c46 , e_ident[EI_CLASS] 0x2
[ 119.1513362] netbsd_elf64_signature: not netbsd
[ 119.1513362] elf32_check_header: bad magic e_ident[EI_MAG0,EI_MAG3] 0x7f454c46 , e_ident[EI_CLASS] 0x2
[ 119.1513362] elf32_check_header: bad magic e_ident[EI_MAG0,EI_MAG3] 0x7f454c46 , e_ident[EI_CLASS] 0x2
Home |
Main Index |
Thread Index |
Old Index