comp.lang.ada
 help / color / mirror / Atom feed
* Help with compiling GtkAda on Ubuntu 19.04
@ 2019-06-18 18:16 Henrik Härkönen
  2019-06-18 18:58 ` Henrik Härkönen
  0 siblings, 1 reply; 2+ messages in thread
From: Henrik Härkönen @ 2019-06-18 18:16 UTC (permalink / raw)


Hi!

I've been away for a while, too busy with other projects, but now picking up again learning Ada... So I decided to go with GtkAda project to actually make something.

Pulled latest stuff from github, "configure --with-GL=no" (as the OpenGL compilation failed) and then "make", and at some point I get this:

---8<---

===== Building tools =====
/usr/bin/gprbuild  -j0 -m -p  -XLIBRARY_TYPE=static -Psrc/tools/tools.gpr
Compile
   [Ada]          gdialog.adb
Bind
   [gprbind]      gdialog.bexch
   [Ada]          gdialog.ali
Link
   [link]         gdialog.adb
/usr/bin/ld: /home/henrik/compile/gtkada/src/lib/gtkada/static/libgtkada.a(misc.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status
gprbuild: link of gdialog.adb failed
make: *** [Makefile:81: tools] Error 4

--->8---

I'm not sure how to tell the compiler "-fPIC"? Or at some page the advice was to compile with "no-pie", but I think gprbuild doesn't support either flag as per command line option?

Any advice for the novice here? :)


-Henrik

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Help with compiling GtkAda on Ubuntu 19.04
  2019-06-18 18:16 Help with compiling GtkAda on Ubuntu 19.04 Henrik Härkönen
@ 2019-06-18 18:58 ` Henrik Härkönen
  0 siblings, 0 replies; 2+ messages in thread
From: Henrik Härkönen @ 2019-06-18 18:58 UTC (permalink / raw)


Ah, "--disable-static" in configure did the job. I hope it works without that then. :) There's still "relocatable" and "static-pic" library types, so... 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-06-18 18:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-18 18:16 Help with compiling GtkAda on Ubuntu 19.04 Henrik Härkönen
2019-06-18 18:58 ` Henrik Härkönen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox