Ziqiang Patrick Huang
2014-07-28 16:00:49 UTC
Hi,
I'm following instructions here
http://opencores.org/or1k/OpenRISC_GNU_tool_chain#Newlib_toolchain_.28or1k-elf.29
to build the toolchains for or1k-elf. I successfully built binuitls and
gcc, but when building newlib and gdb, it got stuck when trying to compile
all the libraries under newlib/libc.
The error I got is /bin/bash: or1k-elf-gcc: command not found.
I made sure to add or1k-elf-gcc in my environment path, and when I try to
execute the exact command under the directory . For example
make[5]: Entering directory
`/home/zh28/openRISC/bld-or1k-src/or1k-elf/newlib/libc/syscalls'
or1k-elf-gcc -B/home/zh28/openRISC/bld-or1k-src/or1k-elf/newlib/ -isystem
/home/zh28/openRISC/bld-or1k-src/or1k-elf/newlib/targ-include -isystem
/home/zh28/openRISC/or1k-src/newlib/libc/include
-B/home/zh28/openRISC/bld-or1k-src/or1k-elf/libgloss/or1k
-L/home/zh28/openRISC/bld-or1k-src/or1k-elf/libgloss/libnosys
-L/home/zh28/openRISC/or1k-src/libgloss/or1k
-L/home/zh28/openRISC/bld-or1k-src/./ld -DPACKAGE_NAME=\"newlib\"
-DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"2.0.0\"
-DPACKAGE_STRING=\"newlib\ 2.0.0\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE_URL=\"\" -I. -I../../../../../or1k-src/newlib/libc/syscalls
-DREENTRANT_SYSCALLS_PROVIDED -D__DYNAMIC_REENT__ -fno-builtin -g -O2
-c -o lib_a-sysclose.o `test -f 'sysclose.c' || echo
'../../../../../or1k-src/newlib/libc/syscalls/'`sysclose.c
I got the error or1k-elf-gcc: error trying to exec 'cc1': execvo:no such
file or directory
So or1k-elf-gcc is invoked but somehow can't find corresponding cc1, when
building or1k-elf-gcc, cc1 is under
/opt/or1k-toolchain/libexec/gcc/or1k-elf/4.9.0, so I tried to add that to
PATH, but it does not help.
Any help ?
Thanks,
Ziqiang
I'm following instructions here
http://opencores.org/or1k/OpenRISC_GNU_tool_chain#Newlib_toolchain_.28or1k-elf.29
to build the toolchains for or1k-elf. I successfully built binuitls and
gcc, but when building newlib and gdb, it got stuck when trying to compile
all the libraries under newlib/libc.
The error I got is /bin/bash: or1k-elf-gcc: command not found.
I made sure to add or1k-elf-gcc in my environment path, and when I try to
execute the exact command under the directory . For example
make[5]: Entering directory
`/home/zh28/openRISC/bld-or1k-src/or1k-elf/newlib/libc/syscalls'
or1k-elf-gcc -B/home/zh28/openRISC/bld-or1k-src/or1k-elf/newlib/ -isystem
/home/zh28/openRISC/bld-or1k-src/or1k-elf/newlib/targ-include -isystem
/home/zh28/openRISC/or1k-src/newlib/libc/include
-B/home/zh28/openRISC/bld-or1k-src/or1k-elf/libgloss/or1k
-L/home/zh28/openRISC/bld-or1k-src/or1k-elf/libgloss/libnosys
-L/home/zh28/openRISC/or1k-src/libgloss/or1k
-L/home/zh28/openRISC/bld-or1k-src/./ld -DPACKAGE_NAME=\"newlib\"
-DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"2.0.0\"
-DPACKAGE_STRING=\"newlib\ 2.0.0\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE_URL=\"\" -I. -I../../../../../or1k-src/newlib/libc/syscalls
-DREENTRANT_SYSCALLS_PROVIDED -D__DYNAMIC_REENT__ -fno-builtin -g -O2
-c -o lib_a-sysclose.o `test -f 'sysclose.c' || echo
'../../../../../or1k-src/newlib/libc/syscalls/'`sysclose.c
I got the error or1k-elf-gcc: error trying to exec 'cc1': execvo:no such
file or directory
So or1k-elf-gcc is invoked but somehow can't find corresponding cc1, when
building or1k-elf-gcc, cc1 is under
/opt/or1k-toolchain/libexec/gcc/or1k-elf/4.9.0, so I tried to add that to
PATH, but it does not help.
Any help ?
Thanks,
Ziqiang