I am trying to compile for my target machine which uses the arm-none-gnueabi-gcc compiler. But when I try to cross-compile I get the error in my Ubuntu machine as:

 arm-none-linux-gnueabi-gcc: error trying to exec 'cc1': execvp: No such file or directory

Background about this compiler - I copied this compiler from another Linux system.

When I run ./configure script with this command,

./configure CC=/home/osboxes/Desktop/Sourcer_G++_Lite/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc --host=arm -prefix /home/osboxes/Desktop/application 

I get an error at the start telling: Checking whether C compiler works... no.

Config.log -->

## --------- ##
## Platform. ##
## --------- ##

hostname = osboxes
uname -m = i686
uname -r = 3.19.0-25-generic
uname -s = Linux
uname -v = #26~14.04.1-Ubuntu SMP Fri Jul 24 21:18:00 UTC 2015

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/games
PATH: /home/osboxes/arm-2013.05/bin
PATH: /home/osboxes/Desktop/Sourcery_G++_Lite/bin

## ----------- ##
## Core tests. ##
## ----------- ##

configure:2809: checking whether make supports nested variables
configure:2826: result: yes
configure:2921: checking for a BSD-compatible install
configure:2989: result: /usr/bin/install -c
configure:3000: checking whether build environment is sane
configure:3055: result: yes
configure:3114: checking for arm-strip
configure:3144: result: no
configure:3154: checking for strip
configure:3170: found /usr/bin/strip
configure:3181: result: strip
configure:3206: checking for a thread-safe mkdir -p
configure:3245: result: /bin/mkdir -p
configure:3252: checking for gawk
configure:3268: found /usr/bin/gawk
configure:3279: result: gawk
configure:3290: checking whether make sets $(MAKE)
configure:3312: result: yes
configure:3456: checking whether UID '1000' is supported by ustar format
configure:3459: result: yes
configure:3466: checking whether GID '1000' is supported by ustar format
configure:3469: result: yes
configure:3477: checking how to create a ustar tar archive
configure:3488: tar --version
tar (GNU tar) 1.27.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
configure:3491: $? = 0
configure:3531: tardir=conftest.dir && eval tar --format=ustar -chf - "$tardir" >conftest.tar
configure:3534: $? = 0
configure:3538: tar -xf - <conftest.tar
configure:3541: $? = 0
configure:3543: cat conftest.dir/file
configure:3546: $? = 0
configure:3559: result: gnutar
configure:4093: checking for arm-gcc
configure:4120: result: /home/osboxes/Desktop/Sourcer_G++_Lite/bin/arm-none-linux-gnueabi-gcc
configure:4389: checking for C compiler version
configure:4398: /home/osboxes/Desktop/Sourcer_G++_Lite/bin/arm-none-linux-gnueabi-gcc --version >&5
./configure: line 4400: /home/osboxes/Desktop/Sourcer_G++_Lite/bin/arm-none-linux-gnueabi-gcc: No such file or directory
configure:4409: $? = 127
configure:4398: /home/osboxes/Desktop/Sourcer_G++_Lite/bin/arm-none-linux-gnueabi-gcc -v >&5
./configure: line 4400: /home/osboxes/Desktop/Sourcer_G++_Lite/bin/arm-none-linux-gnueabi-gcc: No such file or directory
configure:4409: $? = 127
configure:4398: /home/osboxes/Desktop/Sourcer_G++_Lite/bin/arm-none-linux-gnueabi-gcc -V >&5
./configure: line 4400: /home/osboxes/Desktop/Sourcer_G++_Lite/bin/arm-none-linux-gnueabi-gcc: No such file or directory
configure:4409: $? = 127
configure:4398: /home/osboxes/Desktop/Sourcer_G++_Lite/bin/arm-none-linux-gnueabi-gcc -qversion >&5
./configure: line 4400: /home/osboxes/Desktop/Sourcer_G++_Lite/bin/arm-none-linux-gnueabi-gcc: No such file or directory
configure:4409: $? = 127
configure:4429: checking whether the C compiler works
configure:4451: /home/osboxes/Desktop/Sourcer_G++_Lite/bin/arm-none-linux-gnueabi-gcc    conftest.c  >&5
                                                                                                                                                                                           102,1         10%
configure:4455: $? = 127
configure:4493: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "syslog-ng"
| #define PACKAGE_TARNAME "syslog-ng"
| #define PACKAGE_VERSION "3.13.1"
| #define PACKAGE_STRING "syslog-ng 3.13.1"
| #define PACKAGE_URL ""
| #define RELEASE_TYPE "stable"
| #define BROCHURE_VERSION "3"
| #define COMBINED_VERSION "3 (3.13.1)"
| #define SOURCE_REVISION ""
| /* end confdefs.h.  */
| int
| main ()
| {
|   ;
|   return 0;
| }
configure:4498: error: in `/home/osboxes/Desktop/gclibsyslog/syslog-ng-3.13.1':
configure:4500: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##


Etc etc...

How do I resolve this issue? How do I get my cross-compiler working?

  • Did you ever figure this out?
    – Andi Jay
    Aug 22 '18 at 19:09

cc1 is missing or unreachable in this case.

you can locate the cc1 under the version of gcc executable. For example, if gcc is in /usr/local/bin, then you can search under /usr/local/lib/.../. to find it.

Once you found it, you can try the following: "CC1=/ful/path/to/cc1 ./configure ...."

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.