Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Unable to generate riscv cross compiers with --enable-host-shared & enable-languages=c,c++,jit flags #369

Open
billasurendra opened this issue Mar 9, 2023 · 0 comments

Comments

@billasurendra
Copy link

Dear All,

I am trying to generates a my own riscv cross compiler with the --enable-host-shared & enable-languages=c,c++,jit flags. But here I am getting errors. Can anyone please help me to resolve the following errors.

Error:
/bin/ld: /root/MDP/RV64G_Fedora_Distro/packages/gcc-static/./gmp/.libs/libgmp.a(hgcd2.o): relocation R_X86_64_32S against symbol __gmpn_clz_tab' can not be used when making a shared object; recompile with -fPIC /bin/ld: /root/MDP/RV64G_Fedora_Distro/packages/gcc-static/./gmp/.libs/libgmp.a(hgcd.o): relocation R_X86_64_32S against symbol __gmpn_clz_tab' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /root/MDP/RV64G_Fedora_Distro/packages/gcc-static/./gmp/.libs/libgmp.a(hgcd_step.o): relocation R_X86_64_32S against symbol __gmpn_clz_tab' can not be used when making a shared object; recompile with -fPIC /bin/ld: /root/MDP/RV64G_Fedora_Distro/packages/gcc-static/./gmp/.libs/libgmp.a(hgcd_appr.o): relocation R_X86_64_32S against symbol __gmpn_clz_tab' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /root/MDP/RV64G_Fedora_Distro/packages/gcc-static/mpfr/src/.libs/libmpfr.a(constant.o): warning: relocation in read-only section `.rodata'
collect2: error: ld returned 1 exit status
make[1]: *** [../../gcc-12.2.0/gcc/jit/Make-lang.in:168: libgccjit.so.0.0.1] Error 1
make[1]: *** Waiting for unfinished jobs....
rm gcc.pod
make[1]: Leaving directory '/root/MDP/RV64G_Fedora_Distro/packages/gcc-static/gcc'
make: *** [Makefile:4622: all-gcc] Error 2

Thanks
Billa

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant