5.4 release w/flashboot

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

5.4 release w/flashboot

Michael Truog
Hi,

I know flashboot isn't part of OpenBSD officially, but I had a simple error when attempting to build the 5.4 release with the script provided by flashboot and I was hoping someone would know if it was a problem with the release or flashboot itself.  I filed an issue there (https://github.com/openbsd/flashboot/issues/33), but I thought an email would help, since people may have already ran into it in 5.4.  The error is with the build-release.sh script (https://github.com/openbsd/flashboot/blob/master/build-release.sh) attempting to compile the 5.4 release (after the obvious changes to the script), to receive the error below (on i386):

|===> sys/arch/i386/stand/boot
cc  -m32  -fno-pie  -I/usr/src/sys/arch/i386/stand/boot/../../../.. -I/usr/src/sys/arch/i386/stand/boot/../libsa -I. -I/usr/src/sys/arch/i386/stand/boot -DSOFTRAID -DBOOTMAGIC=0xc001d00d  -DLINKADDR=0x40120 -DSLOW -DSMALL -DNOBYFOUR -DNO_GZIP -DDYNAMIC_CRC_TABLE -DHEAP_LIMIT=0x90000 -I/usr/src/sys/arch/i386/stand/boot/../../../../stand/boot  -c /usr/src/sys/arch/i386/stand/boot/srt0.S
cc   -Os -Wall -Werror -fno-stack-protector -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wbounded -Wshadow -Wdeclaration-after-statement  -m32 -D_STANDALONE -nostdinc -fno-builtin -fpack-struct -D__INTERNAL_LIBSA_CREAD -fno-pie  -I/usr/src/sys/arch/i386/stand/boot/../../../.. -I/usr/src/sys/arch/i386/stand/boot/../libsa -I. -I/usr/src/sys/arch/i386/stand/boot -DSOFTRAID -DBOOTMAGIC=0xc001d00d  -DLINKADDR=0x40120 -DSLOW -DSMALL -DNOBYFOUR -DNO_GZIP -DDYNAMIC_CRC_TABLE -DHEAP_LIMIT=0x90000 -I/usr/src/sys/arch/i386/stand/boot/../../../../stand/boot  -c /usr/src/sys/arch/i386/stand/boot/../../../../stand/boot/boot.c
cc   -Os -Wall -Werror -fno-stack-protector -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wbounded -Wshadow -Wdeclaration-after-statement  -m32 -D_STANDALONE -nostdinc -fno-builtin -fpack-struct -D__INTERNAL_LIBSA_CREAD -fno-pie  -I/usr/src/sys/arch/i386/stand/boot/../../../.. -I/usr/src/sys/arch/i386/stand/boot/../libsa -I. -I/usr/src/sys/arch/i386/stand/boot -DSOFTRAID -DBOOTMAGIC=0xc001d00d  -DLINKADDR=0x40120 -DSLOW -DSMALL -DNOBYFOUR -DNO_GZIP -DDYNAMIC_CRC_TABLE -DHEAP_LIMIT=0x90000 -I/usr/src/sys/arch/i386/stand/boot/../../../../stand/boot  -c /usr/src/sys/arch/i386/stand/boot/../../../../stand/boot/cmd.c
cc1: warnings being treated as errors
/usr/src/sys/arch/i386/stand/boot/../../../../stand/boot/cmd.c: In function 'read_conf':
/usr/src/sys/arch/i386/stand/boot/../../../../stand/boot/cmd.c:141: warning: comparison between signed and unsigned
/usr/src/sys/arch/i386/stand/boot/../../../../stand/boot/cmd.c: In function 'docmd':
/usr/src/sys/arch/i386/stand/boot/../../../../stand/boot/cmd.c:218: warning: comparison between signed and unsigned
/usr/src/sys/arch/i386/stand/boot/../../../../stand/boot/cmd.c: In function 'readline':
/usr/src/sys/arch/i386/stand/boot/../../../../stand/boot/cmd.c:307: warning: comparison between signed and unsigned
*** Error 1 in sys/arch/i386/stand/boot (<sys.mk>:87 'cmd.o')
*** Error 1 in sys/arch/i386/stand (<bsd.subdir.mk>:48 'all')
*** Error 1 in sys/arch/i386 (<bsd.subdir.mk>:48 'all')
*** Error 1 in sys (<bsd.subdir.mk>:48 'all')
*** Error 1 in . (<bsd.subdir.mk>:48 'all')
*** Error 1 in /usr/src (Makefile:89 'build')
DONE! Now build kernel.|

Please ignore the fact the script didn't detect the error.  I have used the i386 files from CD1 for 5.4 with src/sys coming from the mirrors (dropped into the diststuff directory, for the script to find).  The sys tarball wasn't on the CDs and the src tarball on CD3 is different than what is on the mirrors.  So, I really am trying to find the proper files for the release to build without errors.

Thanks,
Michael