From: Eyal Lebedinsky <eyal@eyal.emu.id.au>
To: Andrea Arcangeli <andrea@suse.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.4.21pre4aa2 - build problems (and patches)
Date: Sat, 15 Feb 2003 11:43:18 +1100 [thread overview]
Message-ID: <3E4D8D26.F7C98E0B@eyal.emu.id.au> (raw)
In-Reply-To: <20030214182434.GY1499@dualathlon.random>
[-- Attachment #1: Type: text/plain, Size: 4558 bytes --]
Andrea Arcangeli wrote:
>
> I released a 2.4.21pre4aa2 but I hadn't time to write a changelog or to
> test it yet, so be careful. I'll write the changelog but not today.
My all-modules build had the following problems.
1) linux/Makefile: bad compiler option?
gcc -D__KERNEL__ -I/data2/usr/local/src/linux-2.4-pre-aa/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-finline-limit=2000 -fomit-frame-pointer -pipe
-mpreferred-stack-boundary=2 -march=i686 -malign-functions=4
-DUTS_MACHINE='"i386"' -DKBUILD_BASENAME=version -c -o init/version.o
init/version.c
cc1: Invalid option `-finline-limit=2000'
make: *** [init/version.o] Error 1
On Debian 3.0r1 (which is gcc 2.95.4) I had to remove the offending
option.
2) the old drivers/char/scx200.c compile failure is still there (will
it ever be fixed?)
3) drivers/char/ipmi: same failure as before
gcc -D__KERNEL__ -I/data2/usr/local/src/linux-2.4-pre-aa/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-malign-functions=4 -DMODULE -DMODVERSIONS -include
/data2/usr/local/src/linux-2.4-pre-aa/include/linux/modversions.h
-nostdinc -iwithprefix include -DKBUILD_BASENAME=ipmi_watchdog
-DEXPORT_SYMTAB -c ipmi_watchdog.c
In file included from ipmi_watchdog.c:38:
/data2/usr/local/src/linux-2.4-pre-aa/include/linux/watchdog.h:17: parse
error before `__u32'
/data2/usr/local/src/linux-2.4-pre-aa/include/linux/watchdog.h:17:
warning: no semicolon at end of struct or union
/data2/usr/local/src/linux-2.4-pre-aa/include/linux/watchdog.h:18:
warning: type defaults to `int' in declaration of `firmware_version'
/data2/usr/local/src/linux-2.4-pre-aa/include/linux/watchdog.h:18:
warning: data definition has no type or storage class
/data2/usr/local/src/linux-2.4-pre-aa/include/linux/watchdog.h:19: parse
error before `identity'
/data2/usr/local/src/linux-2.4-pre-aa/include/linux/watchdog.h:19:
warning: type defaults to `int' in declaration of `identity'
/data2/usr/local/src/linux-2.4-pre-aa/include/linux/watchdog.h:19:
warning: data definition has no type or storage class
/data2/usr/local/src/linux-2.4-pre-aa/include/linux/watchdog.h:20: parse
error before `}'
ipmi_watchdog.c:452: variable `ident' has initializer but incomplete
type
ipmi_watchdog.c:454: warning: excess elements in struct initializer
ipmi_watchdog.c:454: warning: (near initialization for `ident')
ipmi_watchdog.c:455: warning: excess elements in struct initializer
ipmi_watchdog.c:455: warning: (near initialization for `ident')
ipmi_watchdog.c:457: warning: excess elements in struct initializer
ipmi_watchdog.c:457: warning: (near initialization for `ident')
ipmi_watchdog.c: In function `ipmi_ioctl':
ipmi_watchdog.c:466: sizeof applied to an incomplete type
ipmi_watchdog.c:467: sizeof applied to an incomplete type
ipmi_watchdog.c:467: sizeof applied to an incomplete type
ipmi_watchdog.c:467: sizeof applied to an incomplete type
make[3]: *** [ipmi_watchdog.o] Error 1
make[3]: Leaving directory
`/data2/usr/local/src/linux-2.4-pre-aa/drivers/char/ipmi'
I included types.h in watchdog.h.
4) drivers/ieee1394: same failure as before
gcc -D__KERNEL__ -I/data2/usr/local/src/linux-2.4-pre-aa/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-malign-functions=4 -DMODULE -DMODVERSIONS -include
/data2/usr/local/src/linux-2.4-pre-aa/include/linux/modversions.h
-nostdinc -iwithprefix include -DKBUILD_BASENAME=sbp2 -c -o sbp2.o
sbp2.c
sbp2.c:1515: conflicting types for `sbp2_handle_physdma_write'
sbp2.h:508: previous declaration of `sbp2_handle_physdma_write'
sbp2.c:1531: conflicting types for `sbp2_handle_physdma_read'
sbp2.h:510: previous declaration of `sbp2_handle_physdma_read'
make[2]: *** [sbp2.o] Error 1
make[2]: Leaving directory
`/data2/usr/local/src/linux-2.4-pre-aa/drivers/ieee1394'
5) Finally, the following unresolved were present. I left it alone.
depmod: *** Unresolved symbols in
/lib/modules/2.4.21-pre4-aa2/kernel/drivers/char/ipmi/ipmi_msghandler.o
depmod: panic_notifier_list
depmod: *** Unresolved symbols in
/lib/modules/2.4.21-pre4-aa2/kernel/drivers/char/ipmi/ipmi_watchdog.o
depmod: panic_notifier_list
depmod: panic_timeout
depmod: *** Unresolved symbols in
/lib/modules/2.4.21-pre4-aa2/kernel/fs/xfs/xfs.o
depmod: start_aggressive_readahead
--
Eyal Lebedinsky (eyal@eyal.emu.id.au) <http://samba.org/eyal/>
[-- Attachment #2: 2.4.21-pre4-aa2-Makefile.patch --]
[-- Type: text/plain, Size: 382 bytes --]
--- linux/Makefile.orig Sat Feb 15 11:01:38 2003
+++ linux/Makefile Sat Feb 15 10:50:27 2003
@@ -97,7 +97,7 @@
CPPFLAGS := -D__KERNEL__ -I$(HPATH)
CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
- -fno-strict-aliasing -fno-common -finline-limit=2000
+ -fno-strict-aliasing -fno-common
ifndef CONFIG_FRAME_POINTER
CFLAGS += -fomit-frame-pointer
endif
[-- Attachment #3: 2.4.21-pre4-aa2-char.patch --]
[-- Type: text/plain, Size: 438 bytes --]
--- linux/drivers/char/Makefile.orig Tue Jan 7 20:13:30 2003
+++ linux/drivers/char/Makefile Tue Jan 7 20:17:16 2003
@@ -24,7 +24,7 @@
export-objs := busmouse.o console.o keyboard.o sysrq.o \
misc.o pty.o random.o selection.o serial.o \
sonypi.o tty_io.o tty_ioctl.o generic_serial.o \
- au1000_gpio.o hp_psaux.o nvram.o
+ au1000_gpio.o hp_psaux.o nvram.o scx200.o
mod-subdirs := joystick ftape drm drm-4.0 pcmcia
[-- Attachment #4: 2.4.21-pre4-aa2-watchdog.patch --]
[-- Type: text/plain, Size: 325 bytes --]
--- /data2/usr/local/src/linux-2.4-pre-aa/include/linux/watchdog.h.orig Sat Feb 15 11:08:18 2003
+++ /data2/usr/local/src/linux-2.4-pre-aa/include/linux/watchdog.h Sat Feb 15 11:08:30 2003
@@ -10,6 +10,7 @@
#define _LINUX_WATCHDOG_H
#include <linux/ioctl.h>
+#include <linux/types.h>
#define WATCHDOG_IOCTL_BASE 'W'
[-- Attachment #5: 2.4.21-pre4-sbp2.patch --]
[-- Type: text/plain, Size: 830 bytes --]
--- linux/drivers/ieee1394/sbp2.c.orig Thu Dec 19 10:22:33 2002
+++ linux/drivers/ieee1394/sbp2.c Thu Dec 19 10:23:17 2002
@@ -1511,7 +1511,7 @@
* physical dma in hardware). Mostly just here for debugging...
*/
static int sbp2_handle_physdma_write(struct hpsb_host *host, int nodeid, int destid, quadlet_t *data,
- u64 addr, unsigned int length)
+ u64 addr, unsigned int length, u16 flags)
{
/*
@@ -1527,7 +1527,7 @@
* physical dma in hardware). Mostly just here for debugging...
*/
static int sbp2_handle_physdma_read(struct hpsb_host *host, int nodeid, quadlet_t *data,
- u64 addr, unsigned int length)
+ u64 addr, unsigned int length, u16 flags)
{
/*
prev parent reply other threads:[~2003-02-15 0:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-14 18:24 2.4.21pre4aa2 Andrea Arcangeli
2003-02-15 0:43 ` Eyal Lebedinsky [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3E4D8D26.F7C98E0B@eyal.emu.id.au \
--to=eyal@eyal.emu.id.au \
--cc=andrea@suse.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®