-
Notifications
You must be signed in to change notification settings - Fork 18
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
msys2/mingw link failure #5
Comments
Can you try to apply the following patch:
and do a "make gnatlib" and try again? |
That did not work, I did notice however that gnatllvm-blocks.adb |
I made the following change in my repo and llvm-gnatmake now links/builds fine for a simple app. Thanks Alex
@@ -1747,7 +1747,7 @@ package body GNATLLVM.Blocks is
|
Ah yes indeed. We'll need to find a proper way to make this change work for all targets, but your patch will do the right thing on Windows. |
Now that I have a working build environment, I will try and do some more testing in my spare time Thanks Alex |
Hi AdaCore
The Msys2 project have just released LLVM 9.0.0 and I have rebuilt gnat-LLVM with my local
patches. So on to the next step to build a simple Ada program !
I get the below error with building a very simple "hello world" application
which seems to indicate issues with the Ada runtime (ie libgnat/libgnarl) ???. Under
msys2/mingw.
I seem to recall that the gnat_personality_v0 is the default exception handler
under Linux, but Msyd2/Mingw uses gnat_personality_seh, which I believe is set by
pre-processor directive SEH . I am not sure how exactly this should be set in the makefile ?
Any advice would be appreciated !
Thanks Alex
$ ./llvm-gnatmake.exe Hello.adb
llvm-gcc -c hello.adb
llvm-gnatbind -x hello.ali
llvm-gnatlink hello.ali
C:\msys64\mingw64\bin\ld: C:\msys64\home\alexg\Software\gnat-llvm\llvm-interface/lib/rts-native/adalib\libgnat.a(a-except.o):a-except.adb:(.xdata+0x128): undefined reference to __gnat_personality_v0' C:\msys64\mingw64\bin\ld: C:\msys64\home\alexg\Software\gnat-llvm\llvm-interface/lib/rts-native/adalib\libgnat.a(a-except.o):a-except.adb:(.xdata+0x240): undefined reference to __gnat_personality_v0'
C:\msys64\mingw64\bin\ld: C:\msys64\home\alexg\Software\gnat-llvm\llvm-interface/lib/rts-native/adalib\libgnat.a(a-except.o):a-except.adb:(.xdata+0x420): undefined reference to __gnat_personality_v0' C:\msys64\mingw64\bin\ld: C:\msys64\home\alexg\Software\gnat-llvm\llvm-interface/lib/rts-native/adalib\libgnat.a(a-except.o):a-except.adb:(.xdata+0x45c): undefined reference to __gnat_personality_v0'
C:\msys64\mingw64\bin\ld: C:\msys64\home\alexg\Software\gnat-llvm\llvm-interface/lib/rts-native/adalib\libgnat.a(a-except.o):a-except.adb:(.xdata+0x498): undefined reference to __gnat_personality_v0' C:\msys64\mingw64\bin\ld: C:\msys64\home\alexg\Software\gnat-llvm\llvm-interface/lib/rts-native/adalib\libgnat.a(a-finali.o):a-finali.adb:(.xdata+0x8): more undefined references to __gnat_personality_v0' follow
clang: error: linker command failed with exit code 1 (use -v to see invocation)
llvm-gnatlink: error when calling C:\msys64\home\alexg\Software\gnat-llvm\llvm-interface\bin\llvm-gcc.exe
llvm-gnatmake: *** link failed.
The text was updated successfully, but these errors were encountered: