riidefi / RiiStudio

Editor for various 3D model formats
https://riidefi.github.io/RiiStudio/
94 stars 16 forks source link

Fails to build on Linux Mint #67

Open computerfan0 opened 11 months ago

computerfan0 commented 11 months ago

This program fails to build on Linux Mint 21.2, with an unhelpful error message. I have installed rustc and cargo from apt.

The error is shown below:

CMake Error at build/_deps/corrosion-src/cmake/CorrosionGenerator.cmake:24 (execute_process):
  execute_process failed command indexes:

    1: "Child return code: 101"

Call Stack (most recent call first):
  build/_deps/corrosion-src/cmake/CorrosionGenerator.cmake:217 (_cargo_metadata)
  build/_deps/corrosion-src/cmake/Corrosion.cmake:918 (_generator_add_cargo_targets)
  CMakeLists.txt:157 (corrosion_import_crate)

I would appreciate a fix or workaround for this issue.

applecuckoo commented 10 months ago

I managed to get further down the line by using rust via rustup, but it still errors out for me - I'll file a separate issue for that.

toadragethe5th commented 4 months ago

Do you have any ideas what it is?

applecuckoo commented 4 months ago

Oh, hello! I've long since moved from Linux Mint to Ubuntu and when I try building again, I still get this error. It's worth noting that right above the error there's this: error: manifest path /home/user/repos/RiiStudio/source/llvm/Cargo.toml does not exist.

I looked back through the commit history and it seems that llvm was dropped as a dependency a few weeks back. I'll ping @riidefi since they'll know what to fix.

riidefi commented 4 months ago

With the above changes, I was able to build with GCC 14.1.0 on Ubuntu 22.04.4 LTS. Since I didn't configure stacktrace support when I built the compiler, I configured with cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-DRSL_STACKTRACE_UNSUPPORTED=1". A pre-built version may not need that flag.