FS#79478 - wasi/ibclang_rt.builtins-wasm32.a is not being copied to the /usr/lib/clang/16/lib

Attached to Project: Arch Linux
Opened by Jannik Becker (becknik) - Saturday, 26 August 2023, 20:52 GMT
Last edited by freswa (frederik) - Saturday, 26 August 2023, 21:16 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
$ pwd && cd wasi
/usr/lib/clang/16.0.6
.
└── lib
└── wasi
└── libclang_rt.builtins-wasm32.a
$ cd .. && cd 16
$ pwd && cd wasi
/usr/lib/clang/16
cd: no such file or directory: wasi

This causes the build checks of the aur package librewolf in version 116.0.3-1 to not compile.
The problem started occuring after upgrading from wasi-compiler-rt-15.0.7-1 to wasi-compiler-rt-16.0.6-1.

Additional info:
* wasi-compiler-rt-16.0.6-1

Steps to reproduce:
Discribed above.
This task depends upon

Closed by  freswa (frederik)
Saturday, 26 August 2023, 21:16 GMT
Reason for closing:  Fixed
Additional comments about closing:  16.0.6-2
Comment by Jannik Becker (becknik) - Saturday, 26 August 2023, 20:55 GMT
Sorry. This is the description I actually meant to write:

$ cd /usr/lib/clang/16.0.6
$ pwd && tree
/usr/lib/clang/16.0.6
.
└── lib
└── wasi
└── libclang_rt.builtins-wasm32.a
$ cd .. && cd 16
$ pwd && cd wasi
/usr/lib/clang/16
cd: no such file or directory: wasi

A slice of the error log from building the mentioned librewolf version pointing towards this issue:

0:03.66 DEBUG: Executing: `/usr/bin/clang -std=gnu99 --target=wasm32-wasi /tmp/conftest.917npfu8.c --sysroot=/usr/share/wasi-sysroot`
0:03.66 DEBUG: The command returned non-zero exit status 1.
0:03.66 DEBUG: Its error output was:
0:03.66 DEBUG: | wasm-ld: error: cannot open /usr/lib/clang/16/lib/wasi/libclang_rt.builtins-wasm32.a: No such file or directory
0:03.66 DEBUG: | clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
0:03.66 ERROR: Cannot find wasi libraries or problem with the wasm linker. Please fix the problem. Or build with --without-wasm-sandboxed-libraries.
*** Fix above errors and then restart with "./mach build"

Loading...