[Q] Help with kernel compiling

Sorry, if this is the wrong place to ask, but I am in need or dire assistance. I am a newbie to compiling kernels, more specifically android kernels. My build environment is:


Computer: Compaq Presario CQ57
CPU: AMD E-300 1.3 GHz dual core
RAM: 3 GB (upgraded from 2) DDR3 SDRAM
HDD: 250 GB
OS: Ubuntu 14.04.1 "Trusty Tahr" 64 bit


I downloaded my phone source from opensource.samsung.com. I have the SPH-L300 VMU variant. I followed the steps in the README file for compiling. The first time I added the Smartass governor, using tutorial. I also used all those steps, along with and I thought the gov. was the issue so I just compiled the stock kernel, following the README steps.
If you are wondering, the README steps states this:

Code:

################################################################################

1. How to Build - get Toolchain From android git server , codesourcery and etc .. - arm-eabi-4.4.3 - edit Makefile edit "CROSS_COMPILE" to right toolchain path(You downloaded). EX) export CROSS_COMPILE= $(android platform directory you download)/android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- Ex) export CROSS_COMPILE=/usr/local/toolchain/arm-eabi-4.4.3/bin/arm-eabi- // check the location of toolchain $ export ARCH=arm $ make gogh_defconfig $ make

2. Output files - Kernel : arch/arm/boot/zImage - module : drivers/*/*.ko

3. How to Clean $ make clean ################################################################################


After following those steps, I get this error:


Code:
:~/android/kernel/SPH-L300/Kernel$ export CROSS_COMPILE=/home/nick/NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- :~/android/kernel/SPH-L300/Kernel$ export ARCH=arm :~/android/kernel/SPH-L300/Kernel$ make gogh_defconfig HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.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 drivers/battery/Kconfig:126:warning: type of 'CHARGER_SMB347' redefined from 'boolean' to 'tristate' drivers/media/video/msm_zsl/Kconfig:117:warning: choice value used outside its choice group drivers/media/video/msm_zsl/Kconfig:122:warning: choice value used outside its choice group # # configuration written to .config # :~/android/kernel/SPH-L300/Kernel$ make -j3 Traceback (most recent call last): File "/home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-wrapper.py", line 110, in <module> status = run_gcc() File "/home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-wrapper.py", line 100, in run_gcc proc = subprocess.Popen(args, stderr=subprocess.PIPE) File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory scripts/kconfig/conf --silentoldconfig Kconfig drivers/battery/Kconfig:126:warning: type of 'CHARGER_SMB347' redefined from 'boolean' to 'tristate' drivers/media/video/msm_zsl/Kconfig:117:warning: choice value used outside its choice group drivers/media/video/msm_zsl/Kconfig:122:warning: choice value used outside its choice group Traceback (most recent call last): File "/home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-wrapper.py", line 110, in <module> status = run_gcc() File "/home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-wrapper.py", line 100, in run_gcc proc = subprocess.Popen(args, stderr=subprocess.PIPE) File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory CHK include/linux/version.h UPD include/linux/version.h CHK include/generated/utsrelease.h UPD include/generated/utsrelease.h HOSTCC scripts/genksyms/genksyms.o /home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-version.sh: line 25: /opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory /home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-version.sh: line 26: /opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory /home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-version.sh: line 25: /opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory /home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-version.sh: line 26: /opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory /home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-version.sh: line 25: /opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory /home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-version.sh: line 26: /opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory /home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-version.sh: line 25: /opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory /home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-version.sh: line 26: /opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory /home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-version.sh: line 25: /opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory /home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-version.sh: line 26: /opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory /home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-version.sh: line 25: /opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory /home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-version.sh: line 26: /opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory Generating include/generated/mach-types.h SHIPPED scripts/genksyms/lex.c SHIPPED scripts/genksyms/parse.h SHIPPED scripts/genksyms/keywords.c SHIPPED scripts/genksyms/parse.c HOSTCC scripts/genksyms/parse.o CC kernel/bounds.s CC scripts/mod/empty.o Traceback (most recent call last): File "/home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-wrapper.py", line 110, in <module> status = run_gcc() File "/home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-wrapper.py", line 100, in run_gcc proc = subprocess.Popen(args, stderr=subprocess.PIPE) File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory make[1]: *** [kernel/bounds.s] Error 1 make: *** [prepare0] Error 2 make: *** Waiting for unfinished jobs.... HOSTCC scripts/mod/mk_elfconfig Traceback (most recent call last): File "/home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-wrapper.py", line 110, in <module> status = run_gcc() File "/home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-wrapper.py", line 100, in run_gcc proc = subprocess.Popen(args, stderr=subprocess.PIPE) File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory make[2]: *** [scripts/mod/empty.o] Error 1 make[2]: *** Waiting for unfinished jobs.... HOSTCC scripts/kallsyms make[1]: *** [scripts/mod] Error 2 make[1]: *** Waiting for unfinished jobs.... HOSTCC scripts/genksyms/lex.o HOSTLD scripts/genksyms/genksyms make: *** [scripts] Error 2 :~/android/kernel/SPH-L300/Kernel$
Red= commands and outputs before make command


Any help is greatly appreciated. I also used Linaro 4.6, 4.6.8, 4.8, SaberMod 4.8, SDK, and NDK (both most recent). None of the toolchains helped with the error.

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by von.sonya
4 hours ago
Last post by qjenkins
2 hours ago
Last post by corwin.charley
1 hour ago
LG-E440
Started by letha52
Last post by zwelch
1 hour ago
Last post by ted.rowe
4 hours ago
Help
Started by yconsidine
Last post by memmerich
2 hours ago
Last post by hettie.terry
32 minutes ago
Last post by iroob
1 hour ago
Last post by patrick.turner
1 hour ago