Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile on Ubuntu 22.04 #2070

Closed
grepwood opened this issue Apr 22, 2024 · 2 comments
Closed

Unable to compile on Ubuntu 22.04 #2070

grepwood opened this issue Apr 22, 2024 · 2 comments

Comments

@grepwood
Copy link

I have Conan 1.60.2, GCC 12, CMake 3.25.1, Python 3.10, and I run this:

conan install . --build=missing --update
cmake --preset release

Except for having to hack my way around #2068, everything is hunky dory up to this point. But when I run

cmake --build --preset release

All hell breaks loose as evidenced in the attached log.
curaengine-5.7.0-build.log

@jellespijker
Copy link
Member

try updating gnu-gcc to version 13 or higher

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt install g++-13 gcc-13 -y
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 13
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 13

run conan profile detection again such that it uses the gcc-13

conan profile new default --detect --force

I will update the conanfiles such that the will fail with gcc-12 or lower

@grepwood
Copy link
Author

I figured out how to build it with GCC 12:

CONAN_CONFIG_VERSION='d79fe6fe1878f09b583e04b873544cec65cbac99' && conan config install https://github.com/Ultimaker/conan-config/archive/${CONAN_CONFIG_VERSION}.zip
conan profile new default --detect --force
conan profile update settings.compiler.libcxx=libstdc++11 default
conan profile update settings.compiler.cppstd=gnu20 default

The last line is most important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants