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

LLVM compilation on Linux #4481

Open
pierricgimmig opened this issue Nov 24, 2022 · 4 comments
Open

LLVM compilation on Linux #4481

pierricgimmig opened this issue Nov 24, 2022 · 4 comments

Comments

@pierricgimmig
Copy link
Collaborator

Is LLVM supposed to always be built from source on Linux? On Ubuntu 22.04, I have llvm-dev and llvm-12-dev installed, yet the LLVM compilation starts when running bootstrap-orbit.sh clang12_relwithdebinfo. This is a major hindrance because of the disk size that is required to buildl LLVM, not to mention the time it takes to build on non-corporate grade machines.

@pierricgimmig
Copy link
Collaborator Author

#4309 indicates that this should be already fixed, but I'm seeing different results on my setup with the latest code.

@florian-kuebler
Copy link
Collaborator

With #4477 we went back to llvm as conan dependency (in the usual conan case).
Its unclear to me why this results in a build, but the change in conan to fix the LLVM build was merged just yesterday, so it might be just the case, that the packages are not yet deployed and conan falls back to building. @beckerhe knows more.

You might want to consider using our new system-dependency based build (e.g. clang12_relwithdebinfo_system_deps).

@pierricgimmig
Copy link
Collaborator Author

Ah I hadn't notice clang12_relwithdebinfo_system_deps, thanks for the info!

@florian-kuebler
Copy link
Collaborator

florian-kuebler commented Nov 24, 2022

Yeah, that one is pretty new and actually even works without conan:

mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release \
  -DCMAKE_CXX_FLAGS="-march=sandybridge -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer" \
  ..

cmake --build .

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

No branches or pull requests

2 participants