Jonathan Adams wrote: > On Wed, Jul 16, 2008 at 12:43:40PM -0700, Rao Shoaib wrote: > >> I am having trouble building just the kmdbmod. It builds fine when I do >> a full build but not if I just want to change something and build it. >> Can someone tell me what is the trick to just build kmdbmod. >> > > cd usr/src/cmd/mdb/$ARCH/$ISA/$MODULE > dmake kmod/$MODULE > > ? > > that does not work at all
[rshoaib.ipsg-v1:/disk2/rshoaib/volo-84-ipstream/usr/src/cmd/mdb/sun4u/modules] (135) % !make make kmdbmod make: Fatal error: Don't know how to make target `kmdbmod' Current working directory /disk2/rshoaib/volo-84-ipstream/usr/src/cmd/mdb/sun4u/modules [rshoaib.ipsg-v1:/disk2/rshoaib/volo-84-ipstream/usr/src/cmd/mdb/sun4u/modules] Building from usr/src/cmd/mdb/sun4u/v9/kmdb or doing make install from usr/src/cmd/mdb gives the following error. I have even verified that the compiler options to gcc are same both when I do a full build and in the following case, so there is some other magic that is happening when nightly is run. % make kmdbmod /ws/onnv-tools/onbld/bin/sparc/cw -_cc -xO3 -xarch=v9 -dalign -v -Wc,-Qiselect-regsym=0 -Wc,-Qassembler-ounrefsym=0 -Wc,-xcode=abs32 -xspace -W0,-Lt -Xa -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%none -Wd,-xsafe=unboundsym -W2,-xwrap_int -W0,-xglobalstatic -g -Wc,-Qiselect-T1 -xc99=%none -W0,-noglobal -_gcc=-fno-dwarf2-indirect-strings -xdebugformat=stabs -xstrconst -_gcc=-ffreestanding -DTEXT_DOMAIN=\"SUNW_OST_OSCMD\" -I/disk2/rshoaib/volo-84-ipstream/proto/root_sparc/usr/include -D_ELF64 -I/disk2/rshoaib/volo-84-ipstream/proto/root_sparc/usr/include/v9 -DDEBUG -D_MDB -D_KMDB -I. -I.. -I../.. -I../../../common -I../../../common/libstand -I/disk2/rshoaib/volo-84-ipstream/usr/src/uts/sfmmu -I/disk2/rshoaib/volo-84-ipstream/usr/src/uts/sparc/v9 -D__sparcv9cpu -D__sparcv9 -I../../../sparc/mdb -I.. -I/disk2/rshoaib/volo-84-ipstream/usr/src/uts/sun4 -I/disk2/rshoaib/volo-84-ipstream/usr/src/uts/sun4u -I/disk2/rshoaib/volo-84-ipstream/usr/src/cmd/mdb/sparc/v9 -I/disk2/rshoaib/volo-84-ipstream/usr/src/cmd/mdb/sparc/v9/kmdb -I/disk2/rshoaib/volo-84-ipstream/usr/src/cmd/mdb/sparc -D_KERNEL -c -o kctl_wr.o ../../../common/kmdb/kctl/kctl_wr.c + /usr/sfw/bin/gcc -fident -finline -fno-inline-functions -fno-builtin -fno-asm -nodefaultlibs -mno-integer-ldd-std -D__sun -fno-strict-aliasing -fno-unit-at-a-time -fno-optimize-sibling-calls -O2 -m64 -mcpu=v9 -Wall -Wno-unknown-pragmas -Wno-missing-braces -Wno-sign-compare -Wno-parentheses -Wno-uninitialized -Wno-implicit-function-declaration -Wno-unused -Wno-trigraphs -Wno-char-subscripts -Wno-switch -fno-pic -mcmodel=medlow -Werror -std=gnu89 -gdwarf-2 -std=gnu89 -fno-dwarf2-indirect-strings -ffreestanding -DTEXT_DOMAIN="SUNW_OST_OSCMD" -I/disk2/rshoaib/volo-84-ipstream/proto/root_sparc/usr/include -D_ELF64 -I/disk2/rshoaib/volo-84-ipstream/proto/root_sparc/usr/include/v9 -DDEBUG -D_MDB -D_KMDB -I. -I.. -I../.. -I../../../common -I../../../common/libstand -I/disk2/rshoaib/volo-84-ipstream/usr/src/uts/sfmmu -I/disk2/rshoaib/volo-84-ipstream/usr/src/uts/sparc/v9 -D__sparcv9cpu -D__sparcv9 -I../../../sparc/mdb -I.. -I/disk2/rshoaib/volo-84-ipstream/usr/src/uts/sun4 -I/disk2/rshoaib/volo-84-ipstream/usr/src/uts/sun4u -I/disk2/rshoaib/volo-84-ipstream/usr/src/cmd/mdb/sparc/v9 -I/disk2/rshoaib/volo-84-ipstream/usr/src/cmd/mdb/sparc/v9/kmdb -I/disk2/rshoaib/volo-84-ipstream/usr/src/cmd/mdb/sparc -D_KERNEL -ffreestanding -c -o /tmp/.cwCAA9Tay3X.o ../../../common/kmdb/kctl/kctl_wr.c ../../../common/kmdb/kctl/kctl_wr.c: In function `kctl_wr_thr_start': ../../../common/kmdb/kctl/kctl_wr.c:292: warning: format argument is not a pointer (arg 3) Rao. > Cheers, > - jonathan > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/mdb-discuss/attachments/20080716/2823730f/attachment.html>