Re: Compiling in WSL
- Posted by jimcbrown (admin) Feb 22, 2024
- 487 views
I found a posting from a year ago about this issue and tried it, with not much change in the last 12 months
It helps if you link to the other posts, so folks can follow what's going on.
/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'
Yeah, this was a change in the math library sometime back (by the glibc team).
Recommend trying the latest from git as that have an updated build system which seems to have been updated to deal with these issues, https://openeuphoria.org/forum/m/138137.wc
The older 4.1.0 release hasn't been touched in a while and breaks due to the changes that happened to glibc over the past few years.
/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 -fPIEHow do I get this to compile?
-Bruce
Recompiling with -fPIE will get you further, but as per https://openeuphoria.org/forum/m/138260.wc I'd recommend getting the latest from git as that should already have these fixes.