Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
issue on kernel compilation
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7101

PostPosted: Tue Jun 23, 2015 1:34 pm    Post subject: Reply with quote

genoobish wrote:

you have to check yourself whether it's there or not. if you can't find it there it means your kernel is not configured to place the config file in /proc/, so you have to look in, /usr/src/linux on in /boot/. Since the /proc/ directory is populated when you boot into your linux, it's the only way you can be sure the configuration is the exact one as to the kernel that is loaded (but since you're using genkernel it's unlikely you messed around with the configuration file anyways).

But please, don't ignore the fact that you have made a mess of a thread and clean it so people don't get pissed off for trying to help you because it makes their eyes bleed!

Sure he didn't manage to find the best way to query help, but i don't think you should also be proud of how you are trying to teach him.
For your information, /proc isn't populate when you boot your kernel ONLY. If he use it as module its /proc/config.gz will never appears until it load the module.
Back to top
View user's profile Send private message
genoobish
n00b
n00b


Joined: 18 Feb 2015
Posts: 73

PostPosted: Tue Jun 23, 2015 1:42 pm    Post subject: Reply with quote

krinn wrote:
genoobish wrote:

you have to check yourself whether it's there or not. if you can't find it there it means your kernel is not configured to place the config file in /proc/, so you have to look in, /usr/src/linux on in /boot/. Since the /proc/ directory is populated when you boot into your linux, it's the only way you can be sure the configuration is the exact one as to the kernel that is loaded (but since you're using genkernel it's unlikely you messed around with the configuration file anyways).

But please, don't ignore the fact that you have made a mess of a thread and clean it so people don't get pissed off for trying to help you because it makes their eyes bleed!

Sure he didn't manage to find the best way to query help, but i don't think you should also be proud of how you are trying to teach him.
For your information, /proc isn't populate when you boot your kernel ONLY. If he use it as module its /proc/config.gz will never appears until it load the module.

thks for you clarification. I was trying to be emphatic, since he only cared about demanding help and didn't care about any of the posts telling him how to ask for help, where to look for the relevant files, and which commands to use. But I shouldn't have cared, and should just have left him to be forgotten by the people who could help him 'if' he posted reasonably. Next time I wont try to help. I know there are much more experienced users to do so in a gentile and docile way.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7101

PostPosted: Tue Jun 23, 2015 1:55 pm    Post subject: Reply with quote

genoobish wrote:
Next time I wont try to help. I know there are much more experienced users to do so in a gentile and docile way.

Don't act like a kid, you look like you get caught hand in pot, and now you're going in the corner...
Being gentile and docile has nothing to do with experience, and it's also the same for hostility.
Back to top
View user's profile Send private message
genoobish
n00b
n00b


Joined: 18 Feb 2015
Posts: 73

PostPosted: Tue Jun 23, 2015 1:59 pm    Post subject: Reply with quote

krinn wrote:
genoobish wrote:
Next time I wont try to help. I know there are much more experienced users to do so in a gentile and docile way.

Don't act like a kid, you look like you get caught hand in pot, and now you're going in the corner...
Being gentile and docile has nothing to do with experience, and it's also the same for hostility.

Do you really think this is a relevant discussion in this thread ? I'm sure OP would rather have you helping him than white knighting.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7101

PostPosted: Tue Jun 23, 2015 2:35 pm    Post subject: Reply with quote

genoobish wrote:
Do you really think this is a relevant discussion in this thread ? I'm sure OP would rather have you helping him than white knighting.

I think it was, as my personal empathy is not the same as yours, as trying to feel what this user was feeling, i was more feeling mathabstrction was thinking "why the hell he is bugging me like that".

I don't think he need my help, as you finally manage to answer him (.config should be in /usr/src/linux). I don't think you weren't helping him, just you could had done it, more kindly.
And NeddySeagoon is there already, and any gentoo users couldn't be more luckier than having NeddySeagoon presence in his thread.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Tue Jun 23, 2015 2:37 pm    Post subject: Reply with quote

