Compiling in WSL
- Posted by axtens_bruce Feb 22, 2024
- 492 views
bugmagnet@LAPTOP-H6HBEGA9:/mnt/c/Users/bugma/Dropbox/Projects/openeuphoria/bin$ euc run.ex Build directory: build-925526/ Translating code, pass: 1 2 3 4 5 6 7 8 9 10 11 generating Compiling with GCC Compiling 2% init-.c Compiling 8% run.c Compiling 12% main-.c Compiling 16% filesys.c Compiling 20% datetime.c Compiling 24% dll.c Compiling 28% machine.c Compiling 32% memory.c Compiling 36% types.c Compiling 40% get.c Compiling 44% io.c Compiling 48% text.c Compiling 53% convert.c Compiling 57% search.c Compiling 61% math.c Compiling 65% sequence.c Compiling 69% sort.c Compiling 73% scinot.c Compiling 77% wildcard.c Compiling 81% cmdline.c Compiling 85% map.c Compiling 89% eumem.c Compiling 93% regex.c Compiling 97% json.c Linking 100% ../run /usr/bin/ld: /usr/local/euphoria-4.1.0-Linux-x64/bin/eu.a(be_machine.o): relocation R_X86_64_32 against `.rodata.str1.1' 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/Users/bugma/Dropbox/Projects/openeuphoria/bin/run Status: 1 Command: gcc -o /mnt/c/Users/bugma/Dropbox/Projects/openeuphoria/bin/run init-.o run.o main-.o filesys.o datetime.o dll.o machine.o memory.o types.o get.o io.o text.o convert.o search.o math.o sequence.o sort.o scinot.o wildcard.o cmdline.o map.o eumem.o regex.o json.o /usr/local/euphoria-4.1.0-Linux-x64/bin/eu.a -m64 -ldl -lm -lpthread Could not remove directory build-925526/How do I get this to compile?
-Bruce