Rockbox Technical Forums
Rockbox Development => Starting Development and Compiling => Topic started by: GiraffeMan3125 on July 29, 2020, 12:38:51 PM
-
I'm trying to install arm-elf-eabi-gcc so I can build Rockbox, but I haven't found out how to install it. Does anybody have a working method for installing it?
-
https://www.rockbox.org/wiki/DevelopmentGuide
-
rockboxdev.sh: line 35: nproc: command not found
while running rockboxdev.sh
-
I'm still having this issue
-
I'm trying to install the GCC toolchain so I can use rockbox, but when I run rockboxdev.sh, I get the error
rockboxdev.sh: line 35: nproc: command not found
Please help.
-
What is your operating system?
-
What platform are you building on? nproc is a coreutils component.
-
macOS Catalina. I'm trying to install rockbox on an iPod 5th Gen.
-
The last few versions of MacOS have broken compatibility with a lot of our development tools. When I tried a few years back, the first thing thing I had to do was install gcc (since Apple stopped supporting it in favor of llvm).
Alternatively you could use a Linux VM or find a windows machine.
-
Apply this (I'm going to add it to git later, after I checked it on Linux):
diff --git a/tools/rockboxdev.sh b/tools/rockboxdev.sh
index 6b12fa015e..09b420c0c9 100755
--- a/tools/rockboxdev.sh
+++ b/tools/rockboxdev.sh
@@ -32,7 +32,12 @@ fi
# This is the absolute path to where the script resides.
rockboxdevdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-parallel=`nproc`
+if [ `uname -s` != "Darwin" ]; then
+ parallel=`nproc`
+else
+ parallel=`sysctl -n hw.physicalcpu`
+fi
+
if [ $parallel -gt 1 ] ; then
make_parallel=-j$parallel
fi
After that you'll need further tools, likely best approach is to use homebrew.