From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a37:e40b:: with SMTP id y11mr19877619qkf.88.1560881795438; Tue, 18 Jun 2019 11:16:35 -0700 (PDT) X-Received: by 2002:a9d:6c13:: with SMTP id f19mr317465otq.76.1560881794951; Tue, 18 Jun 2019 11:16:34 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!m24no1338207qtm.0!news-out.google.com!4ni175qtw.1!nntp.google.com!m24no1338196qtm.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 18 Jun 2019 11:16:34 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2001:14bb:40:8f1f:b400:5a76:f817:1fc8; posting-account=9KbC2woAAAA0kK2IAUr3-FkzJBtOzrhm NNTP-Posting-Host: 2001:14bb:40:8f1f:b400:5a76:f817:1fc8 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Help with compiling GtkAda on Ubuntu 19.04 From: =?UTF-8?B?SGVucmlrIEjDpHJrw7ZuZW4=?= Injection-Date: Tue, 18 Jun 2019 18:16:35 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:56676 Date: 2019-06-18T11:16:34-07:00 List-Id: 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