pulp-platform / ri5cy_gnu_toolchain

22 stars 23 forks source link

make error solution #44

Open kangjian888 opened 7 months ago

kangjian888 commented 7 months ago

Most of the problems are caused by the lib requirment and gcc and g++ wrong version.

I use ubuntu 22.04LTS version

  1. insatall gawk: sudo apt-get update sudo apt-get install gawk
  2. install textinfo sudo apt-get install texinfo
  3. install computaion lib apt-get install libmpc-dev

The final is using the right version gcc and g++ gcc 5.2 is required by the toolchains,I use gcc-5 and g++5, you could check whether the gcc and g++ version are right The detailed steps are: https://blog.csdn.net/CharlieVV/article/details/111242143

Unlimitosu commented 4 months ago

I also succeed to building with following steps:

  1. install gawk, texinfdo and libmpc-dev as @kangjian888 wrote.
  2. install gcc-4.8 and g++-4.8, then configure them with update-alternative
  3. change gcc and g++ version into 4.8
  4. run make

it doesn't work in WSL but work in pure ubuntu 20.04. i think there is something bug with wsl but not sure.

haresh-seenivasagan commented 3 months ago

HI @Unlimitosu could you please have a look at this github issue https://github.com/pulp-platform/ri5cy_gnu_toolchain/issues/45 .