Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Genkernel Fails
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
Leviahtan
n00b
n00b


Joined: 15 Feb 2004
Posts: 19

PostPosted: Thu Jan 06, 2005 5:25 am    Post subject: Genkernel Fails Reply with quote

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.
Back to top
View user's profile Send private message
shade266
Guru
Guru


Joined: 29 Oct 2003
Posts: 593
Location: Internal

PostPosted: Thu Jan 06, 2005 4:58 pm    Post subject: Reply with quote

Please post the output of /var/log/genkernel.log
_________________
I've been away for a long time, bear with me.
Back to top
View user's profile Send private message
Leviahtan
n00b
n00b


Joined: 15 Feb 2004
Posts: 19

PostPosted: Thu Jan 06, 2005 11:10 pm    Post subject: Reply with quote

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 :(
Back to top
View user's profile Send private message
alexbuell
Guru
Guru


Joined: 18 Jul 2002
Posts: 490
Location: "Hemp"shire, UK

PostPosted: Sat Jan 08, 2005 2:09 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
alexbuell
Guru
Guru


Joined: 18 Jul 2002
Posts: 490
Location: "Hemp"shire, UK

PostPosted: Sun Jan 09, 2005 12:00 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
smouge
n00b
n00b


Joined: 22 Jan 2003
Posts: 66
Location: Oosterhout, the Netherlands

PostPosted: Sun Jan 09, 2005 6:02 pm    Post subject: Reply with quote

Do the following: add the line:

#include <linux/module.h>

To dn_neigh.c
_________________
Can't think about anything funny to place here
Back to top
View user's profile Send private message
tgbrittai
n00b
n00b


Joined: 16 Jun 2004
Posts: 4

PostPosted: Thu Jan 20, 2005 6:55 pm    Post subject: Re: Genkernel Fails Reply with quote

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:
genkernel --menuconfig all


De-select the following:

Code:

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 :(
Back to top
View user's profile Send private message
Akhouk
Guru
Guru


Joined: 23 May 2003
Posts: 476
Location: The Two Niles, Africa

PostPosted: Fri Jan 21, 2005 2:01 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
gentoo409
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2004
Posts: 80

PostPosted: Sat Jan 22, 2005 12:00 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
elak
n00b
n00b


Joined: 25 Jan 2005
Posts: 2

PostPosted: Tue Jan 25, 2005 5:50 pm    Post subject: Reply with quote

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:
Back to top
View user's profile Send private message
hdok
n00b
n00b


Joined: 12 Jun 2002
Posts: 18
Location: Venlo, The Netherlands

PostPosted: Tue Jan 25, 2005 9:00 pm    Post subject: Reply with quote

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

Did a
Code:
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
Back to top
View user's profile Send private message
mantralapse
n00b
n00b


Joined: 21 Jan 2005
Posts: 17
Location: The Underworld

PostPosted: Tue Jan 25, 2005 9:59 pm    Post subject: this happened to me Reply with quote

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:
cd /mnt/gentoo

Code:
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.
Back to top
View user's profile Send private message
hdok
n00b
n00b


Joined: 12 Jun 2002
Posts: 18
Location: Venlo, The Netherlands

PostPosted: Wed Jan 26, 2005 8:28 am    Post subject: Re: this happened to me Reply with quote

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:
cd /mnt/gentoo

Code:
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
Back to top
View user's profile Send private message
Chr!s
n00b
n00b


Joined: 26 Jan 2005
Posts: 35

PostPosted: Fri Jan 28, 2005 8:35 am    Post subject: Reply with quote

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



Quote:

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

Quote:

* 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
Back to top
View user's profile Send private message
Akhouk
Guru
Guru


Joined: 23 May 2003
Posts: 476
Location: The Two Niles, Africa

PostPosted: Fri Jan 28, 2005 11:07 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
hdok
n00b
n00b


Joined: 12 Jun 2002
Posts: 18
Location: Venlo, The Netherlands

PostPosted: Fri Jan 28, 2005 12:23 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Akhouk
Guru
Guru


Joined: 23 May 2003
Posts: 476
Location: The Two Niles, Africa

PostPosted: Fri Jan 28, 2005 2:19 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Chr!s
n00b
n00b


Joined: 26 Jan 2005
Posts: 35

PostPosted: Sat Jan 29, 2005 10:55 am    Post subject: Reply with quote

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...
Back to top
View user's profile Send private message
da-flow
n00b
n00b


Joined: 27 Jan 2005
Posts: 32
Location: in the darkest corner of my space

PostPosted: Wed Feb 02, 2005 2:54 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
occamslawnmower
n00b
n00b


Joined: 02 Feb 2005
Posts: 1

PostPosted: Wed Feb 02, 2005 10:30 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
mtuck99
n00b
n00b


Joined: 18 Feb 2005
Posts: 1

PostPosted: Fri Feb 18, 2005 12:28 pm    Post subject: Genkernel Error Reply with quote

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
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