trunk-rs / trunk

Build, bundle & ship your Rust WASM application to the web.

Home Page:https://trunkrs.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to build the latest (0.19.2) version

sanpii opened this issue · comments

After a long time and a heavy memory load, the compilation fails.

$ rustc --version
rustc 1.77.2 (25ef9e3d8 2024-04-09)

fail.log

Seems to work:

   Compiling trunk v0.19.2 (/home/jreimann/git/trunk)
    Finished dev [unoptimized + debuginfo] target(s) in 1m 01s
➜  trunk git:(release/0.19.x) rustc --version
rustc 1.77.2 (25ef9e3d8 2024-04-09)

Also in the CI: https://github.com/trunk-rs/trunk/actions/runs/8649518518/job/23715941133

Strange, the problem occurs only when I try to build the archlinux package, via makepkg. It’s work fine with git sources or the release archive.

https://aur.archlinux.org/packages/trunk#comment-955787

Had to add options=(!lto) to successfully link trunk due to briansmith/ring#1444, having Rust LTO enabled in my ~/.cargo/config.toml, and (Arch's default) GCC LTO enabled in /etc/makepkg.conf.

@sanpii Not sure that helps, but you can build trunk also for openssl using the native-tls feature. Just ensure that you also disable default features (--no-default-features).

@ctron is a better idea to use openssl for the packaged version?

Whatever, the compilation still fails with native-tls and lto enabled.

@ctron is a better idea to use openssl for the packaged version?

Fedora seems to prefer openssl over ring. Going with system defaults for distributions seems to make sense. Maybe that's the same for other distributions (like arch) too?

Whatever, the compilation still fails with native-tls and lto enabled.

Not sure what the underlying issue is. Was worth a try I guess.