[QUESTION] about kernel compilation

coloured_chalk

Senior Member
Jul 31, 2012
341
352
0
Volgograd
Trying to compile kernel from sources. I now the process, and I do it not the first time - I have kernel on my desktop linux compiled from source ...

okay. the question is ... about errors from "make" (I changed locale to EN)
[[email protected] KangBanged-7x30]$ LANG=en_GB.UTF-8 ARCH=arm CROSS_COMPILE=$CCOMPILER make -j3
File "/home/melky/KERNEL/KangBanged-7x30/scripts/gcc-wrapper.py", line 76
print "error, forbidden warning:", m.group(2)
^
SyntaxError: invalid syntax
CHK include/linux/version.h
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
File "/home/melky/KERNEL/KangBanged-7x30/scripts/gcc-wrapper.py", line 76
print "error, forbidden warning:", m.group(2)
^
SyntaxError: invalid syntax
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....
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
What I'm doing wrong?

About config and other ...
 
Last edited:

thejakehemmerle

New member
Jun 9, 2014
4
1
0
Cincinnati
LOL! In Archlinux python is linked to python3. Just linked /usr/bin/python to /usr/bin/python2.7 and everything is going fine.

P.S. Sorry for doublepost.
I've been trying for HOURS to get the toolchain to work just to figure out it was ARCH LINUX. First time trying to build a kernel as well. You have saved me all the time in the world. I never would have figured this out.

Thank you,

Jake
 
  • Like
Reactions: Inf.Lagranty

Inf.Lagranty

New member
Dec 14, 2013
4
0
0
Plauen
thank you so much! i also would have never considered thinking in this direction..

but now im stuck on the correct linking command.

i tried ln -s /usr/bin/python /usr/bin/python2.7

and i tried exchanging the two paths.. none of them succeeded and im confused now.. could you pls help me?

sorry for this stupid question, i know this could not work, but i cant help myself finding the correct solution..
 
Last edited:

ac130kz

Member
Mar 25, 2015
25
2
3
Almaty
thank you so much! i also would have never considered thinking in this direction..

but now im stuck on the correct linking command.

i tried ln -s /usr/bin/python /usr/bin/python2.7

and i tried exchanging the two paths.. none of them succeeded and im confused now.. could you pls help me?

sorry for this stupid question, i know this could not work, but i cant help myself finding the correct solution..
I followed the tutorial from archwiki, works fine

Code:
mkdir ~/bin
ln -s /usr/bin/python2 ~/bin/python
ln -s /usr/bin/python2-config ~/bin/python-config
export PATH=~/bin:$PATH
 

kkbs4u

Senior Member
Aug 22, 2013
176
34
0
Pune
Help Please how to compiling kernel from source

I've been trying for HOURS to get the toolchain to work just to figure out it was ARCH LINUX. First time trying to build a kernel as well. You have saved me all the time in the world. I never would have figured this out.

Thank you,

Jake
i was try to compiling kernel from source but i got error where i am wrong

error log uploaded
 

Attachments