Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kernel object compilation failure unnoticed ?



Hi,

I updated my sources while the acpi_button.c file was broken (missing
semi-column in r1.32, which was fixed soon after).

I then wanted to compile my own kernel, which succeeded. The
acpi_button.c compilation failed, but the old object remained and
kernel link was ok.

Do anyone else do see such surprising behaviour, where kernel object
file compilation failure remains unnoticed ?

Here follow the build output after removing all acpi* files.

njoly@lanfeust [NetBSD/src]> ./build.sh -Uu -m amd64 -N 1 kernel=LANFEUST
===> build.sh command: ./build.sh -Uu -m amd64 -N 1 kernel=LANFEUST
===> build.sh started: Fri Mar  5 00:12:24 CET 2010
===> NetBSD version:   5.99.24
===> MACHINE:          amd64
===> MACHINE_ARCH:     x86_64
===> Build platform:   NetBSD 5.99.24 amd64
===> HOST_SH:          /bin/sh
===> TOOLDIR path:     /local/src/NetBSD/tool
===> DESTDIR path:     /local/src/NetBSD/dest/amd64
===> RELEASEDIR path:     /local/src/NetBSD/rel
===> makewrapper:      /local/src/NetBSD/tool/bin/nbmake-amd64
===> Updated /local/src/NetBSD/tool/bin/nbmake-amd64
===> Building kernel without building new tools
===> Building kernel:  LANFEUST
===> Build directory:  
/local/src/NetBSD/src/sys/arch/amd64/compile/obj.amd64/LANFEUST
Build directory is 
/local/src/NetBSD/src/sys/arch/amd64/compile/obj.amd64/LANFEUST
Don't forget to run "make depend"
depending the kern library objects
depending the compat library objects
     create  LANFEUST/acpi_bat.d
     create  LANFEUST/acpi_button.d
     create  LANFEUST/acpi_debug.d
[...]
    compile  LANFEUST/acpi_bat.o
    compile  LANFEUST/acpi_button.o
/local/src/NetBSD/src/sys/dev/acpi/acpi_button.c: In function 'acpibut_attach':
/local/src/NetBSD/src/sys/dev/acpi/acpi_button.c:134: error: expected 
expression before 'void'
/local/src/NetBSD/src/sys/dev/acpi/acpi_button.c:134: error: called object 
'pmf_device_register1(self, 0u, 0u, 0u)' is not a function
/local/src/NetBSD/src/sys/dev/acpi/acpi_button.c:134: error: expected ';' 
before 'sysmon_pswitch_register'
    compile  LANFEUST/acpi_debug.o
[...]
     create  vers.c
    compile  LANFEUST/vers.o
       link  LANFEUST/netbsd
/local/src/NetBSD/tool/bin/x86_64--netbsd-ld: acpi_button.o: No such file: No 
such file or directory

-- 
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.


Home | Main Index | Thread Index | Old Index