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

701 views
Skip to first unread message

Manin

unread,
Sep 10, 2009, 2:05:05 AM9/10/09
to android-porting, man...@tataelxsi.co.in
Hi All,

I have taken Android kernel from Embinux. I am having some issues in
generating zImage. Please find the output of beagle_build_kernel.sh as
follows,

[root@localhost kernel]# ../vendor/embinux/support-tools/
beagle_build_kernel.sh
--------
Cleaning
--------
CLEAN .tmp_versions
CLEAN include/asm-arm/mach-types.h
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config
CLEAN .config include/asm include/linux/autoconf.h include/linux/
version.h include/linux/utsrelease.h
---------
Configing
---------
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
--------
Building
--------
scripts/kconfig/conf -s arch/arm/Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
Generating include/asm-arm/mach-types.h
mkdir -p include/asm-arm/
CHK include/linux/utsrelease.h
UPD include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
gcc: error trying to exec 'cc1': execvp: No such file or directory
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
net Kernel Build Completed Sucessfully. Documentation

Please help me in resolving this issue

Regards,
Manin

Chris Stratton

unread,
Sep 10, 2009, 7:11:34 PM9/10/09
to android-porting
gcc is not installed in all its pieces or they are not in your path or
the proper variables have not been pointed to the proper versions by
the config process. Note that the build process likely requires both
a normal installation of gcc to produce executables for your
development machine, and a cross compile version to produce
executables for the android device. Welcome to life as an embedded
linux developer ; -)
Reply all
Reply to author
Forward
0 new messages