Problem with euc on Ubuntu Jammy under WSLg
- Posted by axtens_bruce Feb 13, 2023
- 583 views
Compiling
function ack(atom m, atom n) if m = 0 then return n + 1 elsif m > 0 and n = 0 then return ack(m - 1, 1) else return ack(m - 1, ack(m, n - 1)) end if end function for i = 0 to 4 do for j = 0 to 6 do printf( 1, "%5d", ack( i, j ) ) end for puts( 1, "\n" ) end for
under WSLg and Jammy gives
bugmagnet@LAPTOP-H6HBEGA9:/mnt/c/TEMP$ euc ack.ex Build directory: build-609209/ 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_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 -lpthreadHow do I get it to link?
-Bruce