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 build / docs for setting up for build (on Ubuntu 24) #38

Closed
mattgodbolt opened this issue Feb 25, 2024 · 10 comments · Fixed by #39
Closed

Unable to build / docs for setting up for build (on Ubuntu 24) #38

mattgodbolt opened this issue Feb 25, 2024 · 10 comments · Fixed by #39

Comments

@mattgodbolt
Copy link
Member

Are there some instructions for setting up a build? Would be cool to debug this. I tried the setup.sh (even though it goes against my personal dislike of sudo installing things...) but that failed too.

I tried with a manual cmake setup too and that failed with:

$ cmake ..
-- Conan: checking conan executable
-- Conan: Found program /home/matthew/.ozy/bin/conan
CMake Error at build/conan.cmake:806 (message):
  Conan --version failed='1'
Call Stack (most recent call first):
  CMakeLists.txt:23 (conan_check)

Is there perhaps a version of particualr conan I should use?

@mattgodbolt
Copy link
Member Author

Maybe #36 is meant to fix this?

@mattgodbolt
Copy link
Member Author

I installed conan 2.1.0; it doesn't work with the setup.sh:

bollo:~/d/c/a/build (main|✔) $ conan profile update settings.compiler.libcxx=libstdc++11 default
usage: conan profile [-h] [-v [V]] [-cc CORE_CONF] {detect,list,path,show} ...
conan profile: error: argument subcommand: invalid choice: 'update' (choose from 'detect', 'list', 'path', 'show')

but it got further...

...

======== Finalizing install (deploy, generators) ========
conanfile.txt: Writing generators to /home/matthew/dev/ce/asm-parser/build
ERROR: Invalid generator 'cmake'. Available types: CMakeToolchain, CMakeDeps, MesonToolchain, MSBuildDeps, MSBuildToolchain, NMakeToolchain, NMakeDeps, VCVars, QbsProfile, VirtualRunEnv, VirtualBuildEnv, AutotoolsDeps, AutotoolsToolchain, PkgConfigDeps, BazelDeps, BazelToolchain, IntelCC, XcodeDeps, XcodeToolchain, PremakeDeps, MakeDeps, SConsDeps
CMake Error at build/conan.cmake:522 (message):
  Conan install failed='1'
Call Stack (most recent call first):
  build/conan.cmake:759 (old_conan_cmake_install)
  CMakeLists.txt:25 (conan_cmake_run)


-- Configuring incomplete, errors occurred!

but still failed.

@mattgodbolt
Copy link
Member Author

I found the change that hardcodes the build to conan 1.59.0 and am trying that...

@partouf
Copy link
Member

partouf commented Feb 25, 2024

python3 -m pip install conan==1.59

probably need to move/backup your cachedir (~/.conan) before you do that

@mattgodbolt
Copy link
Member Author

Now I get:

ERROR: Invalid setting '13' is not a valid 'settings.compiler.version' value.
Possible values are ['4.1', '4.4', '4.5', '4.6', '4.7', '4.8', '4.9', '5', '5.1', '5.2', '5.3', '5.4', '5.5', '6', '6.1', '6.2', '6.3', '6.4', '6.5', '7', '7.1', '7.2', '7.3', '7.4', '7.5', '8', '8.1', '8.2', '8.3', '8.4', '8.5', '9', '9.1', '9.2', '9.3', '9.4', '9.5', '10', '10.1', '10.2', '10.3', '10.4', '11', '11.1', '11.2', '11.3', '12', '12.1', '12.2']

@mattgodbolt
Copy link
Member Author

I deleted my cache dir and made no difference. I'll try an older GCC now

@partouf
Copy link
Member

partouf commented Feb 25, 2024

~/.conan/settings.yml controls the versions you can use, you can just expand that

@mattgodbolt
Copy link
Member Author

I hate all the editing of global things... but installing gcc 12.1 and pointing at conan 1.59.0 and the gcc 12.2 I confirm lets me cmake :D and now I'm trying to build ... and it's taking a looooooooooooong while... so hopefully it's working...

@mattgodbolt
Copy link
Member Author

a debug build completed! yay! took 1.9m :)

@partouf
Copy link
Member

partouf commented Feb 25, 2024

the long build is probably because of ctre regexes, but if you build incrementally after its built once, it should be much faster

@mattgodbolt mattgodbolt linked a pull request Feb 26, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants