UnleashedRecomp icon indicating copy to clipboard operation
UnleashedRecomp copied to clipboard

Can´t compile on Ubuntu 24

Open viggen66 opened this issue 9 months ago • 3 comments

Validation

  • [ ] I have checked the Issues page to see if my problem has already been reported
  • [ ] I have confirmed that this bug does not occur in the original game running on original Xbox 360 hardware

If you have DLC installed, please specify which ones you have.

  • [ ] Apotos & Shamar Adventure Pack
  • [ ] Chun-nan Adventure Pack
  • [ ] Empire City & Adabat Adventure Pack
  • [ ] Holoska Adventure Pack
  • [ ] Mazuri Adventure Pack
  • [ ] Spagonia Adventure Pack

If you have mods enabled, please specify which ones you have.

Provide a list of your enabled mods in Hedge Mod Manager here. You will not receive support for issues caused by mods.

If you have codes enabled, please specify which ones you have.

Provide a list of your enabled codes in Hedge Mod Manager here.

Describe the Bug

A clear and concise description of what the bug is.

Steps to Reproduce

Steps to reproduce the bug:

  1. Go to '...'
  2. etc.

Expected Behavior

A clear and concise description of what you expected to happen.

Footage

Attach a screenshot or video of the bug. If possible, please also provide footage of the expected behaviour on original Xbox 360 hardware.

Specifications

Fill out the following details:

  • CPU: (e.g. Intel Core [...], AMD Ryzen [...], etc.)
  • GPU: (e.g. NVIDIA GeForce [...], Radeon HD [...], Intel HD [...], etc.)
  • GPU Driver: (e.g NVIDIA driver 545.XX, AMD driver 24.X.X, etc.)
  • OS: (e.g. Windows 10, Windows 11, Linux distro)
  • Version: (e.g. 1.0.0)

Additional Context

Provide any other context about the problem here.

viggen66 avatar Mar 04 '25 01:03 viggen66

I have followed instructions as per instructions and get this error message when compiling.

-- Running vcpkg install - done -- The CXX compiler identification is Clang 18.1.3 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - failed -- Check for working CXX compiler: /usr/bin/clang++ -- Check for working CXX compiler: /usr/bin/clang++ - broken CMake Error at /usr/share/cmake-3.30/Modules/CMakeTestCXXCompiler.cmake:73 (message): The C++ compiler

"/usr/bin/clang++"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: '/home/user/UnleashedRecomp/out/build/linux-release/CMakeFiles/CMakeScratch/TryCompile-jAfHQY'

Run Build Command(s): /usr/bin/ninja -v cmTC_bc29a
[1/2] /usr/bin/clang++   -fPIC  -std=gnu++20 -MD -MT CMakeFiles/cmTC_bc29a.dir/testCXXCompiler.cxx.o -MF CMakeFiles/cmTC_bc29a.dir/testCXXCompiler.cxx.o.d -o CMakeFiles/cmTC_bc29a.dir/testCXXCompiler.cxx.o -c /home/user/UnleashedRecomp/out/build/linux-release/CMakeFiles/CMakeScratch/TryCompile-jAfHQY/testCXXCompiler.cxx
[2/2] : && /usr/bin/clang++ -fPIC -fuse-ld=lld CMakeFiles/cmTC_bc29a.dir/testCXXCompiler.cxx.o -o cmTC_bc29a   && :
FAILED: cmTC_bc29a 
: && /usr/bin/clang++ -fPIC -fuse-ld=lld CMakeFiles/cmTC_bc29a.dir/testCXXCompiler.cxx.o -o cmTC_bc29a   && :
clang++: error: invalid linker name in argument '-fuse-ld=lld'
ninja: build stopped: subcommand failed.

CMake will not be able to correctly generate this project. Call Stack (most recent call first): thirdparty/msdf-atlas-gen/CMakeLists.txt:76 (project)

-- Configuring incomplete, errors occurred!

I have probably one missing dependency now finding which one.

OS Tuxedo OS (Ubuntu 24.04 based)

Thanks

viggen66 avatar Mar 04 '25 01:03 viggen66

Check if lld is installed.

ld.lld --version

DarioSamo avatar Mar 04 '25 01:03 DarioSamo

sigh wish there were any mold linker enjoyers like me...

hourai-branch avatar Mar 04 '25 08:03 hourai-branch

ld.lld --version

Thanks it was precisely that dependency missing, is now compiling thanks

viggen66 avatar Mar 04 '25 15:03 viggen66