FORUMS
Remove All Ads from XDA

[QUESTION] about kernel compilation

341 posts
Thanks Meter: 354
 
By coloured_chalk, Senior Member on 8th August 2012, 03:43 PM
Post Reply Email Thread
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)
Quote:

[[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 ...
  • .config I got from phone via "adb pull /proc/config.gz".
  • about $CCOMPILER variable :
    Quote:

    [[email protected] KangBanged-7x30]$ echo $CCOMPILER
    /usr/bin/arm-none-eabi-
    [[email protected] KangBanged-7x30]$ whereis arm-none-eabi-gcc
    arm-none-eabi-gcc: /usr/bin/arm-none-eabi-gcc

  • kernel source from KangBangKreations.
8th August 2012, 09:02 PM |#2  
coloured_chalk's Avatar
OP Senior Member
Flag Volgograd
Thanks Meter: 354
 
More
Talking LOL
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.
The Following 6 Users Say Thank You to coloured_chalk For This Useful Post: [ View ] Gift coloured_chalk Ad-Free
6th December 2014, 11:19 PM |#3  
Junior Member
Flag Cincinnati
Thanks Meter: 1
 
More
Quote:
Originally Posted by coloured_chalk

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
The Following User Says Thank You to thejakehemmerle For This Useful Post: [ View ] Gift thejakehemmerle Ad-Free
17th June 2018, 01:11 PM |#4  
Junior Member
Flag Plauen
Thanks Meter: 0
 
More
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..
22nd June 2018, 01:33 PM |#5  
Junior Member
Flag Almaty
Thanks Meter: 2
 
More
Quote:
Originally Posted by Inf.Lagranty

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
13th October 2019, 05:26 PM |#6  
kkbs4u's Avatar
Senior Member
Flag Pune
Thanks Meter: 34
 
Donate to Me
More
Help Please how to compiling kernel from source
Quote:
Originally Posted by thejakehemmerle

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
Attached Files
File Type: txt error.txt - [Click for QR Code] (4.8 KB, 4 views)
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes