NetBSD-Bugs archive

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

port-powerpc/43029: building powerpc64 coredump.kmod fails: doesn't find core_machdep.c



>Number:         43029
>Category:       port-powerpc
>Synopsis:       building powerpc64 coredump.kmod fails: doesn't find 
>core_machdep.c
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-powerpc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 21 05:55:00 +0000 2010
>Originator:     Dennis Ferguson
>Release:        very recent 5.99.24
>Organization:
>Environment:
NetBSD acer.hk.akit-ferguson.com 5.99.24 NetBSD 5.99.24 (GENERIC) #0: Sun Mar 
14 17:25:30 HKT 2010  
dennis%acer.hk.akit-ferguson.com@localhost:/usr/obj/sys/arch/amd64/compile/GENERIC
 amd64
>Description:
build.sh -m macppc64 fails to build coredump.kmod due to
its failure to find and compile arch/powerpc/powerpc/core_machdep.c,
i.e.:

dependall ===> sys/modules/coredump
#    create  coredump/core_netbsd.d
...
#    create  coredump/kern_core.d
...
#    create  coredump/uvm_coredump.d
...
#    create  coredump/.depend
rm -f .depend
CC=/usr/src/obj/tooldir.NetBSD-5.99.24-amd64/bin/powerpc64--netbsd-gcc 
/usr/src/obj/tooldir.NetBSD-5.99.24-amd64/bin/nbmkdep -d -f .depend -s .o 
core_machdep.d core_netbsd.d kern_core.d uvm_coredump.d
nbmkdep: ignoring core_machdep.d: No such file or directory
#   compile  coredump/kern_core.o
...
#   compile  coredump/core_netbsd.o
...
#   compile  coredump/uvm_coredump.o
...
#      link  coredump/coredump.kmod
/usr/src/obj/tooldir.NetBSD-5.99.24-amd64/bin/powerpc64--netbsd-gcc  
-Wl,--fatal-warnings -nostdlib -r 
-Wl,-T,/usr/src/sys/../sys/modules/xldscripts/kmodule,-d  -o coredump.kmod 
kern_core.o core_netbsd.o uvm_coredump.o core_machdep.o
powerpc64--netbsd-gcc: core_machdep.o: No such file or directory

*** Failed target:  coredump.kmod

With MACHINE_ARCH=powerpc64 the Makefile fails to find the
source file in the arch/powerpc/powerpc directory.
>How-To-Repeat:
Do a:

    MACHINE=macppc64 ./build.sh distribution
>Fix:
The following patch to the Makefile in sys/modules/coredump
works around the problem, though I know so little about the
build system that I can't judge whether this is a "fix" or a
"hack-around":

Index: Makefile
===================================================================
RCS file: /cvsroot/src/sys/modules/coredump/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- Makefile    31 Mar 2009 18:41:40 -0000      1.2
+++ Makefile    21 Mar 2010 05:37:53 -0000
@@ -18,6 +18,9 @@
 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
 .PATH: ${S}/arch/x86/x86
 .endif
+.if ${MACHINE_ARCH} == "powerpc64"
+.PATH: ${S}/arch/powerpc/powerpc
+.endif
 SRCS+= core_machdep.c
 
 .include <bsd.kmodule.mk>



Home | Main Index | Thread Index | Old Index