riscvarchive / riscv-code-size-reduction

https://jira.riscv.org/browse/RVG-122
150 stars 34 forks source link

miss `utils/prepare-libgmp.sh` when run `sh gcc.sh` #183

Closed lhtin closed 2 years ago

lhtin commented 2 years ago

When I try to compile the toolchain, I get the below error message. I think the repo currently doesn't include utils/prepare-libgmp.sh. Am I missing any information? Thanks.

➜  toolchain git:(main) sh gcc.sh
/usr/local/bin/gcc
/usr/local/bin/g++
gcc.sh: line 35: utils/prepare-libgmp.sh: No such file or directory
abukharmeh commented 2 years ago

Hi You can obtain that file from here for now https://raw.githubusercontent.com/embecosm/embecosm-toolchain-releases/master/utils/prepare-libgmp.sh , Also please note that multilib generator string needs fixing as it appears that the wild cards are not working, not sure why ! --with-multilib-generator="rv32ima_zca_zcb_zcmt_zcmb_zcmp-ilp32--;rv32ima_zca_zcb-ilp32--;rv32ima_zca_zcmt-ilp32--;rv32ima_zca_zcmb-ilp32--;rv32ima_zca_zcmp-ilp32--" Thanks, Ibrahim

lhtin commented 2 years ago

Thank you for the comment. Why not include the file in this repo instead obtain from extra?

abukharmeh commented 2 years ago

Yes we should and will at some point ! I said the same thing when the compilation script was merged, by my review was was slightly late

lhtin commented 2 years ago

Get it, thank you.