Re: Adding/creating wasi-libc++ into the wasi-libc package

2023-12-05 Thread Jan Staněk
Hello!

Tom Stellard  writes:
> Would it be possible to re-use the existing libcxx package and
> just build it twice, once for the host and once for wasm?  Kind
> of like what some packages do for mingw?

Maybe; I assume nor me nor Jan have any previous experience with
building libcxx, so we are not really qualified to answer.

The upstream wasi-sdk project (which my wasi-libc is one part of)
generally relies on llvm toolchain for everything. The SDK itself is
basically a llvm/clang/clang++ built to emit WASM with associated
standard libraries thrown in.

Now it might be possible to just build the GNU libcxx for wasm32-wasi
target (presumably using wasi-libc as the libc implementation)
and that would be usable; on the other hand, it might not, and the llvm
libcxx would be needed.

Tom, would you be able to provide a test build of libcxx for
wasm32-wasi, so the other Jan can see if that would work for him?
Then we can decide what approach to take next.
--
Jan Staněk
Software Engineer, Red Hat
jsta...@redhat.com   irc: jstanek


signature.asc
Description: PGP signature
--
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Re: Adding/creating wasi-libc++ into the wasi-libc package

2023-12-04 Thread Tom Stellard

On 11/30/23 04:23, Jan Horak wrote:

Hi,
I'm trying to make the sandboxing using the wasi available for the Firefox and 
for that I need the wasi-sdk [1] in the build root.

Currently there's wasi-libc [2] available which is fine and it almost contains 
all the headers and libraries needed by the wasi-sdk, but there's libc++ stuff 
missing, namely:
wasi-sysroot/include/c++/v1/*
wasi-sysroot/lib/wasm32-wasi/libc++.a
wasi-sysroot/lib/wasm32-wasi/libc++abi.a

The Arch distro is dealing with that by having extra packages:
wasi-libc++ and wasi-libc++abi:

https://archlinux.org/packages/extra/any/wasi-libc++/
https://archlinux.org/packages/extra/any/wasi-libc++abi/

They use the llvm sources to build the c++ wasi package [3].

Could you help me out with that?



Would it be possible to re-use the existing libcxx package and
just build it twice, once for the host and once for wasm?  Kind
of like what some packages do for mingw?

-Tom


[1] https://github.com/WebAssembly/wasi-sdk
[2] https://koji.fedoraproject.org/koji/buildinfo?buildID=2288202
[3] 
https://gitlab.archlinux.org/archlinux/packaging/packages/wasi-libcplusplus/-/blob/main/PKGBUILD?ref_type=heads


--
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Adding/creating wasi-libc++ into the wasi-libc package

2023-11-30 Thread Jan Horak

Hi,
I'm trying to make the sandboxing using the wasi available for the 
Firefox and for that I need the wasi-sdk [1] in the build root.


Currently there's wasi-libc [2] available which is fine and it almost 
contains all the headers and libraries needed by the wasi-sdk, but 
there's libc++ stuff missing, namely:

wasi-sysroot/include/c++/v1/*
wasi-sysroot/lib/wasm32-wasi/libc++.a
wasi-sysroot/lib/wasm32-wasi/libc++abi.a

The Arch distro is dealing with that by having extra packages:
wasi-libc++ and wasi-libc++abi:

https://archlinux.org/packages/extra/any/wasi-libc++/
https://archlinux.org/packages/extra/any/wasi-libc++abi/

They use the llvm sources to build the c++ wasi package [3].

Could you help me out with that?

[1] https://github.com/WebAssembly/wasi-sdk
[2] https://koji.fedoraproject.org/koji/buildinfo?buildID=2288202
[3] 
https://gitlab.archlinux.org/archlinux/packaging/packages/wasi-libcplusplus/-/blob/main/PKGBUILD?ref_type=heads


--
Jan Horak
Senior Software Engineer
Red Hat
fedo
--
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue