lwlsw / Chinese-Lunar-Calendar-ics

中国农历的ics文件
36 stars 12 forks source link

Bug: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIE #2

Open Madelena opened 2 years ago

Madelena commented 2 years ago

I'm using Ubuntu on WSL to make this but it failed.

c$ make
gcc -Wall -O2 -o lunarcal  astro.o vsop.o nutation.o julian.o lea406-full.o lunarcalbase.o lunarcal.o -lm -lpthread
/usr/bin/ld: astro.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: vsop.o: relocation R_X86_64_32 against `.data' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: nutation.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: julian.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: lea406-full.o: relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: lunarcalbase.o: relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIE
collect2: error: ld returned 1 exit status
make: *** [Makefile:33: lunarcal] Error 1

What version of Linux did you use? Thank you.