Summary: | media-libs/netpbm-10.86.34 failed to emerge ({standard input}:1560: Error: selected processor does not support `udot v6.4s,v2.16b,v2.16b') | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Leonid Kopylov <leonchik1976> |
Component: | Current packages | Assignee: | Viorel Munteanu <ceamac> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | ARM64 | ||
OS: | Linux | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=858431 https://bugs.gentoo.org/show_bug.cgi?id=884497 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
build1.log build2.log.xz |
Description
Leonid Kopylov
2022-09-03 14:08:50 UTC
Created attachment 803062 [details]
build.log
This is one of these weird Apple silicon (?) specific bugs you seem to keep hitting... Can you run this and post the output here? I'm trying to see what -march-native expands to on your machine. gcc -march=native -E -v - </dev/null 2>&1 | grep cc1 Thanks! (In reply to Viorel from comment #3) > Can you run this and post the output here? I'm trying to see what > -march-native expands to on your machine. > > gcc -march=native -E -v - </dev/null 2>&1 | grep cc1 > > Thanks! # gcc -march=native -E -v - </dev/null 2>&1 | grep cc1 /usr/libexec/gcc/aarch64-unknown-linux-gnu/12.2.0/cc1 -E -quiet -v - -mlittle-endian -mabi=lp64 -march=armv8-a+crypto+crc+lse+rcpc+rdma+dotprod+fp16fml+sb+ssbs+flagm+pauth -dumpbase - After some digging I think I can guess the problem. According to gcc, your cpu supports dotprod but the assembler thinks you are using an older cpu and errors out. This is most likely a gcc bug, where gcc does not set the correct target cpu when it calls as. To work around this, you can add this to your CFLAGS: -Wa,-mcpu=all This tells as to accept any extensions gcc generates. If this works, probably gcc calls as with -march=armv8-a when it should have been at least -march=armv8.2-a. If it still doesn't work, please add -v to CFLAGS instead and generate a more verbose build.log, to see exactly how gcc calls as. Created attachment 803371 [details]
build1.log
Created attachment 803374 [details]
build2.log.xz
(In reply to Viorel from comment #5) > After some digging I think I can guess the problem. > > According to gcc, your cpu supports dotprod but the assembler thinks you are > using an older cpu and errors out. This is most likely a gcc bug, where gcc > does not set the correct target cpu when it calls as. > > To work around this, you can add this to your CFLAGS: > > -Wa,-mcpu=all > > This tells as to accept any extensions gcc generates. > > If this works, probably gcc calls as with -march=armv8-a when it should have > been at least -march=armv8.2-a. > > If it still doesn't work, please add -v to CFLAGS instead and generate a > more verbose build.log, to see exactly how gcc calls as. adding "-Wa,-mcpu=all" didn't help - attached build1.log after adding -v to CFLAGS - attached build2.log if i remove: -march=native it installs same issue with media-libs/netpbm-11.0.1 |