Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cachy-browser: build fails on wasm C compiler wasi headers #449

Closed
jsmcconn opened this issue Dec 5, 2024 · 3 comments
Closed

cachy-browser: build fails on wasm C compiler wasi headers #449

jsmcconn opened this issue Dec 5, 2024 · 3 comments

Comments

@jsmcconn
Copy link

jsmcconn commented Dec 5, 2024

Unable to build cachy-browser with makepkg.

git clone https://github.com/CachyOS/CachyOS-PKGBUILDS.git
cd CachyOS-PKGBUILDS/cachy-browser
makepkg -si
 0:06.37 Using wasi sysroot in /usr/share/wasi-sysroot
 0:06.37 checking for the wasm C compiler... /usr/bin/clang
 0:06.39 checking whether the wasm C compiler can be used... yes
 0:06.39 checking the wasm C compiler version... 18.1.8
 0:06.41 checking the wasm C compiler works... yes
 0:06.43 checking the wasm C compiler can find wasi headers...
 0:06.43 DEBUG: Creating `/tmp/conftest54xtt_fm.c` with content:
 0:06.43 DEBUG: | #include <string.h>
 0:06.43 DEBUG: | int
 0:06.43 DEBUG: | main(void)
 0:06.43 DEBUG: | {
 0:06.43 DEBUG: |
 0:06.43 DEBUG: |   ;
 0:06.43 DEBUG: |   return 0;
 0:06.43 DEBUG: | }
 0:06.43 DEBUG: Executing: `/usr/bin/clang -std=gnu99 --target=wasm32-wasi /tmp/conftest54xtt_fm.c --sysroot=/usr/share/wasi-sysroot -nodefaultlibs -lc -lwasi-emulated-process-clocks -lc++ -lc++abi %%PORTAGE_WORKDIR%%/wasi-sdk-%%WASI_SDK_VER%%-%%WASI_ARCH%%-linux/lib/clang/%%WASI_SDK_LLVM_VER%%/lib/wasi/libclang_rt.builtins-wasm32.a -c`
 0:06.43 DEBUG: The command returned non-zero exit status 1.
 0:06.43 DEBUG: Its error output was:
 0:06.43 DEBUG: | clang: error: no such file or directory: '%%PORTAGE_WORKDIR%%/wasi-sdk-%%WASI_SDK_VER%%-%%WASI_ARCH%%-linux/lib/clang/%%WASI_SDK_LLVM_VER%%/lib/wasi/libclang_rt.builtins-wasm32.a'
 0:06.43 DEBUG: | clang: warning: -lc: 'linker' input unused [-Wunused-command-line-argument]
 0:06.44 DEBUG: | clang: warning: -lwasi-emulated-process-clocks: 'linker' input unused [-Wunused-command-line-argument]
 0:06.44 DEBUG: | clang: warning: -lc++: 'linker' input unused [-Wunused-command-line-argument]
 0:06.44 DEBUG: | clang: warning: -lc++abi: 'linker' input unused [-Wunused-command-line-argument]
 0:06.44 ERROR: Cannot find wasi headers or problem with the wasm compiler. Please fix the problem. Or build with --without-wasm-sandboxed-libraries.
*** Fix above errors and then restart with "./mach build"
==> ERROR: A failure occurred in build().
    Aborting...

Was working as of 92c5a5e .

@vnepogodin
Copy link
Member

vnepogodin commented Dec 5, 2024

is that on archlinux/cachyos or you are trying to build it on gentoo(or just with portage)?

@jsmcconn
Copy link
Author

jsmcconn commented Dec 5, 2024

Building on up to date CachyOS install, see here for my temp fix just created:
jsmcconn/CachyOS-Browser-Common@c19efd6

@jsmcconn
Copy link
Author

This was fixed in 221f27b, closing issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants