Проблемы с копированием с помощью cmake в системе на базе Ubuntu (tuxedOS) после инструкций файла докеров [дубликат]Linux

Ответить
Anonymous
 Проблемы с копированием с помощью cmake в системе на базе Ubuntu (tuxedOS) после инструкций файла докеров [дубликат]

Сообщение Anonymous »


I am trying to install this application (https://github.com/cgg-bern/AlgoHex/tre ... out-gurobi) under tuxedOS (https://www.tuxedocomputers.com/en/TUXEDO-OS_1.tuxedo) which is based on Ubuntu.

The github has a dockerFile (https://github.com/cgg-bern/AlgoHex/blo ... Dockerfile), which is based on a Debian system and I am trying to 'imitate' this instructions to install it directly in my system but I am getting some errors while compiling it.

Here is my current code (up to the point where it tries to compile the application and fails using cmake):

Nproc=8 installationPath=$HOME/Programs cd $installationPath rm -fr AlgoHex git clone --single-branch --branch dev/dockerfile-without-gurobi https://github.com/cgg-bern/AlgoHex.git sudo apt-get update sudo apt-get install -y --no-install-recommends binutils build-essential ca-certificates clang cmake curl git libc-dev liblapack-dev libopenblas64-serial-dev libopenmpi-dev libtool locales ninja-build time tzdata wget pkg-config libgmp-dev libomp-dev gfortran clang mkdir -p /usr/src/coin-or mkdir -p /opt/coin-or cd /usr/src/coin-or sudo wget https://raw.githubusercontent.com/coin- ... r/coinbrew sudo chmod +x coinbrew cd /usr/src/coin-or sudo ./coinbrew fetch https://github.com/coin-or-tools/ThirdParty-Mumps@3.0.5 sudo ./coinbrew fetch Ipopt@3.14.13 --skip-update sudo ./coinbrew fetch Bonmin@master --skip-update sudo ./coinbrew build Ipopt@3.14.13 --verbosity 2 --skip-update --prefix=/opt/coin-or --parallel-jobs $Nproc --tests none sudo ./coinbrew build Bonmin@master --verbosity 2 --skip-update --prefix=/opt/coin-or --parallel-jobs $Nproc --tests none sudo ln -s /opt/coin-or/include/coin-or /opt/coin-or/include/coin cd $installationPath/AlgoHex mkdir build cd build export IPOPT_HOME=/opt/coin-or export CBC_DIR=/opt/coin-or IPOPT_HOME=/opt/coin-or CBC_DIR=/opt/coin-or cmake -G Ninja -D CMAKE_BUILD_TYPE=Release -D CMAKE_CXX_COMPILER=clang++ -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_FLAGS="-march=native" -D BONMIN_ROOT_DIR=/opt/coin-or .. the error I am getting is the following:

-- The C compiler identification is Clang 14.0.0 -- The CXX compiler identification is Clang 14.0.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- 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.28/Modules/CMakeTestCXXCompiler.cmake:60 (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/franco/Programs/AlgoHex/build/CMakeFiles/CMakeScratch/TryCompile-acvEQM' Run Build Command(s): /usr/bin/ninja -v cmTC_71b52 [1/2] /usr/bin/clang++ -march=native -MD -MT CMakeFiles/cmTC_71b52.dir/testCXXCompiler.cxx.o -MF CMakeFiles/cmTC_71b52.dir/testCXXCompiler.cxx.o.d -o CMakeFiles/cmTC_71b52.dir/testCXXCompiler.cxx.o -c /home/franco/Programs/AlgoHex/build/CMakeFiles/CMakeScratch/TryCompile-acvEQM/testCXXCompiler.cxx [2/2] : && /usr/bin/clang++ -march=native CMakeFiles/cmTC_71b52.dir/testCXXCompiler.cxx.o -o cmTC_71b52 && : FAILED: cmTC_71b52 : && /usr/bin/clang++ -march=native CMakeFiles/cmTC_71b52.dir/testCXXCompiler.cxx.o -o cmTC_71b52 && : /usr/bin/ld: cannot find -lstdc++: No such file or directory clang: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:18 (project) -- Configuring incomplete, errors occurred! if I run:

whereis clang++ I am getting
clang++: /usr/bin/clang++

Источник: https://stackoverflow.com/questions/780 ... ng-instruc
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Linux»