Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: dgiglio on July 23, 2017, 05:57:21 PM

Title: arm-elf-eabi-cpp: error trying to exec 'cc1': execvp: file not found
Post by: dgiglio on July 23, 2017, 05:57:21 PM
Hi,
I've followed the instructions for beginners:
- cloned the git repo
- compiled the toolchain via rockboxdev.sh

But when I try to create the Makefile into the build dir I get this error.
Any clue?
Thanks in advance.
Title: Re: arm-elf-eabi-cpp: error trying to exec 'cc1': execvp: file not found
Post by: saratoga on July 23, 2017, 10:10:35 PM
Is  arm-elf-eabi-cpp on your path?
Title: Re: arm-elf-eabi-cpp: error trying to exec 'cc1': execvp: file not found
Post by: dgiglio on July 24, 2017, 07:43:35 AM
Code: [Select]
/usr/local/bin/arm-elf-eabi-cpp
And of course /usr/local/bin/ is in my $PATH.
Where is cc1 supposed te be after the installation?

EDIT
Ok, it looks like the good old permission issue. rockboxdev.sh puts everithing into /usr/local/libexec, but
Code: [Select]
drwxr-s--- 3 root staff 4,0K lug 23 22:18 libexec/normal users cannot enter that directory and the others nested.

I don't know how rockboxdev.sh manages premissions, but I suspect that some other script has messed with that directory.
Title: Re: arm-elf-eabi-cpp: error trying to exec 'cc1': execvp: file not found
Post by: pamaury on August 22, 2017, 03:42:20 PM
What distribution are you using? rockboxdev.sh merely downloads and builds things, ie calls the configure and makefiles of gcc and other tools. Probably those tools expect a world readable /usr/local and subdirs.

By the way, this looks like a strange permision for libexec, not being even world readable.