Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

Genkernel Fails

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
21 posts • Page 1 of 1
Author
Message
Leviahtan
n00b
n00b
Posts: 19
Joined: Sun Feb 15, 2004 10:18 pm

Genkernel Fails

  • Quote

Post by Leviahtan » Thu Jan 06, 2005 5:25 am

Im getting this error when genkernel is about 40min in....

gcc -D__KERNEL__ -I/usr/src/linux-2.4.28/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE -I../../scsi/ -nostdinc -iwithprefix include -DKBUILD_BASENAME=shuttle_usbat -c -o shuttle_usbat.o shuttle_usbat.c
aty128fb.c: In function `aty128fb_ioctl':
aty128fb.c:2485: warning: unused variable `fb'
aty128fb.c:2486: warning: unused variable `value'
aty128fb.c:2487: warning: unused variable `rc'
aty128fb.c: At top level:
aty128fb.c:1066: warning: `aty128_set_crt_enable' defined but not used
aty128fb.c:1076: warning: `aty128_set_lcd_enable' defined but not used
--
ld -r -o auerswald.o auerbuf.o auerchain.o auerchar.o auermain.o auerisdn.o auerisdn_b.o
make[2]: Leaving directory `/usr/src/linux-2.4.28/drivers/usb'
make[1]: Leaving directory `/usr/src/linux-2.4.28/drivers'
* Gentoo Linux Genkernel; Version 3.1.0c

* ERROR: Failed to compile the "modules" target...

* -- End log... --

* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.

* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*

Any idea why this happens? I followed the install perfectly. I tried manually doing the kernel, but it fails as well. I'll post its error in a few minutes. Oh , that log file it says to refer to doesn't seem to exist.

Here's what happens when i do it manually

trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE -nostdinc -iwithprefix include -DKBUILD_BASENAME=dn_neigh -c -o dn_neigh.o dn_neigh.c
dn_neigh.c:584: error: `THIS_MODULE' undeclared here (not in a function)
dn_neigh.c:584: error: initializer element is not constant
dn_neigh.c:584: error: (near initialization for `dn_neigh_seq_fops.owner')
make[2]: *** [dn_neigh.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.28/net/decnet'
make[1]: *** [_modsubdir_decnet] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.28/net'
make: *** [_mod_net] Error 2

So... ideas? I might just start all over tomorrow.
Top
shade266
Guru
Guru
User avatar
Posts: 593
Joined: Wed Oct 29, 2003 1:01 am
Location: Internal

  • Quote

Post by shade266 » Thu Jan 06, 2005 4:58 pm

Please post the output of /var/log/genkernel.log
I've been away for a long time, bear with me.
Top
Leviahtan
n00b
n00b
Posts: 19
Joined: Sun Feb 15, 2004 10:18 pm

  • Quote

Post by Leviahtan » Thu Jan 06, 2005 11:10 pm

sry it took so long.
Yeah as I said earlier, it pointed to that log file but I looked there and it didn't exist! I also used the search button in gnome and it didnt find anything related to genkernel..... I'm just gonna have to start over today or tomorrow I guess. something got nice and messed up :(
Top
alexbuell
Guru
Guru
Posts: 503
Joined: Thu Jul 18, 2002 6:49 am
Location: "Hemp"shire, UK
Contact:
Contact alexbuell
Website

  • Quote

Post by alexbuell » Sat Jan 08, 2005 2:09 pm

shade266 wrote:Please post the output of /var/log/genkernel.log
I'm having the same problem, with gentoo-sources-2.4.28-r4. From the genkernel log, I've tracked it down to this:

gcc -D__KERNEL__ -I/usr/src/linux-2.4.28-gentoo-r4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=athlon-xp -DMODULE -nostdinc -iwithprefix include -DKBUILD_BASENAME=dn_neigh -c -o dn_neigh.o dn_neigh.c
dn_neigh.c:584: error: `THIS_MODULE' undeclared here (not in a function)
dn_neigh.c:584: error: initializer element is not constant
dn_neigh.c:584: error: (near initialization for `dn_neigh_seq_fops.owner')
make[2]: *** [dn_neigh.o] Error 1

I'm pretty sure this is probably a result of a patch gone wrong.

This happens on both of my PCs. I'm currently building the kernel with DECnet support switched off, I'll report back if this works.
Cheers,
Alex.

Linux - the best text adventure game ever.
Top
alexbuell
Guru
Guru
Posts: 503
Joined: Thu Jul 18, 2002 6:49 am
Location: "Hemp"shire, UK
Contact:
Contact alexbuell
Website

  • Quote

Post by alexbuell » Sun Jan 09, 2005 12:00 am

alexbuell wrote:
shade266 wrote:Please post the output of /var/log/genkernel.log
This happens on both of my PCs. I'm currently building the kernel with DECnet support switched off, I'll report back if this works.
I'm happy to report back, that turning off DECnet solved the non-compilation issue.

Just as I thought I was OK, they've released 2.4.28-r5... no sleep for the wicked.
Cheers,
Alex.

Linux - the best text adventure game ever.
Top
smouge
n00b
n00b
User avatar
Posts: 66
Joined: Wed Jan 22, 2003 8:26 am
Location: Oosterhout, the Netherlands

  • Quote

Post by smouge » Sun Jan 09, 2005 6:02 pm

Do the following: add the line:

#include <linux/module.h>

To dn_neigh.c
Can't think about anything funny to place here
Top
tgbrittai
n00b
n00b
Posts: 4
Joined: Wed Jun 16, 2004 11:33 am

Re: Genkernel Fails

  • Quote

Post by tgbrittai » Thu Jan 20, 2005 6:55 pm

I just ran into this issue myself using genkernel. This fixed it for me.
Leviahtan wrote:Im getting this error when genkernel is about 40min in....
aty128fb.c: In function `aty128fb_ioctl':
aty128fb.c:2485: warning: unused variable `fb'
aty128fb.c:2486: warning: unused variable `value'
aty128fb.c:2487: warning: unused variable `rc'
aty128fb.c: At top level:
aty128fb.c:1066: warning: `aty128_set_crt_enable' defined but not used
aty128fb.c:1076: warning: `aty128_set_lcd_enable' defined but not used
I'm using gentoo-sources 2.4.28-r5 and genkernel 3.1.0c

Code: Select all

genkernel --menuconfig all
De-select the following:

Code: Select all

Console drivers  --->
Frame-buffer support  --->
< >   ATI Mach64 display support (EXPERIMENTAL)
< >   ATI Radeon display support (EXPERIMENTAL)
< >   ATI Rage128 display support (EXPERIMENTAL)
Of course, if you have an ATI card this doesn't help much :(
Top
Akhouk
Guru
Guru
User avatar
Posts: 476
Joined: Fri May 23, 2003 9:09 am
Location: The Two Niles, Africa
Contact:
Contact Akhouk
Website

  • Quote

Post by Akhouk » Fri Jan 21, 2005 2:01 pm

smouge wrote:Do the following: add the line:

#include <linux/module.h>

To dn_neigh.c
That worked fine for me. Thanks ;)
AMD 64 3500+, 2Gb RAM DDR400, 2 x 180Gb SATA, 256Mb Nvidia
Top
gentoo409
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 80
Joined: Wed Aug 04, 2004 6:23 pm

  • Quote

Post by gentoo409 » Sat Jan 22, 2005 12:00 am

I'm having this problem as well. Genkernel 3.1.0c not compiling using "genkernel all" and gentoo kernel 2.4.28-gentoo-r5. Says it "failed to compile the modules target" and then dies. Fails to create initrd and the /lib/modules directory. Happening on two system I have and this never happened on them before when I used 2004.2 - totally baffled.
Top
elak
n00b
n00b
User avatar
Posts: 2
Joined: Tue Jan 25, 2005 5:00 pm

  • Quote

Post by elak » Tue Jan 25, 2005 5:50 pm

Is this not happening to everyone with this release (2.4.28-gentoo-r5)? I got the same error last night. I tried checking out bugs.gentoo.org, but I could not find it listed in there. I used "ALL failed compile modules target" and zero results. :(

I will try adding that include tonight and recompile, but I would like to understand more about how this happened in general.

Thanks. :wink:
Top
hdok
n00b
n00b
User avatar
Posts: 18
Joined: Wed Jun 12, 2002 10:46 am
Location: Venlo, The Netherlands
Contact:
Contact hdok
Website

  • Quote

Post by hdok » Tue Jan 25, 2005 9:00 pm

I have the exact same problem on 2.4.28-gentoo-r5. So it is seems related to this kernel.

Did a

Code: Select all

genkernel --menuconfig all 
and made sure that decnet module is switched off (not build)
Then it works just fine.
Dries.
You can have it fast, cheap or correct: pick 2
Top
mantralapse
n00b
n00b
Posts: 17
Joined: Fri Jan 21, 2005 9:05 pm
Location: The Underworld
Contact:
Contact mantralapse
Website

this happened to me

  • Quote

Post by mantralapse » Tue Jan 25, 2005 9:59 pm

if you used a downloaded stage off the internet make sure you downloaded it to the /mnt/gentoo directory

if you hit alt+F2 or whatever and open up a new area (F1, F2, F3, etc) make sure you switch to the correct directory BEFORE loading links...

Code: Select all

cd /mnt/gentoo

Code: Select all

links2 http://www.gentoo.org/main/en/mirrors.xml 

then just load up links2, download, then emerge... and then genkernel should work fine since everything will be in the right spot....

thats IF this is what you did by accident....

hope this helps,

mantra[/b]
*-Computer are like air-conditioners, they don't work when you open windows.

*-There are only 10 kinds of people in the world, those who know binary and those who don't.
Top
hdok
n00b
n00b
User avatar
Posts: 18
Joined: Wed Jun 12, 2002 10:46 am
Location: Venlo, The Netherlands
Contact:
Contact hdok
Website

Re: this happened to me

  • Quote

Post by hdok » Wed Jan 26, 2005 8:28 am

mantralapse wrote:if you used a downloaded stage off the internet make sure you downloaded it to the /mnt/gentoo directory

if you hit alt+F2 or whatever and open up a new area (F1, F2, F3, etc) make sure you switch to the correct directory BEFORE loading links...

Code: Select all

cd /mnt/gentoo

Code: Select all

links2 http://www.gentoo.org/main/en/mirrors.xml 

then just load up links2, download, then emerge... and then genkernel should work fine since everything will be in the right spot....

thats IF this is what you did by accident....

hope this helps,

mantra[/b]
Mantra,

I do not quite understand your reply. What is it you think we did wrong (or let's say less optimal :D )

Because indeed I did use a stage of the net (stage3) but:
both the kernel and genkernel are emerge'd inside the chroot-ed enviroment.

Are you saying that in the previous steps we unpacked the stage....gz at the wrong location because then I would suspect more things would fail and all of the solutions described above would not work at all.

So if you could please clarify it would be appreciated.
Dries.
You can have it fast, cheap or correct: pick 2
Top
Chr!s
n00b
n00b
Posts: 35
Joined: Wed Jan 26, 2005 11:48 pm

  • Quote

Post by Chr!s » Fri Jan 28, 2005 8:35 am

I have the same problem... My genkernel aborts with


aty128fb.c: In function `aty128fb_ioctl':
aty128fb.c:2485: warning: unused variable `fb'
aty128fb.c:2486: warning: unused variable `value'
aty128fb.c:2487: warning: unused variable `rc'
aty128fb.c: At top level:
aty128fb.c:1066: warning: `aty128_set_crt_enable' defined but not used
aty128fb.c:1076: warning: `aty128_set_lcd_enable' defined but not used
folloed from
* CMD_DEBUGLEVEL: 2
* CMD_DEBUGFILE: /usr/kernel-komp.log
* DEBUGFILE: /usr/kernel-komp.log
* Gentoo Linux Genkernel; Version 3.1.0e^[[0m

* ERROR: Failed to compile the "modules" target...
* -- Grepping log... --
* -- End log... --
* Please consult /usr/kernel-komp.log for more information and any
* errors that were reported above.
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
That Hardware is in use:
Pentium III 500 MHz (Katmai)
256 MB RAM

Maybe there are more errors in the log...

My question to these users having this problem too... should I use the
include in dn_neigh.c or deselect decnet-modules (Whatever it is?!)?

Thx,
CHR!s
Top
Akhouk
Guru
Guru
User avatar
Posts: 476
Joined: Fri May 23, 2003 9:09 am
Location: The Two Niles, Africa
Contact:
Contact Akhouk
Website

  • Quote

Post by Akhouk » Fri Jan 28, 2005 11:07 am

Chr!s wrote: Maybe there are more errors in the log...

My question to these users having this problem too... should I use the
include in dn_neigh.c or deselect decnet-modules (Whatever it is?!)?
There seems to be two separate problems discussed in this thread.

1. The error messages you quote in your message refer to the ATI frame buffer support. tgbrittai, made a suggestion regarding that in his post.

2. The decnet driver. For this, you can either edit the file and put in the include statement at the top or just deselect it. Depends if you want/need it.

So I suggest you, de-select that ATI stuff and try again. If it fails on the decnet stuff then you could deselect that too. If you need the ATI framebuffer support then I am not sure what the fix is.

Happy hacking :)
AMD 64 3500+, 2Gb RAM DDR400, 2 x 180Gb SATA, 256Mb Nvidia
Top
hdok
n00b
n00b
User avatar
Posts: 18
Joined: Wed Jun 12, 2002 10:46 am
Location: Venlo, The Netherlands
Contact:
Contact hdok
Website

  • Quote

Post by hdok » Fri Jan 28, 2005 12:23 pm

Once a module fails, compilation does not end immediately. It waits for the rest to finish.

So it fails on dn_neigh but then continues to compile the modules it already started on (in this cae he ATI one).

None of the ATI module log snippets posted here contains any errors: just warnings. Have a look at the first post: log that contains warnings on ATI but
the actual error is in dn_neigh

So I think we are not talking about 2 problems.

If I was to choose between the 2 fixes (add the header file or disable dec-net module I would choose only to add the header if you really need decnet).

Cheers,
Dries.
You can have it fast, cheap or correct: pick 2
Top
Akhouk
Guru
Guru
User avatar
Posts: 476
Joined: Fri May 23, 2003 9:09 am
Location: The Two Niles, Africa
Contact:
Contact Akhouk
Website

  • Quote

Post by Akhouk » Fri Jan 28, 2005 2:19 pm

Yes, hdok, I think you are right. Probably, Chr!s, if you compile the source manually you will find it is bunking out on the same dec-net module. It was tgbrittai comment that threw me as he thought he had fixed it by deselecting the ATI stuff.
AMD 64 3500+, 2Gb RAM DDR400, 2 x 180Gb SATA, 256Mb Nvidia
Top
Chr!s
n00b
n00b
Posts: 35
Joined: Wed Jan 26, 2005 11:48 pm

  • Quote

Post by Chr!s » Sat Jan 29, 2005 10:55 am

Thx for help.

I decided to use the 2.6 Kernel and used a nice Kernel-Guide I 've found
in some Threads:

http://linuxforen.de/forums/showthread.php?t=161878

Now I have some other problems... but these u will read in next 5 min. in
annother thread...
Top
da-flow
n00b
n00b
User avatar
Posts: 32
Joined: Thu Jan 27, 2005 10:39 pm
Location: in the darkest corner of my space
Contact:
Contact da-flow
Website

  • Quote

Post by da-flow » Wed Feb 02, 2005 2:54 pm

Hi ppl,
i have got exactly the same problem

Cant compile modules target...

"and made sure that decnet module is switched off (not build)
Then it works just fine." how can i solve the points you mentioned switch off that decnet module :?: (sorry im a total noob)

Do the following: add the line:

#include <linux/module.h>

To dn_neigh.c

//where should i add the lines :?:

thx in advance,
da-flow
Top
occamslawnmower
n00b
n00b
Posts: 1
Joined: Wed Feb 02, 2005 10:23 pm

  • Quote

Post by occamslawnmower » Wed Feb 02, 2005 10:30 pm

da-flow wrote:Do the following: add the line:

#include <linux/module.h>

To dn_neigh.c

//where should i add the lines :?:

thx in advance,
da-flow
Assuming your source is in linux-2.4.28-gentoo-r5, add that line to about the 25th line of:

/usr/src/linux-2.4.28-gentoo-r5/net/decnet/dn_neigh.c

Right around the other include statements is fine.
Top
mtuck99
n00b
n00b
Posts: 1
Joined: Fri Feb 18, 2005 12:26 pm

Genkernel Error

  • Quote

Post by mtuck99 » Fri Feb 18, 2005 12:28 pm

Hi im getting the same error as most people about the kernel target modules.
I am a very new user and am not familiar with any commands, i was wondering if someone could tell me step by step to fix it, without disabling the ATI drivers.
Thanks
Top
Post Reply

21 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy