Current-Users archive

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

FIXED:: Re: Building HEAD fails in INSTALL_FLOPPY



Paul -

That change fixed the compile error in "kernel=INSTALL_FLOPPY".  My script 
does a "cvs update -Pd" before building several kernels, distribution, release 
...

I run the script every evening.  It often fails but, the next night it will 
run or fail for a different reason?  This time it had failed for several 
nights in the same place.  I was curious if many people build that kernel 
these days?

Thanks,
Paul

  
>  Looks like that should probably be bracketed inside a #ifdef / #endif
>  pair.  Try this:
>  
>  
>  
>  Index: src/sys/kern/kern_subr.c
>  ===================================================================
>  RCS file: /cvsroot/src/sys/kern/kern_subr.c,v
>  retrieving revision 1.211
>  diff -u -p -r1.211 kern_subr.c
>  --- src/sys/kern/kern_subr.c 31 Aug 2011 23:42:46 -0000      1.211
>  +++ src/sys/kern/kern_subr.c 19 Sep 2011 23:36:15 -0000
>  @@ -717,7 +717,9 @@ trace_enter(register_t code, const regis
>    void
>    trace_exit(register_t code, register_t rval[], int error)
>    {
>  +#ifdef PTRACE
>       struct proc *p = curlwp->l_proc;
>  +#endif
>  
>    #ifdef SYSCALL_DEBUG
>       scdebug_ret(code, error, rval);
>  
>  
>  On Mon, 19 Sep 2011, Paul Newhouse wrote:
>  
>  > Running:
>  >
>  > : uname -a
>  > NetBSD pimin 5.99.55 NetBSD 5.99.55 (MONOLITHIC) #1: Mon Aug  8 22:42:58 
> PDT 2011  root@pimin:/glorp/obj/sys/arch/i386/compile/MONOLITHIC i386
>  >
>  >
>  > I don't actually need this kernel, it's an hysterical artifact.  I had 
> fogotten/ignored it was in my script.  Is it actually supposed to build?
>  >
>  >
>  > #   compile  INSTALL_FLOPPY/kern_synch.o
>  > /glorp/src/../tools/bin/i486--netbsdelf-gcc -mno-sse -mno-sse2 -mno-sse3 
> -ffreestanding -fno-zero-initialized-in-bss -Os -fno-strict-aliasing 
> -std=gnu99 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith 
> -Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual 
> -Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign -Wno-attributes 
> -Wextra -Wno-unused-parameter -Wno-sign-compare -march=i486 -mtune=i486 
> --sysroot=/glorp/src/../obj/destdir.i386 -Di386 -I. 
> -I/glorp/src/sys/../common/include -I/glorp/src/sys/arch -I/glorp/src/sys 
> -nostdinc -DMAXUSERS=2 -D_KERNEL -D_KERNEL_OPT -std=gnu99 
> -I/glorp/src/sys/lib/libkern/../../../common/lib/libc/quad 
> -I/glorp/src/sys/lib/libkern/../../../common/lib/libc/string 
> -I/glorp/src/sys/lib/libkern/../../../common/lib/libc/arch/i386/string 
> -I/glorp/src/sys/external/isc/atheros_hal/dist 
> -I/glorp/src/sys/external/isc/atheros_hal/ic -c 
> /glorp/src/sys/kern/kern_synch.c
>  > --- kern_subr.o ---
>  > cc1: warnings being treated as errors
>  > /glorp/src/sys/kern/kern_subr.c: In function 'trace_exit':
>  > /glorp/src/sys/kern/kern_subr.c:720:15: error: unused variable 'p'
>  > *** [kern_subr.o] Error code 1
>  >
>  > nbmake: stopped in /glorp/obj/sys/arch/i386/compile/INSTALL_FLOPPY
>  > 1 error
>  >
>  > nbmake: stopped in /glorp/obj/sys/arch/i386/compile/INSTALL_FLOPPY
>  >
>  > ERROR: Failed to make all in 
> "/glorp/src/../obj/sys/arch/i386/compile/INSTALL_FLOPPY"
>  >
>  >
>  > TIA,
>  > Paul
>  >
>  > !DSPAM:4e77ccdb1965218321278!
>  >
>  >
>  >
>  
>  -------------------------------------------------------------------------
>  | Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
>  | Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
>  | Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
>  | Kernel Developer |                          | pgoyette at netbsd.org  |
>  -------------------------------------------------------------------------




Home | Main Index | Thread Index | Old Index