Subject: compiling -current with a release
To: None <current-users@netbsd.org>
From: Michael Richardson <mcr@sandelman.ottawa.on.ca>
List: current-users
Date: 10/11/2001 11:11:07
-----BEGIN PGP SIGNED MESSAGE-----
I wanted to move my notebook to -current before doing some random pieces
of work on some drivers (esm, some IPsec stuff...)
It is currently running 1.5.2.
marajade-[network/kernels/compile-current/XTERM] mcr 1006 %make
cc -O2 -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wno-uninitialized -Wno-main -I. -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DCRYPTO_MD_DES_ENC -DCRYPTO_MD_BF_ENC -DMCR_SATELLITE_HACK -DLKM -DDIAGNOSTIC -DIPSEC_DEBUG -DAUDIO_DEBUG -DAC97_DEBUG="1" -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -Di386 -c /usr/src/sys/arch/i386/isa/npx.c
/tmp/ccqPYvEA.s: Assembler messages:
/tmp/ccqPYvEA.s:334: Error: no such 386 instruction: `fxsave'
/tmp/ccqPYvEA.s:444: Error: no such 386 instruction: `fxsave'
/tmp/ccqPYvEA.s:484: Error: no such 386 instruction: `fxrstor'
/tmp/ccqPYvEA.s:530: Error: no such 386 instruction: `fxsave'
/tmp/ccqPYvEA.s:629: Error: no such 386 instruction: `fxsave'
*** Error code 1
Oops.
My guess is that someone went and upgraded "as" in -current to handle this.
That's great.
But being able to compile the next version of the source with a released
version of the source is pretty reasonable. Particularly a kernel. Otherwise
there are horrible chicken and egg problems.
In this case, it looks like there should have been:
#ifdef I686_CPU
#if __NetBSD_Version__ > 105000200
#define fxsave(addr) __asm("fxsave %0" : "=m" (*addr))
#define fxrstor(addr) __asm("fxrstor %0" : : "m" (*addr))
#else
#define fxsave(addr) __asm(".byte ...")
#define fxrstor(addr) ...
#endif /* I686_CPU */
maybe this will never work due to =m stuff there.
If I turn off I686_CPU (I have a PIII. Is that I787?) will I pooch myself?
] ON HUMILITY: to err is human. To moo, bovine. | firewalls [
] Michael Richardson, Sandelman Software Works, Ottawa, ON |net architect[
] mcr@sandelman.ottawa.on.ca http://www.sandelman.ottawa.on.ca/ |device driver[
] panic("Just another NetBSD/notebook using, kernel hacking, security guy"); [
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: latin1
Comment: Finger me for keys
iQCVAwUBO8W2h4qHRg3pndX9AQGepAP9Glr84+p/tl3TvoWIttcK++3L0043P/Zd
JQuigu1Wrx9GmZdcxPuOKZb7X/XR73UoJ1eVWV9VBsd57u8Aj4Z1kL2DDb6T8oDf
BGZ/zVxeSVRaAmDD1lrVEGanYUnINm/BaMkciTu7bm4r9YeZN77EyTylKM5Hp6o3
PFRkB8k/4FM=
=0B0l
-----END PGP SIGNATURE-----