Re: unknown warning option '-Wno-unused-but-set-variable'
The current amd64 snapshot already contains clang 13. On Dec 19 15:23:34, y...@v007.vaio.ne.jp wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > > Kernel Makefiles were adjusted to compile with clang 13. Either take > > out the warnings so you can compile with old-clang, or rebuild clang. > > I'm trying to rebuild clang now. > I believe the steps are: > > # cd /usr/src/gnu/usr.bin/clang/ > # make clean && make obj && make > # make install > > (compilation on my machine ongoing...) > > why not adding an entry to www.openbsd.org/faq/current.html ? > > -- yozo. > > > -BEGIN PGP SIGNATURE- > > iQGzBAEBCgAdFiEEXaBuNN3EAffFuoZQoSJsq/akOnEFAmG+z6EACgkQoSJsq/ak > OnEURQv9F9T5665BXEorsFEkWKvXWQpgl91J3qxJrhTsYlSWGnby9mx6FeAsbvbH > QHcbihe6cDZYgfT4Dzq+UMZ9D7F4w+mjqOSuMwLXhcXiJRUkGW35BwCTQQaMUHGJ > CoCG4Uggb7ukn86AQhVFkjnjcHnXEkuoPjKSpMjFNg3oBi6WO+lC+JqvUYbQ8941 > gLx6AO6bOln7EV7cEDzxfpNByPzsIZquY85H0mfKllRfRiFdomb3Npq4cI/65O8D > WsvpOH7wlT1CYY3xZSa/D87tOkZscF5Z21tW2/ZLASb3Q2Gv8taYogOMQ4xyfbtm > 5rl5PaoDP/jmdDllFkeeIw8PjeY3XBkoPcNxuYrMfnY4FUQNDwvozgczNYPinDVL > qYn13FJl+m+y0Eamosw3RjL8O2JwBJ7aANjFv1rk1KyvH8eGmf738DZBFM1M7jRM > /ooSte2a7Bkhdt1Vg9xGh7Abubhb7R3OmGD0+rw6sfKnG17/hoZlV8j05Sfb7sNF > PEfkmlLf > =HRZ2 > -END PGP SIGNATURE- > >
Re: unknown warning option '-Wno-unused-but-set-variable'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 > Kernel Makefiles were adjusted to compile with clang 13. Either take > out the warnings so you can compile with old-clang, or rebuild clang. I'm trying to rebuild clang now. I believe the steps are: # cd /usr/src/gnu/usr.bin/clang/ # make clean && make obj && make # make install (compilation on my machine ongoing...) why not adding an entry to www.openbsd.org/faq/current.html ? -- yozo. -BEGIN PGP SIGNATURE- iQGzBAEBCgAdFiEEXaBuNN3EAffFuoZQoSJsq/akOnEFAmG+z6EACgkQoSJsq/ak OnEURQv9F9T5665BXEorsFEkWKvXWQpgl91J3qxJrhTsYlSWGnby9mx6FeAsbvbH QHcbihe6cDZYgfT4Dzq+UMZ9D7F4w+mjqOSuMwLXhcXiJRUkGW35BwCTQQaMUHGJ CoCG4Uggb7ukn86AQhVFkjnjcHnXEkuoPjKSpMjFNg3oBi6WO+lC+JqvUYbQ8941 gLx6AO6bOln7EV7cEDzxfpNByPzsIZquY85H0mfKllRfRiFdomb3Npq4cI/65O8D WsvpOH7wlT1CYY3xZSa/D87tOkZscF5Z21tW2/ZLASb3Q2Gv8taYogOMQ4xyfbtm 5rl5PaoDP/jmdDllFkeeIw8PjeY3XBkoPcNxuYrMfnY4FUQNDwvozgczNYPinDVL qYn13FJl+m+y0Eamosw3RjL8O2JwBJ7aANjFv1rk1KyvH8eGmf738DZBFM1M7jRM /ooSte2a7Bkhdt1Vg9xGh7Abubhb7R3OmGD0+rw6sfKnG17/hoZlV8j05Sfb7sNF PEfkmlLf =HRZ2 -END PGP SIGNATURE-
Re: unknown warning option '-Wno-unused-but-set-variable'
Kernel Makefiles were adjusted to compile with clang 13. Either take out the warnings so you can compile with old-clang, or rebuild clang. What should have been done was to add no-op arguments for these warnings into clang 11 to ease the transition to clang 13, but somehow no one did it, huh. Patrick Am Fri, Dec 17, 2021 at 07:23:06PM +0100 schrieb Jan Stary: > This is current/i386 on an ALIX.1E (dmesg below). > The kernel does not build with the current cvs: > > cat /usr/src/sys/arch/i386/i386/genassym.cf > /usr/src/sys/arch/i386/i386/genassym.cf | sh /usr/src/sys/kern/genassym.sh > cc -no-integrated-as -g -Werror -Wall -Wimplicit-function-declaration > -Wno-pointer-sign -Wframe-larger-than=2047 -Wno-address-of-packed-member > -Wno-constant-conversion -Wno-unused-but-set-variable > -Wno-gnu-folding-constant -ffreestanding -fno-pie -mretpoline -O2 -pipe > -nostdinc -I/usr/src/sys -I/usr/src/sys/arch/i386/compile/GENERIC/obj > -I/usr/src/sys/arch -I/usr/src/sys/dev/pci/drm/include > -I/usr/src/sys/dev/pci/drm/include/uapi -I/usr/src/sys/dev/pci/drm/i915 > -DDDB -DDIAGNOSTIC -DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DPOOL_DEBUG > -DCRYPTO -DSYSVMSG -DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DFFS -DFFS2 > -DFFS_SOFTUPDATES -DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DNFSCLIENT > -DNFSSERVER -DCD9660 -DUDF -DMSDOSFS -DFIFO -DFUSE -DSOCKET_SPLICE -DTCP_ECN > -DTCP_SIGNATURE -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE -DPIPEX > -DMROUTING -DMPLS -DBOOT_CONFIG -DUSER_PCICONF -DAPERTURE -DMTRR -DNTFS > -DHIBERNATE -DPCIVERBOSE -DEISAVERBOSE -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL > -DWSDISPLAY_COMPAT_RAWKBD -DWSDISPLAY_DEFAULTSCREENS="6" -DX86EMU > -DONEWIREVERBOSE -DMAXUSERS=80 -D_KERNEL -MD -MP -MF assym.P > assym.h.tmp > error: unknown warning option '-Wno-unused-but-set-variable'; did you mean > '-Wno-unused-const-variable'? [-Werror,-Wunknown-warning-option] > *** Error 1 in /usr/src/sys/arch/i386/compile/GENERIC (Makefile:1286 > 'assym.h') > > > Jan > > > OpenBSD 7.0-current (GENERIC) #345: Thu Dec 16 13:19:22 MST 2021 > dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC > real mem = 259207168 (247MB) > avail mem = 238182400 (227MB) > random: good seed from bootblocks > mpath0 at root > scsibus0 at mpath0: 256 targets > mainbus0 at root > bios0 at mainbus0: date 07/19/10, BIOS32 rev. 0 @ 0xfa950 > apm0 at bios0: Power Management spec V1.2 (slowidle) > pcibios0 at bios0: rev 2.1 @ 0xf/0xdfb4 > pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf30/128 (6 entries) > pcibios0: PCI Exclusive IRQs: 5 10 11 > pcibios0: no compatible PCI ICU found: ICU vendor 0x1022 product 0x2090 > pcibios0: Warning, unable to fix up PCI interrupt routing > pcibios0: PCI bus #0 is the last bus > bios0: ROM list: 0xc/0x8000 0xc8000/0xa800 0xef000/0x1000! > cpu0 at mainbus0: (uniprocessor) > cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD" 586-class) > 499 MHz, 05-0a-02 > cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX,MMXX,3DNOW2,3DNOW > mtrr: K6-family MTRR support (2 registers) > amdmsr0 at mainbus0 > pci0 at mainbus0 bus 0: configuration mode 1 (bios) > pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x33 > vga1 at pci0 dev 1 function 1 "AMD Geode LX Video" rev 0x00 > wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) > wsdisplay0: screen 1-5 added (80x25, vt100 emulation) > glxsb0 at pci0 dev 1 function 2 "AMD Geode LX Crypto" rev 0x00: RNG AES > vr0 at pci0 dev 13 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 11, > address 00:0d:b9:0e:9e:f4 > ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI > 0x004063, model 0x0034 > glxpcib0 at pci0 dev 15 function 0 "AMD CS5536 ISA" rev 0x03: rev 3, 32-bit > 3579545Hz timer, watchdog, gpio, i2c > gpio0 at glxpcib0: 32 pins > iic0 at glxpcib0 > pciide0 at pci0 dev 15 function 2 "AMD CS5536 IDE" rev 0x01: DMA, channel 0 > wired to compatibility, channel 1 wired to compatibility > wd0 at pciide0 channel 0 drive 0: > wd0: 1-sector PIO, LBA48, 15279MB, 31293360 sectors > wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 > pciide0: channel 1 ignored (disabled) > auglx0 at pci0 dev 15 function 3 "AMD CS5536 Audio" rev 0x01: irq 11, CS5536 > AC97 > ac97: codec id 0x414c4770 (Avance Logic ALC203 rev 0) > ac97: codec features headphone, 20 bit DAC, 18 bit ADC, No 3D Stereo > audio0 at auglx0 > ohci0 at pci0 dev 15 function 4 "AMD CS5536 USB" rev 0x02: irq 5, version > 1.0, legacy support > ehci0 at pci0 dev 15 function 5 "AMD CS5536 USB" rev 0x02: irq 5 > usb0 at ehci0: USB revision 2.0 > uhub0 at usb0 configuration 1 interf
unknown warning option '-Wno-unused-but-set-variable'
This is current/i386 on an ALIX.1E (dmesg below). The kernel does not build with the current cvs: cat /usr/src/sys/arch/i386/i386/genassym.cf /usr/src/sys/arch/i386/i386/genassym.cf | sh /usr/src/sys/kern/genassym.sh cc -no-integrated-as -g -Werror -Wall -Wimplicit-function-declaration -Wno-pointer-sign -Wframe-larger-than=2047 -Wno-address-of-packed-member -Wno-constant-conversion -Wno-unused-but-set-variable -Wno-gnu-folding-constant -ffreestanding -fno-pie -mretpoline -O2 -pipe -nostdinc -I/usr/src/sys -I/usr/src/sys/arch/i386/compile/GENERIC/obj -I/usr/src/sys/arch -I/usr/src/sys/dev/pci/drm/include -I/usr/src/sys/dev/pci/drm/include/uapi -I/usr/src/sys/dev/pci/drm/i915 -DDDB -DDIAGNOSTIC -DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DPOOL_DEBUG -DCRYPTO -DSYSVMSG -DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DFFS -DFFS2 -DFFS_SOFTUPDATES -DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DNFSCLIENT -DNFSSERVER -DCD9660 -DUDF -DMSDOSFS -DFIFO -DFUSE -DSOCKET_SPLICE -DTCP_ECN -DTCP_SIGNATURE -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE -DPIPEX -DMROUTING -DMPLS -DBOOT_CONFIG -DUSER_PCICONF -DAPERTURE -DMTRR -DNTFS -DHIBERNATE -DPCIVERBOSE -DEISAVERBOSE -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD -DWSDISPLAY_DEFAULTSCREENS="6" -DX86EMU -DONEWIREVERBOSE -DMAXUSERS=80 -D_KERNEL -MD -MP -MF assym.P > assym.h.tmp error: unknown warning option '-Wno-unused-but-set-variable'; did you mean '-Wno-unused-const-variable'? [-Werror,-Wunknown-warning-option] *** Error 1 in /usr/src/sys/arch/i386/compile/GENERIC (Makefile:1286 'assym.h') Jan OpenBSD 7.0-current (GENERIC) #345: Thu Dec 16 13:19:22 MST 2021 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC real mem = 259207168 (247MB) avail mem = 238182400 (227MB) random: good seed from bootblocks mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: date 07/19/10, BIOS32 rev. 0 @ 0xfa950 apm0 at bios0: Power Management spec V1.2 (slowidle) pcibios0 at bios0: rev 2.1 @ 0xf/0xdfb4 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf30/128 (6 entries) pcibios0: PCI Exclusive IRQs: 5 10 11 pcibios0: no compatible PCI ICU found: ICU vendor 0x1022 product 0x2090 pcibios0: Warning, unable to fix up PCI interrupt routing pcibios0: PCI bus #0 is the last bus bios0: ROM list: 0xc/0x8000 0xc8000/0xa800 0xef000/0x1000! cpu0 at mainbus0: (uniprocessor) cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD" 586-class) 499 MHz, 05-0a-02 cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX,MMXX,3DNOW2,3DNOW mtrr: K6-family MTRR support (2 registers) amdmsr0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x33 vga1 at pci0 dev 1 function 1 "AMD Geode LX Video" rev 0x00 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) glxsb0 at pci0 dev 1 function 2 "AMD Geode LX Crypto" rev 0x00: RNG AES vr0 at pci0 dev 13 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 11, address 00:0d:b9:0e:9e:f4 ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034 glxpcib0 at pci0 dev 15 function 0 "AMD CS5536 ISA" rev 0x03: rev 3, 32-bit 3579545Hz timer, watchdog, gpio, i2c gpio0 at glxpcib0: 32 pins iic0 at glxpcib0 pciide0 at pci0 dev 15 function 2 "AMD CS5536 IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 0 drive 0: wd0: 1-sector PIO, LBA48, 15279MB, 31293360 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 pciide0: channel 1 ignored (disabled) auglx0 at pci0 dev 15 function 3 "AMD CS5536 Audio" rev 0x01: irq 11, CS5536 AC97 ac97: codec id 0x414c4770 (Avance Logic ALC203 rev 0) ac97: codec features headphone, 20 bit DAC, 18 bit ADC, No 3D Stereo audio0 at auglx0 ohci0 at pci0 dev 15 function 4 "AMD CS5536 USB" rev 0x02: irq 5, version 1.0, legacy support ehci0 at pci0 dev 15 function 5 "AMD CS5536 USB" rev 0x02: irq 5 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 configuration 1 interface 0 "AMD EHCI root hub" rev 2.00/1.00 addr 1 isa0 at glxpcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo com0: console com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo pckbc0 at isa0 port 0x60/5 irq 1 irq 12 pckbd0 at pckbc0 (kbd slot) wskbd0 at pckbd0: console keyboard, using wsdisplay0 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 wbsio0 at isa0 port 0x2e/2: W83627HF rev 0x41 lm1 at wbsio0 port 0x290/8: W83627HF npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 usb1 at ohci0: USB revision 1.0 uhub1 at usb1 configuration 1 interface 0 "AMD OHCI root hub" rev 1.00/1.00 addr 1 dt: 451 probes umass0 at uhub0 port 4 configuration 1 interface 0 "JMicron USB to ATA/ATA