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

Having trouble building from source... #50

Closed
rod-chapman opened this issue Nov 12, 2024 · 2 comments
Closed

Having trouble building from source... #50

rod-chapman opened this issue Nov 12, 2024 · 2 comments

Comments

@rod-chapman
Copy link

I am having trouble finding a consistent set of sources to build from.
I am working on an x86_64 machine running Ubutu 24.04LTS.

I build LLVM 16.0.6 from scratch.

BUT... can anyone post here the exact Git commits that are needed for the 3 repo's
gcc
llvm
gnat-llvm
please?

Also, exactly which set of patches do I need to apply before building LLVM?
Thanks,
Rod

@nerdtype
Copy link

nerdtype commented Nov 13, 2024

Hi Rod,

I can't really help you with your specific questions but I thought I would share the notes I've gathered in my (failed) attempts to build GNAT-LLVM.

Notes:

I am using a debian based Linux derivative and followed the "Building" procedure in the GNAT LLVM readme at: https://github.com/AdaCore/gnat-llvm

Before building llvm, I applied the 'LLVMCreateTargetMachineWithABI.diff' patch.
To build llvm 16.0.x , I needed to install llvm and clang (through system packages) before running "make llvm". After building llvm, I uninstalled the llvm and clang packages and setup my PATH to point to the llvm 16.0.x binaries.

From this point I should just have to run "make" to build GNAT LLVM, but this command fails. See my post here for details: #48

The comment from Arnaud suggests that there is potentially a mismatch between the GNAT LLVM sources and the GCC sources. I checked out branch 25.1 (gnat-llvm) and master (gcc) and wrote a script to rebuild the gnat-llvm project for each gcc commit (starting from master and going back in time one commit per iteration) and stop when the build is successful, but I have not been able to find a gcc commit that builds with gnat-llvm 25.1 and I've built the first 1,000 commits from master.

N

@ArnaudCharlet
Copy link
Member

Rod, see Issue #49 which gives answers to your questions

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

3 participants