Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error in the first kernel compilation during installation
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
el_Salmon
Guru
Guru


Joined: 15 Dec 2003
Posts: 328
Location: Around 2.4GHz

PostPosted: Sat Jun 15, 2013 6:44 pm    Post subject: Error in the first kernel compilation during installation Reply with quote

Hi,

I'm trying to install Gentoo in my laptop. I have chrooted from an OpenSuse installation and compiled a kernel from Gentoo but I got an error:

Code:
$make && make modules_install

...
 LD      init/built-in.o
fs/built-in.o: In function `nfs_dns_resolve_name':
(.text+0x1170cc): undefined reference to `dns_query'
make: *** [vmlinux] Error 1

Any idea?
_________________
Gentoo Linux Proud User: HP Pavilion dv6-6b11ss laptop (amd64)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Jun 15, 2013 7:00 pm    Post subject: Reply with quote

el_Salmon,

Your error is related to a piece of the kernel used for Network File System.
The linker is trying to resolve a symbol called dns_query, which is probably provided by a kernel option you have not selected.

You can grep the entire kernel for dns_query and when you find where its defined, turn on that option, or if you do not need NFS, you can turn off NFS support in the 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
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1242
Location: 42.68n 85.41w

PostPosted: Sat Jun 15, 2013 7:00 pm    Post subject: Reply with quote

id pull down kernel.org's 3.9.6, and follow manual kernel compilation wiki from gentoo. dont forget to include your sata, pata controllers & file system, & definitely compile in DEVTMPFS!!!!
_________________
cat /etc/*-release
Funtoo Linux - baselayout 2.2.0
consider this warning no. 1
https://wiki.gentoo.org/index.php?title=Special:Contributions/666threesixes666&offset=&limit=500&target=666threesixes666
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Jun 15, 2013 7:03 pm    Post subject: Reply with quote

666threesixes666,

kernel.orgs kernels are gentoos vanillia-sources.
The latter has the advantage that portage keeps track of things.

This problem looks like it may be a kernel bug, as the kernel tries to force on options that other options need.
_________________
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
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4745
Location: Saint Amant, Acadiana

PostPosted: Sat Jun 15, 2013 7:05 pm    Post subject: Reply with quote

It could be also corruption of sources or .config file. If the problem persists I'd rm kernel sources and start from scratch.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
aCOSwt
Moderator
Moderator


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Sat Jun 15, 2013 7:37 pm    Post subject: Reply with quote

el_Salmon wrote:
Code:

(.text+0x1170cc): undefined reference to `dns_query'make: *** [vmlinux] Error 1

Any idea?

:idea:
Hmmmm... tell us the truth first... it's a git-sources-3.10-rc5, isn't it ?
_________________


Last edited by aCOSwt on Sat Jun 15, 2013 8:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1242
Location: 42.68n 85.41w

PostPosted: Sat Jun 15, 2013 8:00 pm    Post subject: Reply with quote

"kernel bug" my thoughts exactly...
_________________
cat /etc/*-release
Funtoo Linux - baselayout 2.2.0
consider this warning no. 1
https://wiki.gentoo.org/index.php?title=Special:Contributions/666threesixes666&offset=&limit=500&target=666threesixes666
Back to top
View user's profile Send private message
el_Salmon
Guru
Guru


Joined: 15 Dec 2003
Posts: 328
Location: Around 2.4GHz

PostPosted: Mon Jun 17, 2013 6:11 pm    Post subject: Reply with quote

aCOSwt wrote:
el_Salmon wrote:
Code:

(.text+0x1170cc): undefined reference to `dns_query'make: *** [vmlinux] Error 1

Any idea?

:idea:
Hmmmm... tell us the truth first... it's a git-sources-3.10-rc5, isn't it ?

No, it's the last gentoo-sources:
Code:
emerge -pv gentoo-sources

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-kernel/gentoo-sources-3.8.13:3.8.13  USE="-build -deblob -symlink" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

I will try to remove .config and to start config from zero but it needs quite effort.
_________________
Gentoo Linux Proud User: HP Pavilion dv6-6b11ss laptop (amd64)
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6715
Location: Goose Creek SC

PostPosted: Mon Jun 17, 2013 6:54 pm    Post subject: Reply with quote

http://kernel-seeds.org/ minimize the effort, maximize the result
_________________
Defund the FCC.
Back to top
View user's profile Send private message
el_Salmon
Guru
Guru


Joined: 15 Dec 2003
Posts: 328
Location: Around 2.4GHz

PostPosted: Mon Jun 17, 2013 9:38 pm    Post subject: Reply with quote

Thanks a lot for the advices.
Code:
make mrproper
solves the issue
_________________
Gentoo Linux Proud User: HP Pavilion dv6-6b11ss laptop (amd64)
Back to top
View user's profile Send private message
aCOSwt
Moderator
Moderator


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Mon Jun 17, 2013 10:05 pm    Post subject: Reply with quote

el_Salmon wrote:
Code:
make mrproper
solves the issue
8O
Do you mean you removed your custom .config ? :?
Out of curiosity, how had you made it ?
_________________
Back to top
View user's profile Send private message
TomWij
Developer
Developer


Joined: 04 Jul 2012
Posts: 1551

PostPosted: Mon Jun 17, 2013 10:50 pm    Post subject: Reply with quote

666threesixes666 wrote:
"kernel bug" my thoughts exactly...


It was a bug, I would like to see the config to reproduce it and have this filed at https://bugs.gentoo.org such that I can keep track of it and look into it; but well, the config is likely gone now... :(

As far as I see, this forum topic itself is the only occurence of it on the internet.
Back to top
View user's profile Send private message
el_Salmon
Guru
Guru


Joined: 15 Dec 2003
Posts: 328
Location: Around 2.4GHz

PostPosted: Tue Jun 18, 2013 7:49 am    Post subject: Reply with quote

Code:
Do you mean you removed your custom .config ? :?
Out of curiosity, how had you made it ?

Code:
but well, the config is likely gone now... :(
No, I keep it. I did a "mv .config .config-bad" before "make mrproper". If I have enough time, I will submit a bug to Gentoo.
_________________
Gentoo Linux Proud User: HP Pavilion dv6-6b11ss laptop (amd64)
Back to top
View user's profile Send private message
TomWij
Developer
Developer


Joined: 04 Jul 2012
Posts: 1551

PostPosted: Tue Jun 18, 2013 8:11 am    Post subject: Reply with quote

el_Salmon wrote:
If I have enough time, I will submit a bug to Gentoo.


If not, then feel free to upload the config.
Back to top
View user's profile Send private message
el_Salmon
Guru
Guru


Joined: 15 Dec 2003
Posts: 328
Location: Around 2.4GHz

PostPosted: Tue Jun 18, 2013 5:58 pm    Post subject: Reply with quote

TomWij wrote:
el_Salmon wrote:
If I have enough time, I will submit a bug to Gentoo.


If not, then feel free to upload the config.

No problem, the bug is submitted: 473724
_________________
Gentoo Linux Proud User: HP Pavilion dv6-6b11ss laptop (amd64)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
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