Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 934034

Summary: dev-lang/rust wasm target needs strip -maes also (maybe more) to build in chroot
Product: Gentoo Linux Reporter: deim <deim>
Component: Current packagesAssignee: Randy Barlow <randy>
Status: UNCONFIRMED ---    
Severity: normal CC: darkdexter, deim, dememax, matoro_gentoo, navi, robert, rust
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: filter -maes also to build wasm target in chroot also
filter -maes also to build wasm target in chroot also

Description deim 2024-06-11 07:25:45 UTC
wasm target doesn't compile with -maes flag set.

I use this flag on PC to build bin packages for low-end laptop.

Maybe more flags should be filtered.

508c508
<               export CFLAGS_${wasm_target//-/_}="$(filter-flags '-mcpu*' '-march*' '-mtune*'; echo "$CFLAGS")"
---
>               export CFLAGS_${wasm_target//-/_}="$(filter-flags '-mcpu*' '-march*' '-mtune*' '-maes*'; echo "$CFLAGS")"

Reproducible: Always
Comment 1 Maxim P. Dementiev 2024-08-08 15:01:54 UTC
Thanks for informing!
The same problem.
Comment 2 deim 2024-10-04 07:07:36 UTC
Created attachment 904888 [details, diff]
filter -maes also to build wasm target in chroot also

Please apply this patch to actual rust ebuilds and keep in incomming versions. Thanks :-)
Comment 3 deim 2024-10-04 07:09:32 UTC
Created attachment 904892 [details, diff]
filter -maes also to build wasm target in chroot also
Comment 4 deim 2024-10-04 07:13:32 UTC
To reproduce problem try to manually set to CFLAGS -maes and emerge will complain wasm don't support aes.