Gentoo Archives: gentoo-hardened

From: Ned Ludd <solar@g.o>
To: rumen_yotov@×××.bg
Cc: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] compile errors during kernel builds
Date: Sat, 17 Jul 2004 09:01:28
Message-Id: 1090054865.13780.4691.camel@simple
In Reply to: [gentoo-hardened] compile errors during kernel builds by Rumen Yotov
1 Anybody else having problems with 3.3.4-r1 and kernel building but works
2 as described in this email with 3.3.3-r6?
3
4 On Fri, 2004-07-16 at 00:51, Rumen Yotov wrote:
5 > Hi all,
6 > A day or two ago had a compile error during kernel build - rsbac-kernel
7 > (gcc-3.3.3-r6). As i have problems with this kernel for some time,
8 > leaved it for later (compilation went OK for rsbac-6.7.0 and
9 > rsbac-6.7.0-r1 later after recompilation stopped booting 6.7.0-r1).
10 > Today also had such problem with hardened-dev-sources-2.6.7-r3 with the
11 > same config as hardened-dev-sources-2.6.7-r2 nothing changed (except i
12 > think GCC).
13 > Suspect it's a problem with the new GCC-3.3.4, before had gcc-3.3.3-r6
14 > (gave such an error for rsbac-kernel - above).
15 > For a long time am using hardened USE flag, before that used -fPIC and
16 > -fstack-protector, so GCC is hardened.
17
18
19 > Never had such problems in kernel compilation and don't want to compile
20 > a new -hardened-GCC.
21
22 What else would those cpu cycles doing?
23 nop
24
25 Assuming your i686 class try this.
26 wget -O - -q
27 http://dev.gentoo.org/~solar/toolchain/gcc/ia32-vanilla-3.3.2.specs |
28 sed s/'3.3.2'/'3.3.4'/g > $(gcc-config -L)/specs
29
30 cd /usr/src/linux
31 # make stuff
32 # fails here?
33 # works with these gcc profile specs?
34
35 # to restore.
36 gcc -dumpspecs > $(gcc-config -L/specs
37
38
39 > All ~x86 system and using genkernel but that's for
40 > a year and no problems.
41 > PS: Also using PaX and grsec2 for quite a long time - minor problems,
42 > including 2.6.5 kernel.
43 > Suggestions.
44 > TIA
45 > Rumen
46 > ...CUT...
47 > include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a
48 > function)
49 > In file included from include/linux/irq.h:72,
50 > from include/asm/hardirq.h:6,
51 > from include/linux/interrupt.h:11,
52 > from include/linux/netdevice.h:515,
53 > from include/net/sock.h:48,
54 > from include/linux/ip.h:84,
55 > from include/net/slhc_vj.h:84,
56 > from drivers/net/slhc.c:59:
57 > include/asm/hw_irq.h:18:21: asm/irq.h: No such file or directory
58 > In file included from include/linux/irq.h:72,
59 > from include/asm/hardirq.h:6,
60 > from include/linux/interrupt.h:11,
61 > from include/linux/netdevice.h:515,
62 > from include/net/sock.h:48,
63 > from include/linux/ip.h:84,
64 > from include/net/slhc_vj.h:84,
65 > from drivers/net/slhc.c:59:
66 > include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in
67 > a function)
68 > include/asm/hw_irq.h:32: error: `NR_IRQS' undeclared here (not in a
69 > function)
70 > make[2]: *** [drivers/net/slhc.o] Error 1
71 > make[1]: *** [drivers/net] Error 2
72 > make: *** [drivers] Error 2
73 > * ERROR: Failed to compile the "bzImage" target...
74 > * -- Grepping log... --
75 > * -- End log... --
76 > * Please consult /var/log/genkernel.log for more information and any
77 > * errors that were reported above.
78 > * Report any genkernel bugs to bugs.gentoo.org and
79 > * assign your bug to genkernel@g.o. Please include
80 > * as much information as you can in your bug report; attaching
81 > * /var/log/genkernel.log so that your issue can be dealt with
82 > effectively.
83 > *
84 > ...END CUT...
85 --
86 Ned Ludd <solar@g.o>
87 Gentoo (hardened,security,infrastructure,embedded,toolchain) Developer

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-hardened] compile errors during kernel builds Rumen Yotov <rumen_yotov@×××.bg>