bazz1tv / XPMCK

fork/continuation of http://jiggawatt.org/muzak/xpmck/ Release 32 with bugfixes and new features
27 stars 5 forks source link

Does not compile with OpenEuphoria 4.1.0 #29

Open basxto opened 5 years ago

basxto commented 5 years ago
euc src/xpmc.exw -o bin/xpmc
Build directory: build-217992/
Translating code, pass: 1 2 3 4 5 6 7  generating
Compiling with GCC
Compiling   1% init-.c
Compiling   6% xpmc.c
Compiling   9% main-.c
Compiling  12% file.c
Compiling  15% get.c
Compiling  19% wildcard.c
Compiling  22% machine.c
Compiling  25% assoc.c
Compiling  28% list.c
Compiling  31% string.c
Compiling  34% util.c
Compiling  38% target_at8.c
Compiling  41% output.c
Compiling  44% vgm.c
Compiling  47% specs.c
Compiling  50% zlib.c
Compiling  53% 0achine.c
Compiling  57% memory.c
Compiling  60% dll.c
Compiling  63% types.c
Compiling  66% wav.c
Compiling  69% target_c64.c
Compiling  73% target_clv.c
Compiling  76% target_cpc.c
Compiling  79% target_cps.c
Compiling  82% target_gbc.c
Compiling  85% target_gen.c
Compiling  88% target_kss.c
Compiling  92% target_pce.c
Compiling  95% target_sgg.c
Compiling  98% target_sms.c
Linking 100% ../bin/xpmc
/usr/bin/ld: /usr/share/openeuphoria/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 -fPIC
/usr/bin/ld: /usr/share/openeuphoria/bin/eu.a(be_w.o): relocation R_X86_64_32 against undefined symbol `screen_image' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /usr/share/openeuphoria/bin/eu.a(be_alloc.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /usr/share/openeuphoria/bin/eu.a(be_pcre.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /usr/share/openeuphoria/bin/eu.a(be_socket.o): relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /usr/share/openeuphoria/bin/eu.a(be_runtime.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /usr/share/openeuphoria/bin/eu.a(be_task.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /usr/share/openeuphoria/bin/eu.a(be_callc.o): relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /usr/share/openeuphoria/bin/eu.a(pcre_compile.o): relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /usr/share/openeuphoria/bin/eu.a(pcre_exec.o): relocation R_X86_64_32 against symbol `_pcre_default_tables' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /usr/share/openeuphoria/bin/eu.a(pcre_fullinfo.o): relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: Fehler: ld gab 1 als Ende-Status zurück
Unable to link /tmp/XPMCK/bin/xpmc
Status: 1 Command: gcc -o /tmp/XPMCK/bin/xpmc  init-.o xpmc.o main-.o file.o get.o wildcard.o machine.o assoc.o list.o string.o util.o target_at8.o output.o vgm.o specs.o zlib.o 0achine.o memory.o dll.o types.o wav.o target_c64.o target_clv.o target_cpc.o target_cps.o target_gbc.o target_gen.o target_kss.o target_pce.o target_sgg.o target_sms.o   /usr/share/openeuphoria/bin/eu.a -m64 -ldl -lm -lpthread

On ArchLinux with openeuphoria 4.1.0-2, gcc 9.1.0-2 and binutils 2.32-2

Xyz39808 commented 4 years ago

Have you read this thing b00daw wrote? https://github.com/bazzinotti/XPMCK/issues/11

przem360 commented 1 year ago

I have a similar issue on Debian on x86 machine.

make
euc src/xpmc.exw -o bin/xpmc
Build directory: build-246148/
Translating code, pass: 1 2 3 4 5 6 7  generating
Compiling with GCC
Compiling   1% init-.c
Compiling   6% xpmc.c
Compiling   9% main-.c
Compiling  12% file.c
Compiling  15% get.c
Compiling  19% wildcard.c
Compiling  22% machine.c
Compiling  25% assoc.c
Compiling  28% list.c
Compiling  31% string.c
Compiling  34% util.c
Compiling  38% target_at8.c
Compiling  41% output.c
Compiling  44% vgm.c
Compiling  47% specs.c
Compiling  50% zlib.c
Compiling  53% 0achine.c
Compiling  57% memory.c
Compiling  60% dll.c
Compiling  63% types.c
Compiling  66% wav.c
Compiling  69% target_c64.c
Compiling  73% target_clv.c
Compiling  76% target_cpc.c
Compiling  79% target_cps.c
Compiling  82% target_gbc.c
Compiling  85% target_gen.c
Compiling  88% target_kss.c
Compiling  92% target_pce.c
Compiling  95% target_sgg.c
Compiling  98% target_sms.c
Linking 100% ../bin/xpmc
/usr/bin/ld: /usr/local/euphoria-4.1.0-Linux-x86/bin/eu.a(be_machine.o): warning: relocation in read-only section `.rodata'
/usr/bin/ld: /usr/local/euphoria-4.1.0-Linux-x86/bin/eu.a(be_runtime.o): in function `power':
be_runtime.c:(.text+0x37ad): undefined reference to `__pow_finite'
/usr/bin/ld: /usr/local/euphoria-4.1.0-Linux-x86/bin/eu.a(be_runtime.o): in function `Dpower':
be_runtime.c:(.text+0x3835): undefined reference to `__pow_finite'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
Unable to link /home/pi/lab/XPMCK/bin/xpmc
Status: 1 Command: gcc -o /home/pi/lab/XPMCK/bin/xpmc  init-.o xpmc.o main-.o file.o get.o wildcard.o machine.o assoc.o list.o string.o util.o target_at8.o output.o vgm.o specs.o zlib.o 0achine.o memory.o dll.o types.o wav.o target_c64.o target_clv.o target_cpc.o target_cps.o target_gbc.o target_gen.o target_kss.o target_pce.o target_sgg.o target_sms.o   /usr/local/euphoria-4.1.0-Linux-x86/bin/eu.a -m32 -ldl -lm -lpthread