[gtkada] Compile GtkAda
Adam Puleo
apuleo at cox.net
Sat Dec 1 20:33:44 CET 2018
I did some more digging on this.
When gprbuild generates the gtkada.lexch file it’s adding two lines:
-Wl,-Wl,-framework
-Wl,-Wl,CoreFoundation
The repeated -Wl is causing the problems. If I edit gtkada.lexch file and remove one of the duplicate -Wl’s gprlib then runs successfully.
-Adam
On Nov 26, 2018, at 12:06 AM, Jan de Kruyf <jan.de.kruyf at gmail.com> wrote:
Hi, I dont know MacOS but from what I see:
> ld: warning: directory not found for option '-L/Users/adampuleo/Documents/programs/gtkada//lib'
> ld: warning: directory not found for option '-L/Users/adampuleo/Documents/programs/gtkada//bin'
It is clear that ld has issues with finding 2 search paths.
perhaps there is a conflict between /users and /Users since it also says:
>gprlib: /users/adampuleo/opt/gnat/2018/bin/gcc execution error
The next error confuzzles me:
>ld: unknown option: -Wl
-Wl is the gcc switch to pass options to ld when gcc is used as the front end to ld, so ld should never see it.
It is almost as if ld is run directly without going through gcc.
So considering all this I think that maybe your PATH is not set right.
Try "echo $PATH" in the terminal where you compile and see where it points.
j.
On Mon, Nov 26, 2018 at 6:24 AM Adam Puleo <apuleo at cox.net <mailto:apuleo at cox.net>> wrote:
Hello,
I’m trying to compile GtkAda on macOS using Gnat 2018.
Configure (CC=/usr/bin/gcc ./configure --prefix=/usr/local) completed successfully.
Make fails with the following messages:
[Ada] pango-layout.adb
[Ada] gtk-tearoff_menu_item.adb
[Ada] glib-string.adb
[C] misc.c
[C] misc_generated.c
Build Libraries
[gprlib] gtkada.lexch
[archive] libgtkada.a
[index] libgtkada.a
====== Building static-pic libraries =====
/Users/adampuleo/opt/GNAT/2018/bin/gprbuild -j0 -m -p -XLIBRARY_TYPE=static-pic -Psrc/gtkada.gpr
====== Building relocatable libraries =====
/Users/adampuleo/opt/GNAT/2018/bin/gprbuild -j0 -m -p -XLIBRARY_TYPE=relocatable -Psrc/gtkada.gpr
Build Libraries
[gprlib] gtkada.lexch
[link library] libgtkada.dylib
ld: warning: directory not found for option '-L/Users/adampuleo/Documents/programs/gtkada//lib'
ld: warning: directory not found for option '-L/Users/adampuleo/Documents/programs/gtkada//bin'
ld: unknown option: -Wl
collect2: error: ld returned 1 exit status
gprlib: /users/adampuleo/opt/gnat/2018/bin/gcc execution error
gprbuild: could not build library for project gtkada
make: *** [Makefile:85: build_library_type/relocatable] Error 4
I’m unsure on how to proceed on troubleshooting this.
Any ideas?
Thanks,
-Adam
_______________________________________________
gtkada mailing list
gtkada at lists.adacore.com <mailto:gtkada at lists.adacore.com>
/no-more-mailman.html </no-more-mailman.html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/gtkada/attachments/20181201/9528ec92/attachment.html>
More information about the gtkada
mailing list