HACKERCHANNEL / PSL1GHT

A lightweight PS3 SDK
www.psl1ght.com
MIT License
182 stars 67 forks source link

PIC register clobber #107

Closed nkindt closed 5 years ago

nkindt commented 5 years ago

Hi devs,

i am having trouble installing psl1ght erroring out on inline asm (only certain libs). i.e.:

In file included from /home/nk/Downloads/PSL1GHT-master/libpsl1ght/build/../../include/psl1ght/lv2/timer.h:3:0, from /home/nk/Downloads/PSL1GHT-master/libpsl1ght/source/time.c:1: /home/nk/Downloads/PSL1GHT-master/libpsl1ght/build/../../include/psl1ght/lv2.h: In function 'psl1ght_gettimeofday_r': /home/nk/Downloads/PSL1GHT-master/libpsl1ght/build/../../include/psl1ght/lv2.h:102:2: error: PIC register clobbered by 'r2' in 'asm' asm volatile("sc" ^~~ /home/nk/Downloads/PSL1GHT-master/libpsl1ght/build/../../include/psl1ght/lv2.h: In function 'psl1ght_settimeofday_r': /home/nk/Downloads/PSL1GHT-master/libpsl1ght/build/../../include/psl1ght/lv2.h:102:2: error: PIC register clobbered by 'r2' in 'asm' asm volatile("sc" ^~~ /home/nk/Downloads/PSL1GHT-master/libpsl1ght/build/../../rules/base.mk:16: recipe for target 'time.o' failed make[2]: [time.o] Error 1 Makefile:44: recipe for target 'build' failed make[1]: [build] Error 2 Leaving Directory libpsl1ght

System is Linux Mint 18.3 x64, every dependency installed, ps3toolchain works as in fully compiled and ppu-gcc, ppu-ar, etc. are all in place. Anything i missed since i couldn't find any information on this one?

nkindt commented 5 years ago

Oops, realized it's the wrong repository. This should go into the ps3 toolchain which is still updated (GCC 7.2.0 being the latest).