std_detect is missing on these arches.
Details
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
- FreeBSD >= 12 should try elf_aux_info before KERN_PROC_AUXV, similar to how getauxval is tried before /proc/self/auxv on Linux
- AT_HWCAP is nop on powerpc64 on FreeBSD < 12, see rS332859; previous versions can use hw.cpu_features and hw.cpu_features2
- Upstreaming is necessary to avoid bitrot
Sorry, I don't know Rust to review the actual code.
lang/rust/files/patch-stdsimd | ||
---|---|---|
165 | Why not aux.hwcap2? 0x80000000 in AT_HWCAP refers to PPC_FEATURE_32, not PPC_FEATURE2_ARCH_2_07. |
man elf_aux_info
No manual entry for elf_aux_info
-> not implemented
- AT_HWCAP is nop on powerpc64 on FreeBSD < 12, see rS332859; previous versions can use hw.cpu_features and hw.cpu_features2
It'll add a lot of code for a dead branch and only for one arch, it's not worth the effort.
- Upstreaming is necessary to avoid bitrot
sure.
Sorry, I don't know Rust to review the actual code.
that makes two of us
lang/rust/files/patch-stdsimd | ||
---|---|---|
165 | congrats, you've found a bug in the linux code |
lang/rust/files/patch-stdsimd | ||
---|---|---|
166 | 2 was added to the wrong place: auxv2.hwcap -> auxv.hwcap2. |
Can you send it upstream please? It's necessary anyway and they maybe able to review the actual Rust code.
I can confirm that with the attached patch I can build rust on stable/12 on powerpc64.
I had completely forgotten about writing that manpage. Better late than never, I guess, I just did it. See D20063
Ok. I've batched this up with the Rust 1.34.1 update and test builds were fine on amd64/i386, so I have no objections to add these patches to the port.