comp.lang.ada
 help / color / mirror / Atom feed
From: "Henrik Härkönen" <heharkon@gmail.com>
Subject: Help with compiling GtkAda on Ubuntu 19.04
Date: Tue, 18 Jun 2019 11:16:34 -0700 (PDT)
Date: 2019-06-18T11:16:34-07:00	[thread overview]
Message-ID: <fdb90e93-dda0-4243-8267-00aa8164ee91@googlegroups.com> (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

             reply	other threads:[~2019-06-18 18:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-18 18:16 Henrik Härkönen [this message]
2019-06-18 18:58 ` Help with compiling GtkAda on Ubuntu 19.04 Henrik Härkönen
replies disabled

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