Every one who is asking for help should make it as easy as possible. It so happens this is completely true - all of it.
Also, asking simple questions and waiting for response (which may not come) instead of Googling ... I tried and it didn't take long (a few minutes) to find the answer - /usr/src/linux/.config.
Back to top
View user's profile Send private message
mathabstrction
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 211

PostPosted: Wed Jun 24, 2015 3:33 am    Post subject: Reply with quote

genoobish wrote:
mathabstrction wrote:
Quote:

For example,
Code:
zcat /proc/config.gz | wgetpaste
cat /proc/config | wgetpaste
cat /var/log/genkernel.log | wgetpaste
(also, see the code tags in use above, and how pretty it looks when they are in use).
Nobody is going to help you any further if you don't do your job and help them help you by posting your stuff in a readable fashion.

Don't you have seen my question?
where is the kernel .config file as you say?
is it under the /usr/src/linux?

well.. I'm starting to think you're trolling because the answer is too obvious. And even though you claimed to have read it, you have not edited your crap that makes this page scroll down all the way to china. That is iimportant and you seem to ignore.
depending on your configuration you might find the kernel config in
Code:
 /proc/config
or /proc/config.gz

you have to check yourself whether it's there or not. if you can't find it there it means your kernel is not configured to place the config file in /proc/, so you have to look for it in /boot/ (I don't know whether genkernel uses /usr/src/linux or some other direcotry). Since the /proc/ directory is populated when you boot into your linux, it's the only way you can be sure the configuration is the exact one as to the kernel that is loaded (but since you're using genkernel it's unlikely you messed around with the configuration file anyways).

But please, don't ignore the fact that you have made a mess of a thread and clean it up so people don't get pissed off for trying to help you because it makes their eyes bleed!
.
"... the answer is too obvious..."
why i saw config files of kernel version 3.18.12 after i entered #less /proc/config.gz
Back to top
View user's profile Send private message
genoobish
n00b
n00b


Joined: 18 Feb 2015
Posts: 73

PostPosted: Wed Jun 24, 2015 4:33 am    Post subject: Reply with quote

Quote:

why i saw config files of kernel version 3.18.12 after i entered #less /proc/config.gz

why i saw config files of had booted from the kernel you wanted to compile... :O makes no sense right? thread too messy, messed with my head. and if you start making these huge quote trees its only gonna get worse. why you feel so entitled to demand help is beyond me. just get the damn thing from the /usr/src/ and paste it already(in an appropriate fashion). What do you want to achieve with this thread? think about it and act on it. stop acting stupid.
edit:
(and gess what.. you are allowed to edit stuff you posted earlier in the forums. you're being selfish by posting that shit; nobody will ever be able to learn from whatever your problem is. yes.. people google stuff and find answers in threads without having to create new duplicate content--that's what interent forums are for.. learning. but if you post crap, you can only get crap back.)
Back to top
View user's profile Send private message
mathabstrction
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 211

PostPosted: Mon Jun 29, 2015 10:28 am    Post subject: Reply with quote

why i saw config files of had booted from the kernel you wanted to compile...
NOTICE: The kernel which I wanted to compile is in version 4.0.5, not 3.18.12!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43585
Location: 56N 3W

PostPosted: Mon Jun 29, 2015 8:48 pm    Post subject: Reply with quote

mathabstrction,

/proc/config.gz is from the running kernel, not the kernel that failed to compile.
.config is at the top of your kernel source tree. Often but not always that's /usr/src/linux

In your case, as you used genkernel and genkernel operates on the kernel at /usr/src/linux, its /usr/src/linux/.config we need to see on a pastebin.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
mathabstrction
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 211

PostPosted: Fri Jul 03, 2015 12:57 am    Post subject: Reply with quote

bpaste.net/show/03e6eb23c96f
Back to top
View user's profile Send private message
mathabstrction
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 211

PostPosted: Fri Jul 03, 2015 9:58 am    Post subject: Reply with quote

mathabstrction wrote:
bpaste.net/show/03e6eb23c96f

this is the content in the /usr/src/linux/.config.
Back to top
View user's profile Send private message
mathabstrction
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 211

PostPosted: Sun Jul 05, 2015 9:54 pm    Post subject: Reply with quote

bpaste.net/show/a3bc629c82a1
genkernel.log
Back to top
View user's profile Send private message
mathabstrction
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 211

PostPosted: Mon Jul 06, 2015 9:52 am    Post subject: Reply with quote

bpaste.net/show/b265aa38fa69
genkernel.log
Back to top
View user's profile Send private message
mathabstrction
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 211

PostPosted: Mon Jul 06, 2015 3:22 pm    Post subject: Reply with quote

why no one answered till now?
Back to top
View user's profile Send private message
mathabstrction
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 211

PostPosted: Wed Jul 08, 2015 4:05 am    Post subject: Reply with quote

which terms should be corrected in configuration while running genkernel?
Back to top
View user's profile Send private message
jburns
Veteran
Veteran


Joined: 18 Jan 2007
Posts: 1053
Location: Massachusetts USA

PostPosted: Wed Jul 08, 2015 5:45 am    Post subject: Reply with quote

Your .config should contain
Code:
CONFIG_GENERIC_STRNCPY_FROM_USER=y
but it is missing. It is set when CONFIG_X86 is set which is set in the .config file.
Back to top
View user's profile Send private message
mathabstrction
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 211

PostPosted: Wed Jul 08, 2015 6:23 am    Post subject: Reply with quote

thanks, i will have a experiment later.
Back to top
View user's profile Send private message
mathabstrction
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 211

PostPosted: Wed Jul 08, 2015 6:52 am    Post subject: Reply with quote

jburns wrote:
Your .config should contain
Code:
CONFIG_GENERIC_STRNCPY_FROM_USER=y
but it is missing. It is set when CONFIG_X86 is set which is set in the .config file.

how to set CONFIG_GENERIC_STRNCPY_FROM_USER=y ? i can't find it.
Back to top
View user's profile Send private message
mathabstrction
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 211

PostPosted: Wed Jul 08, 2015 7:13 am    Post subject: Reply with quote

here is x86_64, not x86.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43585
Location: 56N 3W

PostPosted: Wed Jul 08, 2015 12:30 pm    Post subject: Reply with quote

jburns,

Well caught!

mathabstrction,

The help says,
Code:
  │ Symbol: GENERIC_STRNCPY_FROM_USER [=y]         │ 
  │ Type  : boolean                                │ 
  │   Defined at lib/Kconfig:27                    │ 
  │   Selected by: X86 [=y] 

x86 sometimes means 32 bit Intel/AMD processors and sometimes both 32 bit and 64 Intel/AMD processors. For the kernel, it means both.

The help for X86 says
Code:
  │ Symbol: X86 [=y]                                                        │ 
  │ Type  : boolean                                                         │ 
  │   Defined at arch/x86/Kconfig:23

Neither of those options is directly user selectable.

CONFIG_X86=y is set which forces on GENERIC_STRNCPY_FROM_USER too. The latter is missing from your .config file.
That means its corrupt. This only seems to be a problem for you, so genkernel is probably OK.
If you edited the .config file by hand, don't do it again. If its the config file provided by genkernel, delete the genkernel tarball from /usr/portage/disfiles.
Delete the content of /usr/portage/sys-kernel/genkernel
Code:
emerge --sync
to fix your tree.
Code:
emerge genkernel
to fetch the genkernel package and rebuild it.

Now try rebuilding your kernel.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
mathabstrction
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 211

PostPosted: Thu Jul 09, 2015 4:08 am    Post subject: Reply with quote

thanks to you all!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum