Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  rockboxdev.sh: line 35: nproc: command not found, arm-elf-eabi-gcc
« previous next »
  • Print
Pages: [1]

Author Topic: rockboxdev.sh: line 35: nproc: command not found, arm-elf-eabi-gcc  (Read 1201 times)

Offline GiraffeMan3125

  • Member
  • *
  • Posts: 16
rockboxdev.sh: line 35: nproc: command not found, arm-elf-eabi-gcc
« 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?
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 9214
Re: rockboxdev.sh: line 35: nproc: command not found, arm-elf-eabi-gcc
« Reply #1 on: July 29, 2020, 12:44:02 PM »
https://www.rockbox.org/wiki/DevelopmentGuide
Logged

Offline GiraffeMan3125

  • Member
  • *
  • Posts: 16
Re: rockboxdev.sh: line 35: nproc: command not found, arm-elf-eabi-gcc
« Reply #2 on: July 29, 2020, 02:20:49 PM »
Code: [Select]
rockboxdev.sh: line 35: nproc: command not found while running rockboxdev.sh
« Last Edit: July 29, 2020, 05:35:13 PM by GiraffeMan3125 »
Logged

Offline GiraffeMan3125

  • Member
  • *
  • Posts: 16
Re: rockboxdev.sh: line 35: nproc: command not found, arm-elf-eabi-gcc
« Reply #3 on: August 06, 2020, 05:56:54 PM »
I'm still having this issue
Logged

Offline GiraffeMan3125

  • Member
  • *
  • Posts: 16
Re: rockboxdev.sh: line 35: nproc: command not found, arm-elf-eabi-gcc
« Reply #4 on: August 06, 2020, 06:08:27 PM »
I'm trying to install the GCC toolchain so I can use rockbox, but when I run rockboxdev.sh, I get the error
Code: [Select]
rockboxdev.sh: line 35: nproc: command not foundPlease help.
« Last Edit: August 07, 2020, 07:15:23 AM by GiraffeMan3125 »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 9214
Re: rockboxdev.sh: line 35: nproc: command not found, arm-elf-eabi-gcc
« Reply #5 on: August 06, 2020, 08:09:03 PM »
What is your operating system?
Logged

Offline __builtin

  • Developer
  • Member
  • *
  • Posts: 405
  • iPod 6G, c200v1 (RIP), e200v1 (RIP)
    • FWEI.TK
Re: rockboxdev.sh: line 35: nproc: command not found, arm-elf-eabi-gcc
« Reply #6 on: August 06, 2020, 09:32:58 PM »
What platform are you building on? nproc is a coreutils component.
Logged
No support questions by PM, please.

Offline GiraffeMan3125

  • Member
  • *
  • Posts: 16
Re: rockboxdev.sh: line 35: nproc: command not found, arm-elf-eabi-gcc
« Reply #7 on: August 07, 2020, 07:15:08 AM »
macOS Catalina. I'm trying to install rockbox on an iPod 5th Gen.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 9214
Re: rockboxdev.sh: line 35: nproc: command not found, arm-elf-eabi-gcc
« Reply #8 on: August 07, 2020, 09:47:37 AM »
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.
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3528
  • creature
Re: rockboxdev.sh: line 35: nproc: command not found, arm-elf-eabi-gcc
« Reply #9 on: August 07, 2020, 01:11:04 PM »
Apply this (I'm going to add it to git later, after I checked it on Linux):

Code: [Select]
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.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  rockboxdev.sh: line 35: nproc: command not found, arm-elf-eabi-gcc
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.055 seconds with 17 queries.