Re: Problem with euc on Ubuntu Jammy under WSLg

new topic     » goto parent     » topic index » view thread      » older message » newer message
axtens_bruce said...

/usr/bin/ld: /usr/local/euphoria-4.1.0-Linux-x64/bin/eu.a(be_w.o): relocation R_X86_64_32 against symbol `screen_image' can not be used when making a PIE object; recompile with -fPIE 
/usr/bin/ld: failed to set dynamic section sizes: bad value 
collect2: error: ld returned 1 exit status 
Unable to link /mnt/c/TEMP/ack 
Status: 1 Command: gcc -o /mnt/c/TEMP/ack  init-.o ack.o main-.o   /usr/local/euphoria-4.1.0-Linux-x64/bin/eu.a -m64 -ldl -lm -lpthread 
How do I get it to link?

-Bruce

I think the translated makefile respects CCFLAGS, so set CCFLAGS=-fPIE and it should work.

I vaguely remember something like this, I thought we set -fPIE by default. Maybe we only do that when translating to a so (shared library object).

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu