Re: Packaging a cross-compilation environment (wasi-libc)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 16, 2022 at 03:12:55AM -0700, Jan Staněk wrote:
> Hi list,
> in order to be able to compile WASM natively on Fedora,
> I'm trying to package wasi-libc[1] to provide the Web Assembly System
> Interface.
> 
> [1]: https://github.com/WebAssembly/wasi-libc
> 
> My trouble is that this is in essence a cross-compilation environment,
> and I have zero experience in trying to package these.
> Also, I did not have much luck in trying to find any related
> documentation.
> 
> Some issues I have run into so far:
> 
> - This is a libc implementation, which would probably conflict with the
>   glibc package by default. Looking at musl, the solution seems to be to
>   install into `/usr/{target}` prefix (i.e.  `/usr/wasm32-wasi/include`).
>   Not really sure how this works, any pointers appreciated.
> 
> - Clang seems to have issue with `-fstack-clash-protection` flag for the
>   `wasm32-wasi` target. What's the proper way to adjust these?
> 
> Any additional tips on cross-compilation support in Fedora would also be
> appreciated :)

You might want to look at how mingw-* is packaged.

https://src.fedoraproject.org/rpms/mingw-filesystem
https://src.fedoraproject.org/rpms/mingw-binutils
https://src.fedoraproject.org/rpms/mingw-crt
https://src.fedoraproject.org/rpms/mingw-gcc
https://src.fedoraproject.org/rpms/mingw-headers
(etc)

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux