Closed simonjwright closed 4 years ago
Right, and the preferred build mechanism is via gprbuild --target=llvm. Can you check whether gprbuild --target=llvm works out of the box?
On 9 Oct 2019, at 17:07, Arnaud Charlet notifications@github.com wrote:
Right, and the preferred build mechanism is via gprbuild --target=llvm. Can you check whether gprbuild --target=llvm works out of the box?
Yes.
$ gprbuild --target=llvm problem.gpr Compile [Ada] problem.adb Bind [gprbind] problem.bexch [Ada] problem.ali Link [link] problem.adb
OK, things should work now also with gnatmake after my change, can you confirm?
Getting
duplicate symbol ___gnat_objlist_file_supported in:
libtools.a(link.o)
libtools.a(targext.o)
ld: 1 duplicate symbol for architecture x86_64
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
Ah yes, for some reason this didn't cause troubles on linux. Fix on its way.
better now?
Yes! (and llvm-gnatmake worked without any extra flags.)
Good!
Running a test build on macOS mojave failed as follows (
problem.adb
is a file I had lying around, nothing to do with this issue):This is a workround: