Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936635 - dev-lang/rust-1.79.0: failed to run custom build command for `compiler_builtins v0.1.109` if compiling with use "wasm"
Summary: dev-lang/rust-1.79.0: failed to run custom build command for `compiler_builti...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Randy Barlow
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-25 15:58 UTC by Markus Probst
Modified: 2024-08-07 21:23 UTC (History)
5 users (show)

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


Attachments
the build.log compressed using xz (build.log.xz,697.74 KB, application/x-xz)
2024-07-25 20:57 UTC, Markus Probst
Details
Output of `emerge --info =dev-lang/rust-1.79.0` (info.log,10.19 KB, text/x-log)
2024-07-25 20:58 UTC, Markus Probst
Details
Output of `emerge -pqv =dev-lang/rust-1.79.0` (pqv.log,486 bytes, text/x-log)
2024-07-25 20:58 UTC, Markus Probst
Details
build log (build.log.bz2,819.31 KB, application/x-bzip2)
2024-08-07 19:53 UTC, Robert Schultz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Probst 2024-07-25 15:58:49 UTC
If dev-lang/rust-1.79.0 is compiled with "wasm", it fails with the error:
failed to run custom build command for `compiler_builtins v0.1.109`

(The command itself is a bit long, so look for yourself in the attached build.log)
Comment 1 Mike Gilbert gentoo-dev 2024-07-25 20:37:55 UTC
You have failed to attach the build log. Please also provide emerge --info.
Comment 2 Markus Probst 2024-07-25 20:57:32 UTC
Created attachment 898313 [details]
the build.log compressed using xz
Comment 3 Markus Probst 2024-07-25 20:58:08 UTC
Created attachment 898314 [details]
Output of `emerge --info =dev-lang/rust-1.79.0`
Comment 4 Markus Probst 2024-07-25 20:58:33 UTC
Created attachment 898315 [details]
Output of `emerge -pqv =dev-lang/rust-1.79.0`
Comment 5 Markus Probst 2024-07-25 20:59:52 UTC
(In reply to Mike Gilbert from comment #1)
> You have failed to attach the build log. Please also provide emerge --info.

Yeah, sorry about that. I guess I am either stupid or it didn't upload because it was larger than the upload limit.
Comment 6 Robert Schultz 2024-08-07 19:53:42 UTC
Created attachment 899466 [details]
build log

Bug happens for me too:

[compiler_builtins 0.1.109] CFLAGS_wasm32_unknown_unknown = Some("-ffunction-sections -fdata-sections -fPIC --target=wasm32-unknown-unknown -pipe -mno-pku -mn
o-sgx -mrtm --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=19712 -fdebug-prefix-map=/var/tmp/portage/dev-lang/rust-1.79.0/work/r
ustc-1.79.0-src=/rustc/129f3b9964af4d4a709d1383930ade12dfe7c081")
[compiler_builtins 0.1.109] cargo:warning=clang: error: unsupported option '-mno-pku' for target 'wasm32-unknown-unknown'
[compiler_builtins 0.1.109] cargo:warning=clang: error: unsupported option '-mno-sgx' for target 'wasm32-unknown-unknown'
[compiler_builtins 0.1.109] cargo:warning=clang: error: unsupported option '-mrtm' for target 'wasm32-unknown-unknown'
[compiler_builtins 0.1.109] cargo:warning=clang: warning: argument unused during compilation: '--param=l1-cache-line-size=64' [-Wunused-command-line-argument]
[compiler_builtins 0.1.109] cargo:warning=clang: warning: argument unused during compilation: '--param=l1-cache-size=32' [-Wunused-command-line-argument]
[compiler_builtins 0.1.109] cargo:warning=clang: warning: argument unused during compilation: '--param=l2-cache-size=19712' [-Wunused-command-line-argument]
[compiler_builtins 0.1.109] 
[compiler_builtins 0.1.109] 
[compiler_builtins 0.1.109] error occurred: Command "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=wasm32-unknown-unknown" "-ffunctio
n-sections" "-fdata-sections" "-fPIC" "--target=wasm32-unknown-unknown" "-pipe" "-mno-pku" "-mno-sgx" "-mrtm" "--param=l1-cache-line-size=64" "--param=l1-cach
e-size=32" "--param=l2-cache-size=19712" "-fdebug-prefix-map=/var/tmp/portage/dev-lang/rust-1.79.0/work/rustc-1.79.0-src=/rustc/129f3b9964af4d4a709d1383930ade
12dfe7c081" "-fno-builtin" "-fvisibility=hidden" "-ffreestanding" "-DVISIBILITY_HIDDEN" "-o" "/var/tmp/portage/dev-lang/rust-1.79.0/work/rustc-1.79.0-src/buil
d/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/build/compiler_builtins-ef2902352451a8ee/out/8926cfe43f081305-absvdi2.o" "-c" "/var/tmp/p
ortage/dev-lang/rust-1.79.0/work/rustc-1.79.0-src/src/llvm-project/compiler-rt/lib/builtins/absvdi2.c" with args clang did not execute successfully (status co
de exit status: 1).
[compiler_builtins 0.1.109] 
[compiler_builtins 0.1.109] 
The following warnings were emitted during compilation:

warning: compiler_builtins@0.1.109: clang: error: unsupported option '-mno-pku' for target 'wasm32-unknown-unknown'
warning: compiler_builtins@0.1.109: clang: error: unsupported option '-mno-sgx' for target 'wasm32-unknown-unknown'
warning: compiler_builtins@0.1.109: clang: error: unsupported option '-mrtm' for target 'wasm32-unknown-unknown'
warning: compiler_builtins@0.1.109: clang: warning: argument unused during compilation: '--param=l1-cache-line-size=64' [-Wunused-command-line-argument]
warning: compiler_builtins@0.1.109: clang: warning: argument unused during compilation: '--param=l1-cache-size=32' [-Wunused-command-line-argument]
warning: compiler_builtins@0.1.109: clang: warning: argument unused during compilation: '--param=l2-cache-size=19712' [-Wunused-command-line-argument]

error: failed to run custom build command for `compiler_builtins v0.1.109`
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information g
eneration.