You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an amazing library, yet most people fail to build it. Any plans to fix the build script?
In my case, I'm getting the following (after following the compilation guide):
slxdy@slxdy-mint:~/repos/Dobby$ python3 scripts/platform_builder.py --platform=linux --arch=all --cmake_dir=$HOME/opt/cmake-3.25.2 --llvm_dir=$HOME/opt/llvm-15.0.6
2024-07-07 22:27:07,544 - INFO - project dir: /home/slxdy/repos/Dobby
2024-07-07 22:27:07,544 - INFO - build platform: linux, archs: ['x86', 'x86_64', 'arm', 'arm64']
2024-07-07 22:27:07,544 - INFO - build platform: linux, arch: x86, cmake_build_dir: /home/slxdy/repos/Dobby/build/cmake-build-linux-x86, output_dir: /home/slxdy/repos/Dobby/build/linux/x86
/home/slxdy/opt/cmake-3.25.2/bin/cmake -S /home/slxdy/repos/Dobby -B /home/slxdy/repos/Dobby/build/cmake-build-linux-x86 -DCMAKE_C_COMPILER=/home/slxdy/opt/llvm-15.0.6/bin/clang -DCMAKE_CXX_COMPILER=/home/slxdy/opt/llvm-15.0.6/bin/clang++ -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=x86
-- The CXX compiler identification is Clang 15.0.6
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: /home/slxdy/opt/llvm-15.0.6/bin/clang++
-- Check for working CXX compiler: /home/slxdy/opt/llvm-15.0.6/bin/clang++ - broken
CMake Error at /home/slxdy/opt/cmake-3.25.2/share/cmake-3.25/Modules/CMakeTestCXXCompiler.cmake:63 (message):
The C++ compiler
"/home/slxdy/opt/llvm-15.0.6/bin/clang++"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/slxdy/repos/Dobby/build/cmake-build-linux-x86/CMakeFiles/CMakeScratch/TryCompile-T2ndqT
Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_d13b8/fast && /usr/bin/gmake -f CMakeFiles/cmTC_d13b8.dir/build.make CMakeFiles/cmTC_d13b8.dir/build
gmake[1]: Entering directory '/home/slxdy/repos/Dobby/build/cmake-build-linux-x86/CMakeFiles/CMakeScratch/TryCompile-T2ndqT'
Building CXX object CMakeFiles/cmTC_d13b8.dir/testCXXCompiler.cxx.o
/home/slxdy/opt/llvm-15.0.6/bin/clang++ -MD -MT CMakeFiles/cmTC_d13b8.dir/testCXXCompiler.cxx.o -MF CMakeFiles/cmTC_d13b8.dir/testCXXCompiler.cxx.o.d -o CMakeFiles/cmTC_d13b8.dir/testCXXCompiler.cxx.o -c /home/slxdy/repos/Dobby/build/cmake-build-linux-x86/CMakeFiles/CMakeScratch/TryCompile-T2ndqT/testCXXCompiler.cxx
Linking CXX executable cmTC_d13b8
/home/slxdy/opt/cmake-3.25.2/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d13b8.dir/link.txt --verbose=1
/home/slxdy/opt/llvm-15.0.6/bin/clang++ CMakeFiles/cmTC_d13b8.dir/testCXXCompiler.cxx.o -o cmTC_d13b8
/usr/bin/ld: cannot find -lstdc++: No such file or directory
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [CMakeFiles/cmTC_d13b8.dir/build.make:100: cmTC_d13b8] Error 1
gmake[1]: Leaving directory '/home/slxdy/repos/Dobby/build/cmake-build-linux-x86/CMakeFiles/CMakeScratch/TryCompile-T2ndqT'
gmake: *** [Makefile:127: cmTC_d13b8/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
-- Configuring incomplete, errors occurred!
See also "/home/slxdy/repos/Dobby/build/cmake-build-linux-x86/CMakeFiles/CMakeOutput.log".
See also "/home/slxdy/repos/Dobby/build/cmake-build-linux-x86/CMakeFiles/CMakeError.log".
gmake: Makefile: No such file or directory
gmake: *** No rule to make target 'Makefile'. Stop.
gmake: Makefile: No such file or directory
gmake: *** No rule to make target 'Makefile'. Stop.
Traceback (most recent call last):
File "/home/slxdy/repos/Dobby/scripts/platform_builder.py", line 243, in <module>
builder.build()
File "/home/slxdy/repos/Dobby/scripts/platform_builder.py", line 75, in build
subprocess.run("cmake --build . --clean-first --target dobby --target dobby_static -- -j8", cwd=self.cmake_build_dir, shell=True, check=True)
File "/usr/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'cmake --build . --clean-first --target dobby --target dobby_static -- -j8' returned non-zero exit status 2.
The text was updated successfully, but these errors were encountered:
This is an amazing library, yet most people fail to build it. Any plans to fix the build script?
In my case, I'm getting the following (after following the compilation guide):
The text was updated successfully, but these errors were encountered: