You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered: