Rockbox Development > Starting Development and Compiling line 35: nproc: command not found, arm-elf-eabi-gcc

<< < (2/2)

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):

--- Code: ---diff --git a/tools/ b/tools/
index 6b12fa015e..09b420c0c9 100755
--- a/tools/
+++ b/tools/
@@ -32,7 +32,12 @@ fi
 # This is the absolute path to where the script resides.
 rockboxdevdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+if [ `uname -s` != "Darwin" ]; then
+    parallel=`nproc`
+    parallel=`sysctl -n hw.physicalcpu`
 if [ $parallel -gt 1 ] ; then

--- End code ---

After that you'll need further tools, likely best approach is to use homebrew.


[0] Message Index

[*] Previous page

Go to full version