<div dir="ltr">Run "scons -c" to delete the old object files. Since they were compiled without -fPIC, which is now the default in debian 9, they can't be linked into a PIE executable.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 19 December 2017 at 14:05, James Paige <span dir="ltr"><<a href="mailto:Bob@hamsterrepublic.com" target="_blank">Bob@hamsterrepublic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>So I made a copy of the 64 bit Linux VM, and upgraded it from Debian 8 to Debian 9.<br><br></div>hspeak compiles fine now as a 64 bit binary, but I can no longer compile ohrrpgce-game and ohrrpgce-custom<br><br><pre>when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/bin/../lib/<wbr>freebasic/linux-x86_64/<wbr>libfbmt.a(io_print_wstr.o): relocation R_X86_64_32 against undefined symbol `__fb_ctx' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/bin/../lib/<wbr>freebasic/linux-x86_64/<wbr>libfbmt.a(io_printvoid_wstr.o)<wbr>: relocation R_X86_64_32 against `.rodata.str4.4' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/bin/../lib/<wbr>freebasic/linux-x86_64/<wbr>libfbmt.a(sys_getexename.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/bin/../lib/<wbr>freebasic/linux-x86_64/<wbr>libfbmt.a(file_print_wstr.o): relocation R_X86_64_32 against undefined symbol `__fb_ctx' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/bin/../lib/<wbr>freebasic/linux-x86_64/<wbr>libfbmt.a(io_printpad_wstr.o): relocation R_X86_64_32 against `.rodata.str4.4' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/bin/../lib/<wbr>freebasic/linux-x86_64/<wbr>libfbmt.a(dev_scrn_write_wstr.<wbr>o): relocation R_X86_64_32S against symbol `fb_DevScrnWriteWstr' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/bin/../lib/<wbr>freebasic/linux-x86_64/<wbr>libfbmt.a(io_printbuff_wstr.o)<wbr>: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/bin/../lib/<wbr>freebasic/linux-x86_64/<wbr>libfbmt.a(array_erase.o): relocation R_X86_64_PC32 against symbol `free@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
scons: *** [ohrrpgce-game] Error 1
scons: building terminated because of errors.<br><br></pre></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 17, 2017 at 10:21 AM, James Paige <span dir="ltr"><<a href="mailto:Bob@hamsterrepublic.com" target="_blank">Bob@hamsterrepublic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Today I will try upgrading Debian on a copy of the 64-bit VM,<br></div> Hopefully that will resolve it.<br><br>---<br></div>James<br><br></div><div class="m_6920771888056140717HOEnZb"><div class="m_6920771888056140717h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 16, 2017 at 4:00 PM, Ralph Versteegen <span dir="ltr"><<a href="mailto:teeemcee@gmail.com" target="_blank">teeemcee@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>-no-pie is actually passed by SConscript.  I can't find any mention in my emails about a -no-pie problem on debian. The problem we had was that -no-pie was supported (nor necessary) for clang on OSX. <br></div><br></div><div>The -no-pie flag was added in r9542:<br>"""<br>scons: Fix hspeak builds on Arch Linux and others where gcc defaults to <span class="m_6920771888056140717m_5936428666693321115m_894161113515073811m_-3531646322024788104gmail-il">PIE</span><br>
<br>
The Euphoria 4.1 builds we recommend (and which are also used by the Arch<br>
opeeuphoria package on AUR) haven't been built for <span class="m_6920771888056140717m_5936428666693321115m_894161113515073811m_-3531646322024788104gmail-il">PIE<br>"""<br></span></div><div><span class="m_6920771888056140717m_5936428666693321115m_894161113515073811m_-3531646322024788104gmail-il">Apparently this flag is also necessary on (recent?) Debian and Ubuntu, as they also default to PIE.<br></span></div><div><span class="m_6920771888056140717m_5936428666693321115m_894161113515073811m_-3531646322024788104gmail-il"><br></span></div><div><span class="m_6920771888056140717m_5936428666693321115m_894161113515073811m_-3531646322024788104gmail-il">It's not clear, but from searching around it appears that this flag used to be called -nopie until gcc 6 switched to -no-pie. So try that. I have the man page for gcc 4.8 here, and it doesn't say either way.<br>Also, there is -fno-pie which is a compiler flag while -no-pie is a linker flag (also understood by gcc). So you could also try that and see whether it works. (I assume that -no-pie passed to gcc implies -fno-pie)<br></span></div><div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_6920771888056140717m_5936428666693321115h5">On 16 December 2017 at 12:32, James Paige <span dir="ltr"><<a href="mailto:Bob@hamsterrepublic.com" target="_blank">Bob@hamsterrepublic.com</a>></span> wrote:<br></div></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div><div class="m_6920771888056140717m_5936428666693321115h5"><div dir="ltr"><div>So now I remember why I have the 32-bit version of Euphoria installed on the Linux nightly build machine.<br><br></div>The hspeak build fails because gcc doesn't understand --no-pie<br><div><br><div><br>gcc -o /home/james/src/ohr/wip/hspeak init-.o hspeak.o main-.o hspeak_0.o hspeak_1.o hspeak_2.o hspeak_3.o hspeak_4.o hsspiffy.o file.o sort.o get.o graphics.o machine.o math.o types.o unicode.o ucstypes.o io_with_unicode.o 0achine.o memory.o dll.o  /usr/share/euphoria/bin/eu.a -m64 -ldl -lm -lpthread -no-pie<br>gcc: error: unrecognized command line option '-no-pie'<br>hspeak.mak:97: recipe for target '/home/james/src/ohr/wip/hspea<wbr>k' failed<br>make: *** [/home/james/src/ohr/wip/hspea<wbr>k] Error 1<br>make: Leaving directory '/home/james/src/ohr/wip/build<wbr>/hspeak'<br>scons: done building targets.<br>james@ixrat:~/src/ohr/wip$ euc -v<br>Euphoria to C Translator v4.1.0 development<br>   64-bit Linux, Using System Memory<br>   Revision Date: 2015-02-02 14:18:53, Id: 5861:57179171dbed<br>james@ixrat:~/src/ohr/wip$ gcc --version<br>gcc (Debian 4.9.2-10) 4.9.2<br>Copyright (C) 2014 Free Software Foundation, Inc.<br>This is free software; see the source for copying conditions.  There is NO<br>warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br><br><br></div><div>I am wondering if the easiest way to resolve this might be to upgrade the virtual machine from Debian 8.x to 9.x and hopefully get a version of gcc that does not have this problem.<br><br></div><div>For now, I am leaving the 64-bit version of euphoria installed on the vm, so the 64-bit nightly builds are going to remain broken until I have figured out a solution.<br><br>---<br></div><div>James<br></div></div></div>
<br></div></div>______________________________<wbr>_________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.o<wbr>rg</a><br>
<a rel="noreferrer" href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" target="_blank">http://lists.motherhamster.org<wbr>/listinfo.cgi/ohrrpgce-motherh<wbr>amster.org</a><br>
<br></blockquote></div><br></div></div></div>
<br>______________________________<wbr>_________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.o<wbr>rg</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org<wbr>/listinfo.cgi/ohrrpgce-motherh<wbr>amster.org</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org">ohrrpgce@lists.motherhamster.<wbr>org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.<wbr>org/listinfo.cgi/ohrrpgce-<wbr>motherhamster.org</a><br>
<br></blockquote></div><br></div>