OpenCores
no use no use 1/1 no use no use
or1k-elf-cc: command not found
by meitoku on Jan 24, 2014
meitoku
Posts: 26
Joined: Nov 21, 2013
Last seen: Oct 18, 2015
I'm building the newlib toolchain on Ubuntu 13.10 32 bit. I built the first set of tools without problem, but when I build newlib and gdb without or1ksim (http://opencores.org/or1k/Toolchain#Newlib_toolchain_.28or1k-elf.29) and run the make command, I have a problem:

/bin/bash: or1k-elf-cc: command not found
make[5]: *** [lib_a-sysclose.o] Error 127
make[5]: Leaving directory `/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/or1k-elf/newlib/libc/syscalls'
Making all in .
make[5]: Entering directory `/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/or1k-elf/newlib/libc'
rm -f libc.a
rm -rf tmp
mkdir tmp
cd tmp; \
for i in argz/lib.a stdlib/lib.a ctype/lib.a search/lib.a stdio/lib.a string/lib.a signal/lib.a time/lib.a locale/lib.a reent/lib.a errno/lib.a misc/lib.a syscalls/lib.a machine/lib.a ; do \
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/./binutils/ar x ../$i; \
done; \
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/./binutils/ar rc ../libc.a *.o
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../argz/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../stdlib/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../ctype/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../search/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../stdio/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../string/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../signal/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../time/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../locale/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../reent/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../errno/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../misc/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../syscalls/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../machine/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: *.o: No such file or directory
make[5]: *** [libc.a] Error 1
make[5]: Leaving directory `/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/or1k-elf/newlib/libc'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/or1k-elf/newlib/libc'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/or1k-elf/newlib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/or1k-elf/newlib'
make[1]: *** [all-target-newlib] Error 2
make[1]: Leaving directory `/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src'
make: *** [all] Error 2

The string "or1k-elf-cc: command not found" happens everywhere and a lot of .a files couldn't be found. I googled but I can't find any working solution yet.




RE: or1k-elf-cc: command not found
by stekern on Jan 25, 2014
stekern
Posts: 84
Joined: Apr 28, 2009
Last seen: Nov 10, 2016
Did you remember to export PATH=$PATH:/path/to/or1k/bin
RE: or1k-elf-cc: command not found
by meitoku on Feb 8, 2014
meitoku
Posts: 26
Joined: Nov 21, 2013
Last seen: Oct 18, 2015
Did you remember to export PATH=$PATH:/path/to/or1k/bin


I can't find that folder. Which step of the building progress created it?
RE: or1k-elf-cc: command not found
by stekern on Feb 17, 2014
stekern
Posts: 84
Joined: Apr 28, 2009
Last seen: Nov 10, 2016
I meant, did you remember to add the path where you installed your toolchain to
to your PATH environment variable.
RE: or1k-elf-cc: command not found
by meitoku on Mar 4, 2014
meitoku
Posts: 26
Joined: Nov 21, 2013
Last seen: Oct 18, 2015
I meant, did you remember to add the path where you installed your toolchain to
to your PATH environment variable.


Thank you, I misunderstood your previous answer. My problem is now solved.
RE: or1k-elf-cc: command not found
by vineeshvs on Jan 14, 2020
vineeshvs
Posts: 2
Joined: May 27, 2013
Last seen: Mar 24, 2020
Did you install the tool chains from https://openrisc.io/newlib/ or using sudo apt-get install?

I'm building the newlib toolchain on Ubuntu 13.10 32 bit. I built the first set of tools without problem, but when I build newlib and gdb without or1ksim (http://opencores.org/or1k/Toolchain#Newlib_toolchain_.28or1k-elf.29) and run the make command, I have a problem:

/bin/bash: or1k-elf-cc: command not found
make[5]: *** [lib_a-sysclose.o] Error 127
make[5]: Leaving directory `/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/or1k-elf/newlib/libc/syscalls'
Making all in .
make[5]: Entering directory `/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/or1k-elf/newlib/libc'
rm -f libc.a
rm -rf tmp
mkdir tmp
cd tmp; \
for i in argz/lib.a stdlib/lib.a ctype/lib.a search/lib.a stdio/lib.a string/lib.a signal/lib.a time/lib.a locale/lib.a reent/lib.a errno/lib.a misc/lib.a syscalls/lib.a machine/lib.a ; do \
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/./binutils/ar x ../$i; \
done; \
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/./binutils/ar rc ../libc.a *.o
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../argz/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../stdlib/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../ctype/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../search/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../stdio/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../string/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../signal/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../time/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../locale/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../reent/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../errno/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../misc/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../syscalls/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: ../machine/lib.a: No such file or directory
/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/binutils/.libs/lt-ar: *.o: No such file or directory
make[5]: *** [libc.a] Error 1
make[5]: Leaving directory `/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/or1k-elf/newlib/libc'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/or1k-elf/newlib/libc'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/or1k-elf/newlib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src/or1k-elf/newlib'
make[1]: *** [all-target-newlib] Error 2
make[1]: Leaving directory `/home/duc/Lab/openrisc/or1k-toolchain/bld-or1k-src'
make: *** [all] Error 2

The string "or1k-elf-cc: command not found" happens everywhere and a lot of .a files couldn't be found. I googled but I can't find any working solution yet.




no use no use 1/1 no use no use
© copyright 1999-2020 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.