ScanMountGoat / ultimate_tex

Texture conversion utilities for Smash Ultimate
MIT License
11 stars 0 forks source link

Investigate CI build failures on Linux #16

Open ScanMountGoat opened 1 year ago

ScanMountGoat commented 1 year ago

This is caused by a linker error with ld with the intel_tex_2 crate.

/deps/libintel_tex_2-0274f53995cad98c.rlib(ispc_texcomp_astc.o): undefined reference to symbol '_ZSt20__throw_length_errorPKc@@GLIBCXX_3.4'
          /usr/bin/ld: /lib/x86_64-linux-gnu/libstdc++.so.6: error adding symbols: DSO missing from command line
          collect2: error: ld returned 1 exit status
ScanMountGoat commented 9 months ago

This is also happening locally when building in WSL. Building the CLI is fine. It's just ultimate_tex_tauri that has issues. This may be able to be resolved by building the kernels from source by patching intel_tex_2 to use the ispc feature. Another option is to try older ubuntu versions for the github runner.

ScanMountGoat commented 1 month ago

Building the dioxus branch gives the error rust-lld: error: undefined symbol: __gxx_personality_v0 from intel_tex_2, which is apparently related to C++ exception handling. This can be fixed locally by linking libstdc++ with cargo rustc -p ultimate_tex_app -- -C link-args=-lstdc++.