pulp-platform / ri5cy_gnu_toolchain

22 stars 23 forks source link

ls: cannot access '/*.patch': No such file or directory #29

Closed xjiang3 closed 5 years ago

xjiang3 commented 5 years ago

Does anyone know how to fix this error? I just run make in ri5cy_gnu_toolchain. make if [ ! -e toolchain ]; then git clone https://github.com/riscv/riscv-gnu-toolchain.git toolchain; fi cd toolchain && git checkout d038d596dc1d8e47ace22ab742cd40c2f22d659e M binutils/bfd/cpu-riscv.c M binutils/bfd/elfnn-riscv.c M binutils/bfd/elfxx-riscv.c M binutils/bfd/elfxx-riscv.h M binutils/gas/config/tc-riscv.c M binutils/gas/config/tc-riscv.h M binutils/include/elf/riscv.h M binutils/include/opcode/riscv-opc.h M binutils/include/opcode/riscv.h M binutils/ld/emulparams/elf32lriscv-defs.sh M binutils/ld/emulparams/elf32lriscv.sh M binutils/ld/emulparams/elf64lriscv-defs.sh M binutils/ld/emulparams/elf64lriscv.sh M binutils/ld/emultempl/riscvelf.em M binutils/opcodes/riscv-dis.c M binutils/opcodes/riscv-opc.c M gcc/gcc/common/config/riscv/riscv-common.c M gcc/gcc/config/riscv/constraints.md M gcc/gcc/config/riscv/predicates.md M gcc/gcc/config/riscv/riscv-ftypes.def M gcc/gcc/config/riscv/riscv-modes.def M gcc/gcc/config/riscv/riscv-protos.h M gcc/gcc/config/riscv/riscv.c M gcc/gcc/config/riscv/riscv.h M gcc/gcc/config/riscv/riscv.md M gcc/gcc/config/riscv/riscv.opt M newlib/libgloss/riscv/crt0.S M newlib/libgloss/riscv/syscalls.c M newlib/newlib/libc/machine/riscv/machine/time.h HEAD is now at d038d59... Update to hopefully-final RVC 1.9 encoding if [ -d ]; then \ cd toolchain; \ FILES=$(ls /*.patch | sort); \ for tmp in $FILES; do \ test=$(patch -p1 -R -N --dry-run <$tmp 1>/dev/null 2>&1; echo $?); \ if [ "$test" != "0" ]; then patch -p1 -N <$tmp; fi \ done; \ fi ls: cannot access '/*.patch': No such file or directory mkdir -p /home/jiangxun/github/ri5cy_gnu_toolchain/build cd /home/jiangxun/github/ri5cy_gnu_toolchain/build && /home/jiangxun/github/ri5cy_gnu_toolchain/toolchain/configure --with-xlen=32 --with-arch=IM --disable-atomic --disable-float --disable-multilib --prefix=/home/jiangxun/github/ri5cy_gnu_toolchain/install checking for gcc... /home/jiangxun/github/ri5cy_gnu_toolchain/install/bin checking whether the C compiler works... no configure: error: in/home/jiangxun/github/ri5cy_gnu_toolchain/build': configure: error: C compiler cannot create executables See config.log' for more details Makefile:28: recipe for target 'build' failed make: *** [build] Error 77