Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934034 - dev-lang/rust wasm target needs strip -maes also (maybe more) to build in chroot
Summary: dev-lang/rust wasm target needs strip -maes also (maybe more) to build in chroot
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Randy Barlow
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-11 07:25 UTC by deim
Modified: 2024-10-04 07:13 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
filter -maes also to build wasm target in chroot also (rust-1.81.0_filter_maes.patch,537 bytes, patch)
2024-10-04 07:07 UTC, deim
Details | Diff
filter -maes also to build wasm target in chroot also (rust-1.81.0_filter_maes.patch,537 bytes, patch)
2024-10-04 07:09 UTC, deim
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.