`NR_IRQS' undeclared here (not in a function) make: *** [e1

Im stuck!

Can anyone help?

What could possibly cause this error?

Calculating world dependencies …done!

emerge (1 of 94) net-misc/e100-3.4.8 to /

md5 files ;-) e100-3.2.3.ebuild

md5 files ;-) e100-2.3.40.ebuild

md5 files ;-) e100-2.3.43.ebuild

md5 files ;-) e100-3.0.27.ebuild

md5 files ;-) e100-3.1.4.ebuild

md5 files ;-) e100-3.3.6.ebuild

md5 files ;-) e100-3.4.8.ebuild

md5 files ;-) files/digest-e100-3.2.3

md5 files ;-) files/digest-e100-2.3.40

md5 files ;-) files/digest-e100-2.3.43

md5 files ;-) files/digest-e100-3.0.27

md5 files ;-) files/digest-e100-3.1.4

md5 files ;-) files/digest-e100-3.3.6

md5 files ;-) files/digest-e100-3.4.8

md5 src_uri ;-) e100-3.4.8.tar.gz

Unpacking source…

Unpacking e100-3.4.8.tar.gz to /var/tmp/portage/e100-3.4.8/work

Source unpacked.

rm -rf e100.ko e100.o e100.mod.c e100.mod.o e100.o e100.7.gz .*cmd .tmp_versionsgcc -O2 -mcpu=i686 -fomit-frame-pointer -DLINUX -DKERNEL -DMODULE -O2 -pipe -Wall -I/usr/src/linux/include -I. -DSMP -c -o e100.o e100.c

In file included from /usr/src/linux/include/asm/processor.h:18,

from /usr/src/linux/include/asm/thread_info.h:17,

from /usr/src/linux/include/linux/thread_info.h:21,

from /usr/src/linux/include/linux/spinlock.h:12,

from /usr/src/linux/include/linux/capability.h:45,

from /usr/src/linux/include/linux/sched.h:7,

from /usr/src/linux/include/linux/module.h:10,

from e100.c:138:

/usr/src/linux/include/asm/system.h: In function `_set64bit_var':

/usr/src/linux/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules

/usr/src/linux/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules

In file included from /usr/src/linux/include/asm/smp.h:18,

from /usr/src/linux/include/linux/smp.h:17,

from /usr/src/linux/include/linux/sched.h:23,

from /usr/src/linux/include/linux/module.h:10,

from e100.c:138:

/usr/src/linux/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory

In file included from /usr/src/linux/include/asm/smp.h:18,

from /usr/src/linux/include/linux/smp.h:17,

from /usr/src/linux/include/linux/sched.h:23,

from /usr/src/linux/include/linux/module.h:10,

from e100.c:138:

/usr/src/linux/include/asm/mpspec.h: At top level:

/usr/src/linux/include/asm/mpspec.h:8: error: `MAXMPBUSSES' undeclared here (not in a function)

/usr/src/linux/include/asm/mpspec.h:9: error: `MAXMPBUSSES' undeclared here (not in a function)

/usr/src/linux/include/asm/mpspec.h:10: error: `MAXMPBUSSES' undeclared here (not in a function)

/usr/src/linux/include/asm/mpspec.h:12: error: `MAXMPBUSSES' undeclared here (not in a function)

/usr/src/linux/include/asm/mpspec.h:20: error: `MAXMPBUSSES' undeclared here (not in a function)

/usr/src/linux/include/asm/mpspec.h:20: error: conflicting types for `mpbusidtotype'

/usr/src/linux/include/asm/mpspec.h:8: error: previous declaration of `mpbusidtotype'

/usr/src/linux/include/asm/mpspec.h:22: error: `MAXIRQSOURCES' undeclared here (not in a function)

/usr/src/linux/include/asm/mpspec.h:24: error: `MAXMPBUSSES' undeclared here (not in a function)

/usr/src/linux/include/asm/mpspec.h:24: error: conflicting types for `mpbusidtopci_bus'

/usr/src/linux/include/asm/mpspec.h:12: error: previous declaration of `mpbusidtopci_bus'

In file included from /usr/src/linux/include/asm/smp.h:20,

from /usr/src/linux/include/linux/smp.h:17,

from /usr/src/linux/include/linux/sched.h:23,

from /usr/src/linux/include/linux/module.h:10,

from e100.c:138:

/usr/src/linux/include/asm/ioapic.h:158: error: `MAXIRQ_SOURCES' undeclared here (not in a function)

/usr/src/linux/include/asm/ioapic.h:158: error: conflicting types for mp_irqs'/usr/src/linux/include/asm/mpspec.h:22: error: previous declaration ofmpirqs'In file included from /usr/src/linux/include/linux/smp.h:17,

from /usr/src/linux/include/linux/sched.h:23,

from /usr/src/linux/include/linux/module.h:10,

from e100.c:138:

/usr/src/linux/include/asm/smp.h:72:26: mach_apicdef.h: No such file or directory

In file included from /usr/src/linux/include/linux/smp.h:17,

from /usr/src/linux/include/linux/sched.h:23,

from /usr/src/linux/include/linux/module.h:10,

from e100.c:138:

/usr/src/linux/include/asm/smp.h: In function `hardsmpprocessor_id':

/usr/src/linux/include/asm/smp.h:76: warning: implicit declaration of function `GETAPICID'

In file included from /usr/src/linux/include/linux/irq.h:21,

from /usr/src/linux/include/asm/hardirq.h:6,

from /usr/src/linux/include/linux/hardirq.h:6,

from /usr/src/linux/include/linux/interrupt.h:11,

from /usr/src/linux/include/linux/netdevice.h:518,

from e100.c:145:

/usr/src/linux/include/asm/irq.h:16:25: irq_vectors.h: No such file or directoryIn file included from /usr/src/linux/include/asm/hardirq.h:6,

from /usr/src/linux/include/linux/hardirq.h:6,

from /usr/src/linux/include/linux/interrupt.h:11,

from /usr/src/linux/include/linux/netdevice.h:518,

from e100.c:145:

/usr/src/linux/include/linux/irq.h: At top level:

/usr/src/linux/include/linux/irq.h:71: error: `NR_IRQS' undeclared here (not in a function)

In file included from /usr/src/linux/include/linux/irq.h:73,

from /usr/src/linux/include/asm/hardirq.h:6,

from /usr/src/linux/include/linux/hardirq.h:6,

from /usr/src/linux/include/linux/interrupt.h:11,

from /usr/src/linux/include/linux/netdevice.h:518,

from e100.c:145:

/usr/src/linux/include/asm/hwirq.h:28: error: `NRIRQ_VECTORS' undeclared here (not in a function)

/usr/src/linux/include/asm/hwirq.h:32: error: `NRIRQS' undeclared here (not in a function)

In file included from /usr/src/linux/include/asm/hardirq.h:6,

from /usr/src/linux/include/linux/hardirq.h:6,

from /usr/src/linux/include/linux/interrupt.h:11,

from /usr/src/linux/include/linux/netdevice.h:518,

from e100.c:145:

/usr/src/linux/include/linux/irq.h:78: error: `NR_IRQS' undeclared here (not in a function)

make: *** [e100.o] Error 1

!!! ERROR: net-misc/e100-3.4.8 failed.

!!! Function src_compile, Line 18, Exitcode 2

!!! (no error message)

!!! If you need support, post the topmost build error, NOT this status message.

7 Replies

[meta]Why are you trying to build kernel modules on your Linode?[/meta]

Guessing: it almost looks like the linux source tree hasn't been configured.

You might have better luck asking on a Gentoo forum…

Steve

its actually not for my linode :( but I tried on the gentoo forums and got no answer.

I'm a Gentoo user on my Linode.

Some questions:

1. Is this for a Linode at all (even if not yours), or is this for a non-Linode Gentoo system? Knowing which is the case is very important.

2. Does this mysterious machine run Xen?

3. Is kernel sources currently present AND configured? Ie:

cd /usr/src/linux

make prepare

Does that work?

It's not really a Gentoo-specific problem per se, sounds like. Just simply that you don't have kernel sources or the symlinks for it aren't set up.

I did a quick 'emerge e100' on my non-Linode Gentoo box, and that built and was done within about 10-15 seconds without issues. Nothing special there. So I really think you've got some kind of kernel sources setup issue.

Thanks for the help in advance.

Im only semi familiar with linux so if I write something that doesnt make sence please correct me.

1. The problem lies on my personal box (it is a non-linode gentoo system).

2. I have never compiled Xen so I guess not Im not even sure what thats for.

3.Yes that make worked here is the output

make prepare

CHK include/linux/version.h

make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.

CHK include/asm-i386/asm_offsets.h

Still have the same problem though

Im not sure but does this have anything to do with my network card configuration?

If you don't know what Xen is, then you don't have it. :) All good there.

Can you do 'emerge gentoolkit' then post the output of:

# equery list \*sources
# uname -a
# ls -l /usr/src/linux/include/asm

Also, what kind of hardware is it? (Processor) How many processors? Does it use hyperthreading?

# equery list *sources

[ Searching for package '*sources' in all categories among: ]

  • installed packages

uname -a

Linux shark 2.6.10-gentoo-r4 #36 SMP Wed Jan 19 18:21:10 EST 2005 i686 AMD Athlon™ Processor AuthenticAMD GNU/Linux

ls -l /usr/src/linux/include/asm

lrwxr-xr-x 1 root root 8 Jan 13 2005 /usr/src/linux/include/asm -> asm-i386

I have only 1CPU AMD XP1800 on an asus board equivalent to id say a 1.5 Ghz CPU Nothing fancy no hyperthreading.

Hmm. That's a very strange Gentoo system to not have any kernel sources ebuild installed, and yet you have kernel sources…hmm.

I might suggest installing Gentoo sources ('emerge gentoo-sources') which is basically the plain vanilla official kernel sources + various patches integrated. If you do, don't forget to update the symlink for /usr/src/linux to point to the latest kernel sources delivered.

Then configure the kernel (be sure to turn off SMP and HyperThreading support), compile it, save old kernel (so you can boot off it in case of emergency), install new kernel and modules, and boot off new kernel.

Then retry the 'emerge e100' again.

If you built your current kernel from sources, then you can copy /usr/src/linux-/.config to your new kernel version directory, and do 'make oldconfig' before adjusting options via 'make menuconfig'.

That would import your existing kernel options and update it to include newer options, so that you can at least tweak a known good setup.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct