gcc: error trying to exec 'cc1': execvp: No such file or directory

Asked by John Dowd

I have downloaded your latest toolchain and installed it. The error:

"gcc: error trying to exec 'cc1': execvp: No such file or directory"

is displayed when I use the following make file (contents):

INCLUDE=-I /usr/arm-none-eabi/include
TOOL_PATH=/usr/arm-none-eabi/bin
TOOL_PREFIX=
GCC=$(TOOL_PATH)/$(TOOL_PREFIX)gcc
OPTIONS=-mcpu=cortex-m4 -mthumb -O0
LIB_PATH=/usr/arm-none-eabi/lib

all:
 $(GCC) $(OPTIONS) -g -o hello hello.c -L $(LIB_PATH)

Cheers!!

Question information

Language:
English Edit question
Status:
Solved
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Solved by:
John Dowd
Solved:
Last query:
Last reply:
Revision history for this message
Terry Guo (terry.guo) said :
#1

The way you define TOOL_PATH looks suspicious to me. We should call things like /usr/bin/arm-none-eabi-gcc, not things from the /usr/arm-none-eabi/bin/. Please redefine your TOOL_PATH and GCC and try again. Let us know if you have further issue.

Revision history for this message
John Dowd (jdowdster) said :
#2

My tool path is where the debian package put the binaries, if I used your "path" I would get "not found" on everything. I did not make up the path off of the top of my head, I went and found the binaries after the installation.

We are very far apart on this problem, I'm moving on.

Cheers!!

Revision history for this message
Terry Guo (terry.guo) said :
#3

I am not understanding your final statement very well. Is this issue still bothering you? If not, can we close this issue?

Revision history for this message
John Dowd (jdowdster) said :
#4

please close it.