2002-08-26 11:07:13

by Petr Konecny

[permalink] [raw]
Subject: Compilation error in 2.4.20-pre4-ac2

Hi Alan,

I got an error when compiling 2.4.20-pre4-ac2. Compiled on debian
unstable with gcc-3.2.

Petr

gcc-3.2 -D__KERNEL__ -I/home/pekon/linux/linux-2.4.19/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include -DKBUILD_BASENAME=setup_pci -DEXPORT_SYMTAB -c setup-pci.c
rm -f idedriver.o
ld -m elf_i386 -r -o idedriver.o ide-probe.o ide-geometry.o ide-iops.o ide-taskfile.o ide.o ide-lib.o ide-disk.o ide-cd.o ide-dma.o ide-proc.o setup-pci.o pci/idedriver-pci.o legacy/idedriver-legacy.o ppc/idedriver-ppc.o arm/idedriver-arm.o raid/idedriver-raid.o
ld: cannot open pci/idedriver-pci.o: No such file or directory
make[4]: *** [idedriver.o] Error 1
make[4]: Leaving directory `/home/pekon/linux/linux-2.4.19/drivers/ide'
make[3]: *** [first_rule] Error 2
make[3]: Leaving directory `/home/pekon/linux/linux-2.4.19/drivers/ide'
make[2]: *** [_subdir_ide] Error 2
make[2]: Leaving directory `/home/pekon/linux/linux-2.4.19/drivers'
make[1]: *** [_dir_drivers] Error 2
make[1]: Leaving directory `/home/pekon/linux/linux-2.4.19'
make: *** [stamp-build] Error 2



2002-08-26 12:25:07

by Alan

[permalink] [raw]
Subject: Re: Compilation error in 2.4.20-pre4-ac2

On Mon, 2002-08-26 at 12:11, Petr Konecny wrote:
> Hi Alan,
>
> I got an error when compiling 2.4.20-pre4-ac2. Compiled on debian
> unstable with gcc-3.2.
>
Arghh missed that because I didn't clean build after I broke that bit

Try the following

--- drivers/ide/Makefile~ 2002-08-26 13:06:26.000000000 +0100
+++ drivers/ide/Makefile 2002-08-26 13:06:26.000000000 +0100
@@ -19,6 +19,9 @@
obj-m :=
ide-obj-y :=

+subdir-$(CONFIG_BLK_DEV_IDEPCI) += pci
+subdir-$(CONFIG_BLK_DEV_IDE) += legacy ppc arm raid
+
obj-$(CONFIG_BLK_DEV_IDE) += ide-probe.o ide-geometry.o ide-iops.o ide-taskfile.o ide.o ide-lib.o
obj-$(CONFIG_BLK_DEV_IDEDISK) += ide-disk.o
obj-$(CONFIG_BLK_DEV_IDECD) += ide-cd.o