Re: Problem with euc on Ubuntu Jammy under WSLg

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

So you need to specify euc -extra-cflags="-no-pie" -extra-lflags="-no-pie" to have the translated code built without PIE. But even then, you'll likely encounter libm version problems

Yup.

bugmagnet@LAPTOP-H6HBEGA9:/mnt/c/Users/bugma/Dropbox/Projects/exercism-dev/oe$  euc -extra-cflags="-no-pie" -extra-lflags="-no-pie"  ack.ex 
Build directory: build-944737/ 
Translating code, pass: 1 2 3  generating 
Compiling with GCC 
Compiling  14% init-.c 
Compiling  57% ack.c 
Compiling  85% main-.c 
Linking 100% ../ack 
/usr/bin/ld: /usr/local/euphoria-4.1.0-Linux-x64/bin/eu.a(be_runtime.o): in function `power': 
be_runtime.c:(.text+0x4061): undefined reference to `__powl_finite' 
/usr/bin/ld: /usr/local/euphoria-4.1.0-Linux-x64/bin/eu.a(be_runtime.o): in function `Dpower': 
be_runtime.c:(.text+0x40dc): undefined reference to `__powl_finite' 
/usr/bin/ld: /usr/local/euphoria-4.1.0-Linux-x64/bin/eu.a(be_runtime.o): in function `e_log': 
be_runtime.c:(.text+0x417f): undefined reference to `__log_finite' 
/usr/bin/ld: /usr/local/euphoria-4.1.0-Linux-x64/bin/eu.a(be_runtime.o): in function `De_log': 
be_runtime.c:(.text+0x41c1): undefined reference to `__log_finite' 
collect2: error: ld returned 1 exit status 
Unable to link /mnt/c/Users/bugma/Dropbox/Projects/exercism-dev/oe/ack 
Status: 1 Command: gcc -o /mnt/c/Users/bugma/Dropbox/Projects/exercism-dev/oe/ack  init-.o ack.o main-.o   /usr/local/euphoria-4.1.0-Linux-x64/bin/eu.a -m64 -ldl -lm -lpthread -no-pie 

-Bruce

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

Search



Quick Links

User menu

Not signed in.

Misc Menu