View previous topic :: View next topic |
Author |
Message |
AleksandrSS n00b
Joined: 17 Jul 2015 Posts: 6
|
Posted: Mon Aug 31, 2015 11:54 am Post subject: [Solved mysteriously] Kernel don't compile |
|
|
Hi everybody.
I'm in the installing of a server with hardened-sources. At this moment, I can't compile the kernel.
I tried with the 4.1.6-hardened. When make reach this line:
CHK include/generated/compile.h
I get this error:
usr/Makefile:64: *** target pattern contains no '%'. Stop.
make: *** [usr] Error 2
The only way I found to solve this problem is unmerge the source and reemerge. This is not a comfortable way to to the things and take a lot of time. So I tried the unstable version of the sources, 4.1.6-hardened-r1. I get exactly the same problem. I tried to clean with "make clean" and:
usr/Makefile:64: *** target pattern contains no '%'. Stop.
Makefile:1271:recipe for target '_clean_usr' failed
make: *** [_clean_usr] Error 2
I didn't found in google any way to solve this problem and work for me. Any help? Thanks
Last edited by AleksandrSS on Thu Sep 03, 2015 6:13 pm; edited 1 time in total |
|
Back to top |
|
|
Keruskerfuerst Advocate
Joined: 01 Feb 2006 Posts: 2289 Location: near Augsburg, Germany
|
Posted: Mon Aug 31, 2015 3:56 pm Post subject: |
|
|
Seems to be a kernel bug.
Submit a report. |
|
Back to top |
|
|
chithanh Developer
Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
Posted: Mon Aug 31, 2015 4:02 pm Post subject: |
|
|
You can use "make mrproper" to remove everything including the kernel .config.
In case the files in your kernel tree were maybe corrupted, use "equery check gentoo-sources" to find out which (if any) were modified since installing the package. |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Mon Aug 31, 2015 4:17 pm Post subject: Re: Kernel don't compile |
|
|
AleksandrSS wrote: | usr/Makefile:64: *** target pattern contains no '%'. Stop.
make: *** [usr] Error 2 |
Sorry, nobody can help you because nobody could know your problem as you didn't gave the error.
It's easy:
- Error 1 : cannot build the car
- Error 2 : cannot use the car
Knowing you cannot use the car is not of any help, you cannot use the car because you cannot build the car, what is important is "why i cannot build the car" : and the answer to this is just next to Error1.
Use pastebin or other similar website to gave the full log. Or copy/paste here 5-10 lines upto when you see Error 1 (some | grep -B10 "Error 1") |
|
Back to top |
|
|
Keruskerfuerst Advocate
Joined: 01 Feb 2006 Posts: 2289 Location: near Augsburg, Germany
|
Posted: Mon Aug 31, 2015 4:28 pm Post subject: |
|
|
No, it´s not:
1. can´t build the car
2. can´t use the car
It´s:
1. can´t build Gentoo
2. can´t use the computer
I think it´s clear now. |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3922 Location: Hamburg
|
Posted: Mon Aug 31, 2015 5:00 pm Post subject: |
|
|
what does Code: | make mrproper; make defconfig; make | give ? |
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Tue Sep 01, 2015 4:28 pm Post subject: |
|
|
What are the contents of line 64 of the Makefile giving the error?
Will |
|
Back to top |
|
|
AleksandrSS n00b
Joined: 17 Jul 2015 Posts: 6
|
Posted: Thu Sep 03, 2015 4:19 pm Post subject: |
|
|
I return today to my house, installed 2 additional GB (I don't think this is related but is the only change I did) and try again to compile... and work fine.
No idea what happened, but thanks everybody. |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3922 Location: Hamburg
|
Posted: Thu Sep 03, 2015 4:55 pm Post subject: |
|
|
AleksandrSS wrote: | installed 2 additional GB (I don't think this is related but is the only change I did) | Did you run make with "-jX" with X>1 ? |
|
Back to top |
|
|
AleksandrSS n00b
Joined: 17 Jul 2015 Posts: 6
|
Posted: Thu Sep 03, 2015 5:03 pm Post subject: |
|
|
toralf wrote: | Did you run make with "-jX" with X>1 ? |
I tried with make -j2 (my usual make), make -j1 and make, any of them worked. And computer had 1 GB of RAM and 2GB of SWAP (Now it has 3GB of RAM and 2GB of SWAP) |
|
Back to top |
|
|
|