* Package: sys-boot/netboot-0.10.2-r3:0 * Repository: gentoo * Maintainer: conikost@gentoo.org * Upstream: https://sourceforge.net/p/netboot/bugs/ * USE: abi_x86_64 amd64 bootrom elibc_glibc kernel_linux lzo userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking netboot-0.10.2.tar.gz to /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work >>> Source unpacked in /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work >>> Preparing source in /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2 ... * Applying netboot-0.10.2-ldflags.patch ... [ ok ] * Applying netboot-0.10.2-slibtool.patch ... [ ok ] >>> Source prepared. * Clang 16 testing: this build is using a /etc/portage/bashrc hook (2022-11-24T21:47)! * Clang 16 testing: see https://wiki.gentoo.org/wiki/Modern_C_porting for more info. >>> Configuring source in /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2 ... * econf: updating netboot-0.10.2/misc/config.sub with /usr/share/gnuconfig/config.sub * econf: updating netboot-0.10.2/misc/config.guess with /usr/share/gnuconfig/config.guess ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --datarootdir=/usr/share --disable-static --docdir=/usr/share/doc/netboot-0.10.2-r3 --htmldir=/usr/share/doc/netboot-0.10.2-r3/html --libdir=/usr/lib64 --datadir=/usr/share/netboot --without-berkeley-db --enable-bootrom --with-lzo --without-odbc --disable-static --with-gnu-as86=no --with-gnu-cc86=no --with-gnu-ld86=no checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for x86_64-pc-linux-gnu-gcc... clang checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether clang accepts -g... yes checking for clang option to accept ISO C89... none needed checking for library containing strerror... none required checking for function prototypes... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for working volatile... yes checking if character set is EBCDIC... no checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a BSD-compatible install... /usr/lib/portage/python3.10/ebuild-helpers/xattr/install -c checking for gawk... gawk checking how to run the C preprocessor... clang -E checking for ar... ar checking for bison... bison -y checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for a sed that does not truncate output... /bin/sed checking for ld used by clang... /usr/lib/llvm/15/bin/x86_64-pc-linux-gnu-ld checking if the linker (/usr/lib/llvm/15/bin/x86_64-pc-linux-gnu-ld) is GNU ld... yes checking for /usr/lib/llvm/15/bin/x86_64-pc-linux-gnu-ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking whether we are using the GNU C++ compiler... yes checking whether clang++ accepts -g... yes checking how to run the C++ preprocessor... clang++ -E checking for x86_64-pc-linux-gnu-g77... no checking for x86_64-pc-linux-gnu-f77... no checking for x86_64-pc-linux-gnu-xlf... no checking for x86_64-pc-linux-gnu-frt... no checking for x86_64-pc-linux-gnu-pgf77... no checking for x86_64-pc-linux-gnu-cf77... no checking for x86_64-pc-linux-gnu-fort77... no checking for x86_64-pc-linux-gnu-fl32... no checking for x86_64-pc-linux-gnu-af77... no checking for x86_64-pc-linux-gnu-f90... no checking for x86_64-pc-linux-gnu-xlf90... no checking for x86_64-pc-linux-gnu-pgf90... no checking for x86_64-pc-linux-gnu-pghpf... no checking for x86_64-pc-linux-gnu-epcf90... no checking for x86_64-pc-linux-gnu-gfortran... x86_64-pc-linux-gnu-gfortran checking whether we are using the GNU Fortran 77 compiler... yes checking whether x86_64-pc-linux-gnu-gfortran accepts -g... yes checking the maximum length of command line arguments... 32768 checking command to parse /usr/bin/nm -B output from clang object... ok checking for objdir... .libs checking for x86_64-pc-linux-gnu-ar... (cached) ar checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip checking if clang supports -fno-rtti -fno-exceptions... yes checking for clang option to produce PIC... -fPIC checking if clang PIC flag -fPIC works... yes checking if clang static flag -static works... yes checking if clang supports -c -o file.o... yes checking whether the clang linker (/usr/lib/llvm/15/bin/x86_64-pc-linux-gnu-ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking for shl_load... no checking for shl_load in -ldld... no checking for dlopen... yes checking whether a program can dlopen itself... no checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating libtool checking for GNU C compiler... no checking for GNU assembler... no checking for GNU linker... no configure: WARNING: Can't compile i86 modules, using default checking for ANSI C header files... (cached) yes checking whether stat file-mode macros are broken... no checking whether time.h and sys/time.h may both be included... yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for sys/wait.h that is POSIX.1 compatible... yes checking for getopt.h... yes checking for malloc.h... yes checking for netdb.h... yes checking for assert.h... yes checking for limits.h... yes checking for paths.h... yes checking for pwd.h... yes checking for locale.h... yes checking for langinfo.h... yes checking for sys/time.h... yes checking for sys/param.h... yes checking for sys/bitypes.h... yes checking for sys/file.h... yes checking for sys/select.h... yes checking for sys/poll.h... yes checking for netinet/in.h... yes checking for arpa/inet.h... yes checking whether errno must be declared... no checking whether struct tm is in sys/time.h or time.h... time.h checking return type of signal handlers... void checking for size_t... yes checking for pid_t... yes checking for uid_t in sys/types.h... yes checking for mode_t... yes checking for intptr_t... yes checking for strncmp... yes checking for strstr... yes checking for strspn... yes checking for strcspn... yes checking for strtol... yes checking for memset... yes checking for memcmp... yes checking for vfprintf... yes checking for vsprintf... yes checking for vasprintf... yes checking for bzero... yes checking for bcopy... yes checking for index... yes checking for rindex... yes checking for memcpy... yes checking for memmove... yes checking for strchr... yes checking for strrchr... yes checking for atexit... yes checking for getcwd... yes checking for waitpid... yes checking for raise... yes checking for select... yes checking for mkdir... yes checking for mkstemp... yes checking for getenv... yes checking for gettimeofday... yes checking for flock... yes checking for setlocale... yes checking for nl_langinfo... yes checking for getopt_long... yes checking for gethostbyname... yes checking for inet_ntoa... yes checking for inet_addr... yes checking for LZO compression support... yes checking for packed attribute... yes checking for definition of __uxx in types.h... no checking for definition of u_intxx_t in types.h... yes checking for int *... yes checking size of int *... 8 checking for unsigned short... yes checking size of unsigned short... 2 checking for unsigned long... yes checking size of unsigned long... 8 checking for unsigned int... yes checking size of unsigned int... 4 checking whether system allows accessing misaligned data... no checking whether byte ordering is bigendian... no configure: creating ./config.status config.status: creating make.config config.status: creating include/version.h config.status: creating include/config.h >>> Source configured. '/var/tmp/portage/sys-boot/netboot-0.10.2-r3/temp/clang16-errors.log' -> '/var/tmp/clang/sys-boot/netboot-0.10.2-r3/clang16-errors.log' '/var/tmp/portage/sys-boot/netboot-0.10.2-r3/temp/clang16-safe.log' -> '/var/tmp/clang/sys-boot/netboot-0.10.2-r3/clang16-safe.log' >>> Compiling source in /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2 ... make -j4 -j1 making all in bootrom make[1]: Entering directory '/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/bootrom' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/bootrom' making all in misc make[1]: Entering directory '/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/misc' sed "s&%PREFIX%&/usr&g; \ s&%LIBDIR%&/usr/lib64&g; \ s&%DATADIR%&/usr/share/netboot&g" instdrv.in >instdrv make[2]: Entering directory '/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib' mkdir .libs clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib -DDEFAULT_DIR=\"/usr/lib64\" -DDEFAULT_CONFIG=\"/etc/netboot.config\" -DDEFAULT_DATABASE=\"//netboot.db\" -c setup.c -fPIC -DPIC -o .libs/setup.o clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib -c parseopt.c -fPIC -DPIC -o .libs/parseopt.o clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib -c filetime.c -fPIC -DPIC -o .libs/filetime.o clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib -c dbsetup.c -fPIC -DPIC -o .libs/dbsetup.o clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib -c config.c -fPIC -DPIC -o .libs/config.o clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib -c memory.c -fPIC -DPIC -o .libs/memory.o clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib -c parsesect.c -fPIC -DPIC -o .libs/parsesect.o clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib -c nbexit.c -fPIC -DPIC -o .libs/nbexit.o nbexit.c:82:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] prnerr(nberrmsg); ^~~~~~~~ nbexit.c:82:10: note: treat the string as an argument to avoid this prnerr(nberrmsg); ^ "%s", 1 warning generated. clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib -c nblog.c -fPIC -DPIC -o .libs/nblog.o clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib -c nbexec.c -fPIC -DPIC -o .libs/nbexec.o clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib -c lockfile.c -fPIC -DPIC -o .libs/lockfile.o clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib -c list.c -fPIC -DPIC -o .libs/list.o clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib -c db.c -fPIC -DPIC -o .libs/db.o clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib -c filesize.c -fPIC -DPIC -o .libs/filesize.o clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib -c sysdb.c -fPIC -DPIC -o .libs/sysdb.o clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib -c readelf.c -fPIC -DPIC -o .libs/readelf.o readelf.c:950:37: warning: taking address of packed member 'e_type' of class or structure 's_Elf_Ehdr' may result in an unaligned pointer value [-Waddress-of-packed-member] elf_header.e_type = get_word(ehdr.e_type); ^~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ readelf.c:951:37: warning: taking address of packed member 'e_machine' of class or structure 's_Elf_Ehdr' may result in an unaligned pointer value [-Waddress-of-packed-member] elf_header.e_machine = get_word(ehdr.e_machine); ^~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ readelf.c:952:28: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] elf_header.e_version = get_long(ehdr.e_version); ^~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ readelf.c:952:28: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] elf_header.e_version = get_long(ehdr.e_version); ^~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ readelf.c:953:28: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] elf_header.e_entry = get_long(ehdr.e_entry); ^~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ readelf.c:953:28: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] elf_header.e_entry = get_long(ehdr.e_entry); ^~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ readelf.c:954:28: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] elf_header.e_phoff = get_long(ehdr.e_phoff); ^~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ readelf.c:954:28: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] elf_header.e_phoff = get_long(ehdr.e_phoff); ^~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ readelf.c:955:28: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] elf_header.e_shoff = get_long(ehdr.e_shoff); ^~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ readelf.c:955:28: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] elf_header.e_shoff = get_long(ehdr.e_shoff); ^~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ readelf.c:956:28: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] elf_header.e_flags = get_long(ehdr.e_flags); ^~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ readelf.c:956:28: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] elf_header.e_flags = get_long(ehdr.e_flags); ^~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ readelf.c:957:37: warning: taking address of packed member 'e_ehsize' of class or structure 's_Elf_Ehdr' may result in an unaligned pointer value [-Waddress-of-packed-member] elf_header.e_ehsize = get_word(ehdr.e_ehsize); ^~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ readelf.c:958:37: warning: taking address of packed member 'e_phentsize' of class or structure 's_Elf_Ehdr' may result in an unaligned pointer value [-Waddress-of-packed-member] elf_header.e_phentsize = get_word(ehdr.e_phentsize); ^~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ readelf.c:959:37: warning: taking address of packed member 'e_phnum' of class or structure 's_Elf_Ehdr' may result in an unaligned pointer value [-Waddress-of-packed-member] elf_header.e_phnum = get_word(ehdr.e_phnum); ^~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ readelf.c:960:37: warning: taking address of packed member 'e_shentsize' of class or structure 's_Elf_Ehdr' may result in an unaligned pointer value [-Waddress-of-packed-member] elf_header.e_shentsize = get_word(ehdr.e_shentsize); ^~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ readelf.c:961:37: warning: taking address of packed member 'e_shnum' of class or structure 's_Elf_Ehdr' may result in an unaligned pointer value [-Waddress-of-packed-member] elf_header.e_shnum = get_word(ehdr.e_shnum); ^~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ readelf.c:962:37: warning: taking address of packed member 'e_shstrndx' of class or structure 's_Elf_Ehdr' may result in an unaligned pointer value [-Waddress-of-packed-member] elf_header.e_shstrndx = get_word(ehdr.e_shstrndx); ^~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ 18 warnings generated. clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib -c dbtext.c -fPIC -DPIC -o .libs/dbtext.o clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib -c signal.c -fPIC -DPIC -o .libs/signal.o clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib -c md5.c -fPIC -DPIC -o .libs/md5.o clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib -c parsefile.c -fPIC -DPIC -o .libs/parsefile.o clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib -c dbmatch.c -fPIC -DPIC -o .libs/dbmatch.o clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib -c access.c -fPIC -DPIC -o .libs/access.o clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib -c tempfile.c -fPIC -DPIC -o .libs/tempfile.o clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib -c help.c -fPIC -DPIC -o .libs/help.o clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib -c charset.c -fPIC -DPIC -o .libs/charset.o clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib -c nbmalloc.c -fPIC -DPIC -o .libs/nbmalloc.o clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib -c fileio.c -fPIC -DPIC -o .libs/fileio.o clang -shared .libs/parseopt.o .libs/parsefile.o .libs/parsesect.o .libs/config.o .libs/setup.o .libs/sysdb.o .libs/dbsetup.o .libs/db.o .libs/dbmatch.o .libs/dbtext.o .libs/charset.o .libs/memory.o .libs/signal.o .libs/nbmalloc.o .libs/nblog.o .libs/nbexit.o .libs/nbexec.o .libs/access.o .libs/fileio.o .libs/filesize.o .libs/filetime.o .libs/lockfile.o .libs/tempfile.o .libs/md5.o .libs/readelf.o .libs/help.o .libs/list.o -L/usr/lib64 -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-soname -Wl,libnb.so.0 -o .libs/libnb.so.0.1.5 (cd .libs && rm -f libnb.so.0 && ln -s libnb.so.0.1.5 libnb.so.0) (cd .libs && rm -f libnb.so && ln -s libnb.so.0.1.5 libnb.so) creating libnb.la (cd .libs && rm -f libnb.la && ln -s ../libnb.la libnb.la) make[2]: Leaving directory '/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib' clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/misc -c -o gccrules.o gccrules.c mkdir .libs clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/misc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o gccrules gccrules.o -L/usr/lib64 -L/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib/.libs/libnb.so -Wl,--rpath -Wl,/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib/.libs ./gccrules -ogccopt.h rules.stack rules.gcc rules.post clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/misc -c -o gccopt.o gccopt.c gccopt.c:918:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf(fp, headstr); ^~~~~~~ gccopt.c:918:14: note: treat the string as an argument to avoid this fprintf(fp, headstr); ^ "%s", 1 warning generated. clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/misc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o gccopt gccopt.o -L/usr/lib64 -L/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib/.libs/libnb.so -Wl,--rpath -Wl,/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib/.libs clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/misc -c -o nbmd5.o nbmd5.c clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/misc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o .libs/nbmd5 nbmd5.o -L/usr/lib64 -L/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib/.libs/libnb.so creating nbmd5 sed "s&%CONFIG%&/etc/netboot.config&g; \ s&%LIBDIR%&/usr/lib64&g; \ s&%DATADIR%&/usr/share/netboot&g" netboot.man.in >netboot.man clang -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/misc -o makec makec.c makec.c:39:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int main(argc, argv) ^ 1 warning generated. cat netboot.drivers.in difs/3com.dif difs/adaptec.dif difs/amd.dif difs/compaq.dif difs/digital.dif difs/dlink.dif difs/hp.dif difs/ibm.dif difs/intel.dif difs/microdyne.dif difs/misc.dif difs/novell.dif difs/realtek.dif difs/smc.dif netboot.drivers.end >netboot.drivers sed "s&%PREFIX%&/usr&g; \ s&%LIBDIR%&/usr/lib64&g; \ s&%DATADIR%&/usr/share/netboot&g" netboot.config.in >netboot.config make[1]: Leaving directory '/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/misc' making all in FlashCard make[1]: Entering directory '/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/FlashCard' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/FlashCard' making all in mknbi-linux make[1]: Entering directory '/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/mknbi-linux' clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/mknbi-linux -c -o sysdb.o sysdb.c clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/mknbi-linux -c -o mknbi.o mknbi.c mknbi.c:144:16: warning: taking address of packed member 'version' of class or structure 'setup_header' may result in an unaligned pointer value [-Waddress-of-packed-member] get_word(setup_hdr.version) < SETUP_VERSION_OLD) { ^~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:150:16: warning: taking address of packed member 'kernel_version' of class or structure 'setup_header' may result in an unaligned pointer value [-Waddress-of-packed-member] i = get_word(setup_hdr.kernel_version); ^~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:198:7: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] l = get_long(cur_rec->ilength) + size; ^~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:198:7: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] l = get_long(cur_rec->ilength) + size; ^~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:199:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->ilength.low, htot(low_word(l))); ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:200:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->ilength.high, htot(high_word(l))); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:201:7: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] l = get_long(cur_rec->mlength) + size; ^~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:201:7: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] l = get_long(cur_rec->mlength) + size; ^~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:202:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->mlength.low, htot(low_word(l))); ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:203:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->mlength.high, htot(high_word(l))); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:272:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->address.low, htot(low_word(segment << 4))); ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:273:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->address.high, htot(high_word(segment << 4))); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:298:20: warning: taking address of packed member 'textsize' of class or structure 'nbld_header' may result in an unaligned pointer value [-Waddress-of-packed-member] tsize = get_word(hp->textsize); ^~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:299:20: warning: taking address of packed member 'datasize' of class or structure 'nbld_header' may result in an unaligned pointer value [-Waddress-of-packed-member] dsize = get_word(hp->datasize); ^~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:300:20: warning: taking address of packed member 'heapsize' of class or structure 'nbld_header' may result in an unaligned pointer value [-Waddress-of-packed-member] ssize = get_word(hp->heapsize) + get_word(hp->stacksize); ^~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:300:45: warning: taking address of packed member 'stacksize' of class or structure 'nbld_header' may result in an unaligned pointer value [-Waddress-of-packed-member] ssize = get_word(hp->heapsize) + get_word(hp->stacksize); ^~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:317:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->mlength.low, htot(low_word(msize))); ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:318:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->mlength.high, htot(high_word(msize))); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:323:10: warning: taking address of packed member 'segment' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(header.execute.segment, htot(DEF_BOOTLSEG)); ^~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:324:10: warning: taking address of packed member 'offset' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(header.execute.offset, getval(hp->nbsetup)); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:324:40: warning: taking address of packed member 'nbsetup' of class or structure 'nbld_header' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(header.execute.offset, getval(hp->nbsetup)); ^~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:54: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:350:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->mlength.low, htot(low_word(CMDLMSIZE))); ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:351:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->mlength.high, htot(high_word(CMDLMSIZE))); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:380:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->mlength.low, htot(low_word(INITMSIZE))); ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:381:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->mlength.high, htot(high_word(INITMSIZE))); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:393:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->mlength.low, htot(low_word(SETUPMSIZE))); ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:394:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->mlength.high, htot(high_word(SETUPMSIZE))); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:401:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->mlength.low, cur_rec->ilength.low); ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:402:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->mlength.high, cur_rec->ilength.high); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:406:29: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] unsigned long imagestart = get_long(cur_rec->address) + ^~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:406:29: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] unsigned long imagestart = get_long(cur_rec->address) + ^~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:407:7: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(cur_rec->mlength); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:407:7: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(cur_rec->mlength); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:429:9: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->mlength.low, htot(low_word(l))); ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:430:9: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->mlength.high, htot(high_word(l))); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:433:9: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->address.low, htot(low_word(l))); ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:434:9: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->address.high, htot(high_word(l))); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:552:4: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lh->magic), ^~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:552:4: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lh->magic), ^~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:558:13: warning: taking address of packed member 'segment' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] get_word(lh->locn.segment), get_word(lh->locn.offset), ^~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:558:41: warning: taking address of packed member 'offset' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] get_word(lh->locn.segment), get_word(lh->locn.offset), ^~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:559:13: warning: taking address of packed member 'segment' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] get_word(lh->execute.segment), get_word(lh->execute.offset), ^~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:559:44: warning: taking address of packed member 'offset' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] get_word(lh->execute.segment), get_word(lh->execute.offset), ^~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:586:6: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lr->address), ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:586:6: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lr->address), ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:587:6: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lr->address) >= 0x100000L ? " (high memory)" : "", ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:587:6: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lr->address) >= 0x100000L ? " (high memory)" : "", ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:588:6: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lr->ilength), ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:588:6: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lr->ilength), ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:589:6: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lr->mlength), ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:589:6: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lr->mlength), ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:611:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] prnerr(cp); ^~ mknbi.c:611:9: note: treat the string as an argument to avoid this prnerr(cp); ^ "%s", mknbi.c:626:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] prnerr(cp); ^~ mknbi.c:626:9: note: treat the string as an argument to avoid this prnerr(cp); ^ "%s", mknbi.c:917:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(header.magic.low, htot(low_word(NBHEADER_MAGIC))); ^~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:918:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(header.magic.high, htot(high_word(NBHEADER_MAGIC))); ^~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:919:10: warning: taking address of packed member 'segment' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(header.locn.segment, htot(DEF_HEADERSEG)); ^~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:920:10: warning: taking address of packed member 'offset' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(header.locn.offset, htot(0)); ^~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:921:10: warning: taking address of packed member 'bootsig' of class or structure 'load_header' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(header.bootsig, htot(NBHEADER_SIG)); ^~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ 58 warnings generated. cp firstd_c.c-default firstd_c.c clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/mknbi-linux -c -o firstd_c.o firstd_c.c cp first_c.c-default first_c.c clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/mknbi-linux -c -o first_c.o first_c.c mkdir .libs clang -o .libs/mknbi -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 mknbi.o sysdb.o first_c.o firstd_c.o -L/usr/lib64 -L/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib/.libs/libnb.so creating mknbi make[1]: Leaving directory '/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/mknbi-linux' making all in makerom make[1]: Entering directory '/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/makerom' clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/makerom -c -o netdrv.o netdrv.c netdrv.c:195:22: warning: taking address of packed member 'headsize' of class or structure 'exehdr' may result in an unaligned pointer value [-Waddress-of-packed-member] exehlen = get_word(exep->headsize) * 16; ^~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ netdrv.c:202:15: warning: taking address of packed member 'lastsect' of class or structure 'exehdr' may result in an unaligned pointer value [-Waddress-of-packed-member] l = get_word(exep->lastsect); ^~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ netdrv.c:203:23: warning: taking address of packed member 'fsize' of class or structure 'exehdr' may result in an unaligned pointer value [-Waddress-of-packed-member] exesize = (get_word(exep->fsize) - 1) * EXE_SECTSIZE; ^~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ netdrv.c:215:48: warning: taking address of packed member 'minpara' of class or structure 'exehdr' may result in an unaligned pointer value [-Waddress-of-packed-member] allocmin = ((exesize + 15L) / 16L) + get_word(exep->minpara) + ^~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ netdrv.c:217:48: warning: taking address of packed member 'maxpara' of class or structure 'exehdr' may result in an unaligned pointer value [-Waddress-of-packed-member] allocmax = ((exesize + 15L) / 16L) + get_word(exep->maxpara) + ^~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ netdrv.c:384:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(il.low, htot(low_word(pdp->progs.prognum))); ^~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ netdrv.c:416:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(il.low, htot(low_word(pisize))); ^~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ netdrv.c:425:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(il.low, htot(low_word(ndp->progs.prognum))); ^~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ 8 warnings generated. clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/makerom -c -o drvdb.o drvdb.c clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/makerom -c -o console.o console.c console.c:720:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf(prompt); ^~~~~~ console.c:720:10: note: treat the string as an argument to avoid this printf(prompt); ^ "%s", 1 warning generated. clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/makerom -c -o protini.o protini.c protini.c:240:9: warning: taking address of packed member 'offset' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(mp->next.offset, htot(newofs)); ^~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ protini.c:241:9: warning: taking address of packed member 'offset' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(mod.prev.offset, htot(lastmod)); ^~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ protini.c:265:10: warning: taking address of packed member 'paramtype' of class or structure 'param_struct' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(par.paramtype, htot(PARAM_NUM)); ^~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ protini.c:266:10: warning: taking address of packed member 'paramlen' of class or structure 'param_struct' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(par.paramlen, htot(4)); ^~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ protini.c:291:10: warning: taking address of packed member 'paramtype' of class or structure 'param_struct' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(par.paramtype, htot(PARAM_STRING)); ^~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ protini.c:292:10: warning: taking address of packed member 'paramlen' of class or structure 'param_struct' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(par.paramlen, htot(bytelen(str) + 1)); ^~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ protini.c:335:10: warning: taking address of packed member 'numparams' of class or structure 'keyword_entry' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(key.numparams, htot(argnum)); ^~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ protini.c:341:9: warning: taking address of packed member 'offset' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(kp->next.offset, htot(newofs)); ^~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ protini.c:342:9: warning: taking address of packed member 'offset' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(key.prev.offset, htot(lastkeyword)); ^~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ 9 warnings generated. clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/makerom -c -o freeze.o freeze.c clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/makerom -c -o makehex.o makehex.c clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/makerom -c -o install.o install.c clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/makerom -c -o doconfig.o doconfig.c clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/makerom -c -o makeflash.o makeflash.c makeflash.c:62:31: warning: taking address of packed member 'textsize' of class or structure 'nbld_header' may result in an unaligned pointer value [-Waddress-of-packed-member] textsize = roundup(get_word(hp->textsize), (unsigned short)16); ^~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ /usr/include/sys/param.h:94:31: note: expanded from macro 'roundup' ? (((x) + (y) - 1) & ~((y) - 1)) \ ^ makeflash.c:62:31: warning: taking address of packed member 'textsize' of class or structure 'nbld_header' may result in an unaligned pointer value [-Waddress-of-packed-member] textsize = roundup(get_word(hp->textsize), (unsigned short)16); ^~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ /usr/include/sys/param.h:95:32: note: expanded from macro 'roundup' : ((((x) + ((y) - 1)) / (y)) * (y))) ^ makeflash.c:63:23: warning: taking address of packed member 'userptr' of class or structure 'nbld_header' may result in an unaligned pointer value [-Waddress-of-packed-member] tableofs = get_word(hp->userptr); ^~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ makeflash.c:66:21: warning: taking address of packed member 'devtype' of class or structure 'istruct' may result in an unaligned pointer value [-Waddress-of-packed-member] devtype = get_word(ip->devtype); ^~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ makeflash.c:67:19: warning: taking address of packed member 'devlist' of class or structure 'istruct' may result in an unaligned pointer value [-Waddress-of-packed-member] idofs = get_word(ip->devlist); ^~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ makeflash.c:127:7: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] l = get_long(cur_rec->ilength) + size; ^~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ makeflash.c:127:7: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] l = get_long(cur_rec->ilength) + size; ^~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ makeflash.c:128:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->ilength.low, htot(low_word(l))); ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ makeflash.c:129:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->ilength.high, htot(high_word(l))); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ makeflash.c:130:7: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] l = get_long(cur_rec->mlength) + size; ^~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ makeflash.c:130:7: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] l = get_long(cur_rec->mlength) + size; ^~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ makeflash.c:131:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->mlength.low, htot(low_word(l))); ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ makeflash.c:132:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->mlength.high, htot(high_word(l))); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ makeflash.c:162:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->address.low, htot(low_word(segment << 4))); ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ makeflash.c:163:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->address.high, htot(high_word(segment << 4))); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ makeflash.c:189:20: warning: taking address of packed member 'textsize' of class or structure 'nbld_header' may result in an unaligned pointer value [-Waddress-of-packed-member] tsize = get_word(hp->textsize); ^~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ makeflash.c:190:20: warning: taking address of packed member 'datasize' of class or structure 'nbld_header' may result in an unaligned pointer value [-Waddress-of-packed-member] dsize = get_word(hp->datasize); ^~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ makeflash.c:191:20: warning: taking address of packed member 'heapsize' of class or structure 'nbld_header' may result in an unaligned pointer value [-Waddress-of-packed-member] ssize = get_word(hp->heapsize) + get_word(hp->stacksize); ^~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ makeflash.c:191:45: warning: taking address of packed member 'stacksize' of class or structure 'nbld_header' may result in an unaligned pointer value [-Waddress-of-packed-member] ssize = get_word(hp->heapsize) + get_word(hp->stacksize); ^~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ makeflash.c:208:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->mlength.low, htot(low_word(msize))); ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ makeflash.c:209:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->mlength.high, htot(high_word(msize))); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ makeflash.c:214:10: warning: taking address of packed member 'segment' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(header.execute.segment, htot(PROGRAMSEG)); ^~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ makeflash.c:215:10: warning: taking address of packed member 'offset' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(header.execute.offset, getval(hp->nbsetup)); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ makeflash.c:215:40: warning: taking address of packed member 'nbsetup' of class or structure 'nbld_header' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(header.execute.offset, getval(hp->nbsetup)); ^~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:54: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ makeflash.c:254:4: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lh->magic), ^~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ makeflash.c:254:4: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lh->magic), ^~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ makeflash.c:259:13: warning: taking address of packed member 'segment' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] get_word(lh->locn.segment), get_word(lh->locn.offset), ^~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ makeflash.c:259:41: warning: taking address of packed member 'offset' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] get_word(lh->locn.segment), get_word(lh->locn.offset), ^~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ makeflash.c:260:13: warning: taking address of packed member 'segment' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] get_word(lh->execute.segment), get_word(lh->execute.offset), ^~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ makeflash.c:260:44: warning: taking address of packed member 'offset' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] get_word(lh->execute.segment), get_word(lh->execute.offset), ^~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ makeflash.c:286:6: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lr->address), ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ makeflash.c:286:6: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lr->address), ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ makeflash.c:287:6: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lr->address) >= 0x100000L && ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ makeflash.c:287:6: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lr->address) >= 0x100000L && ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ makeflash.c:289:6: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lr->ilength), ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ makeflash.c:289:6: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lr->ilength), ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ makeflash.c:290:6: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lr->mlength)); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ makeflash.c:290:6: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lr->mlength)); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ makeflash.c:325:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(header.magic.low, htot(low_word(NBHEADER_MAGIC))); ^~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ makeflash.c:326:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(header.magic.high, htot(high_word(NBHEADER_MAGIC))); ^~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ makeflash.c:327:10: warning: taking address of packed member 'segment' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(header.locn.segment, htot(HEADERSEG)); ^~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ makeflash.c:328:10: warning: taking address of packed member 'offset' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(header.locn.offset, htot(0)); ^~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ makeflash.c:329:10: warning: taking address of packed member 'bootsig' of class or structure 'load_header' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(header.bootsig, htot(NBHEADER_SIG)); ^~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ makeflash.c:344:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->vendor_data.ldsize.low, htot(low_word(ldsize))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ makeflash.c:345:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->vendor_data.ldsize.high, htot(high_word(ldsize))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ makeflash.c:346:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->mlength.low, htot(low_word(ROMIMAGEMADD))); ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ makeflash.c:347:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->mlength.high, htot(high_word(ROMIMAGEMADD))); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ makeflash.c:350:7: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] if (get_long(cur_rec->mlength) > ROMIMAGEMAX) { ^~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ makeflash.c:350:7: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] if (get_long(cur_rec->mlength) > ROMIMAGEMAX) { ^~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ 49 warnings generated. clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/makerom -c -o main.o main.c cp flash_c.c-default flash_c.c clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/makerom -c -o flash_c.o flash_c.c clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/makerom -c -o user.o user.c clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/makerom -c -o passes.o passes.c passes.c:216:27: warning: taking address of packed member 'stacksize' of class or structure 's_kernel_romid' may result in an unaligned pointer value [-Waddress-of-packed-member] kernstack = (get_word(idptr->stacksize) + 15L) / 16L; ^~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ passes.c:217:27: warning: taking address of packed member 'datasize' of class or structure 's_kernel_romid' may result in an unaligned pointer value [-Waddress-of-packed-member] kerntotsize = (get_word(idptr->datasize) + 15L) / 16L; ^~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ passes.c:218:27: warning: taking address of packed member 'codesize' of class or structure 's_kernel_romid' may result in an unaligned pointer value [-Waddress-of-packed-member] kerntotsize += (get_word(idptr->codesize) + 15L) / 16L; ^~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ passes.c:285:26: warning: taking address of packed member 'stacksize' of class or structure 's_undi_romid' may result in an unaligned pointer value [-Waddress-of-packed-member] netstack = (get_word(idptr->stacksize) + 15L) / 16L; ^~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ passes.c:286:26: warning: taking address of packed member 'codesize' of class or structure 's_undi_romid' may result in an unaligned pointer value [-Waddress-of-packed-member] nettxtsize = (get_word(idptr->codesize) + 15L) / 16L; ^~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ passes.c:287:26: warning: taking address of packed member 'datasize' of class or structure 's_undi_romid' may result in an unaligned pointer value [-Waddress-of-packed-member] nettotsize = (get_word(idptr->datasize) + 15L) / 16L; ^~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ passes.c:422:9: warning: taking address of packed member 'datasize' of class or structure 's_undi_romid' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(idptr->datasize, htot((netdatsize * 16L) & 0xffff)); ^~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ passes.c:423:9: warning: taking address of packed member 'codesize' of class or structure 's_undi_romid' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(idptr->codesize, htot((nettxtsize * 16L) & 0xffff)); ^~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ passes.c:589:21: warning: taking address of packed member 'size' of class or structure 'pcihdr' may result in an unaligned pointer value [-Waddress-of-packed-member] pci_len = get_word(pci_ptr->size); ^~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ passes.c:596:10: warning: taking address of packed member 'vendorid' of class or structure 'pcihdr' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(pci_ptr->vendorid, htot(bp->pci_vendid & 0xffff)); ^~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ passes.c:597:10: warning: taking address of packed member 'deviceid' of class or structure 'pcihdr' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(pci_ptr->deviceid, htot(bp->pci_devid & 0xffff)); ^~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ passes.c:739:9: warning: taking address of packed member 'romlength' of class or structure 'pcihdr' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(pci_ptr->romlength, (__u16)(romsizchar & 0x00ff)); ^~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ 12 warnings generated. clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/makerom -c -o md5.o md5.c clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/makerom -c -o getdb.o getdb.c mkdir .libs clang -o .libs/makerom -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 main.o doconfig.o drvdb.o getdb.o user.o passes.o netdrv.o freeze.o protini.o makeflash.o makehex.o console.o md5.o install.o flash_c.o -L/usr/lib64 -L/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib/.libs/libnb.so creating makerom make[1]: Leaving directory '/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/makerom' making all in mknbi-dos make[1]: Entering directory '/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/mknbi-dos' clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/mknbi-dos -I /usr/include/lzo -c -o hostfs.o hostfs.c hostfs.c:368:10: warning: taking address of packed member 'reserved_sect' of class or structure 'boot_record' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(bp->reserved_sect, htot(filesys->boot_size / SECTSIZE)); ^~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ hostfs.c:374:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(bp->vol_num.low, htot(low_word(serial.serno))); ^~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ hostfs.c:375:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(bp->vol_num.high, htot(high_word(serial.serno))); ^~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ 3 warnings generated. clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/mknbi-dos -I /usr/include/lzo -c -o mknbi.o mknbi.c mknbi.c:149:7: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] l = get_long(cur_rec->ilength) + size; ^~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:149:7: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] l = get_long(cur_rec->ilength) + size; ^~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:150:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->ilength.low, htot(low_word(l))); ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:151:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->ilength.high, htot(high_word(l))); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:152:7: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] l = get_long(cur_rec->mlength) + size; ^~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:152:7: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] l = get_long(cur_rec->mlength) + size; ^~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:153:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->mlength.low, htot(low_word(l))); ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:154:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->mlength.high, htot(high_word(l))); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:184:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->address.low, htot(low_word(segment << 4))); ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:185:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->address.high, htot(high_word(segment << 4))); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:210:20: warning: taking address of packed member 'textsize' of class or structure 'nbld_header' may result in an unaligned pointer value [-Waddress-of-packed-member] tsize = get_word(hp->textsize); ^~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:211:20: warning: taking address of packed member 'datasize' of class or structure 'nbld_header' may result in an unaligned pointer value [-Waddress-of-packed-member] dsize = get_word(hp->datasize); ^~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:212:20: warning: taking address of packed member 'heapsize' of class or structure 'nbld_header' may result in an unaligned pointer value [-Waddress-of-packed-member] ssize = get_word(hp->heapsize) + get_word(hp->stacksize); ^~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:212:45: warning: taking address of packed member 'stacksize' of class or structure 'nbld_header' may result in an unaligned pointer value [-Waddress-of-packed-member] ssize = get_word(hp->heapsize) + get_word(hp->stacksize); ^~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:237:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->mlength.low, htot(low_word(msize))); ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:238:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->mlength.high, htot(high_word(msize))); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:243:10: warning: taking address of packed member 'segment' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(header.execute.segment, htot(LOADERSEG)); ^~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:244:10: warning: taking address of packed member 'offset' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(header.execute.offset, getval(hp->nbsetup)); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:244:40: warning: taking address of packed member 'nbsetup' of class or structure 'nbld_header' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(header.execute.offset, getval(hp->nbsetup)); ^~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:54: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:277:20: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] rdsize = roundup(get_long(geometry->num_sectors) * SECTSIZE, 1024); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ /usr/include/sys/param.h:94:31: note: expanded from macro 'roundup' ? (((x) + (y) - 1) & ~((y) - 1)) \ ^ mknbi.c:277:20: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] rdsize = roundup(get_long(geometry->num_sectors) * SECTSIZE, 1024); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ /usr/include/sys/param.h:94:31: note: expanded from macro 'roundup' ? (((x) + (y) - 1) & ~((y) - 1)) \ ^ mknbi.c:277:20: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] rdsize = roundup(get_long(geometry->num_sectors) * SECTSIZE, 1024); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ /usr/include/sys/param.h:95:32: note: expanded from macro 'roundup' : ((((x) + ((y) - 1)) / (y)) * (y))) ^ mknbi.c:277:20: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] rdsize = roundup(get_long(geometry->num_sectors) * SECTSIZE, 1024); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ /usr/include/sys/param.h:95:32: note: expanded from macro 'roundup' : ((((x) + ((y) - 1)) / (y)) * (y))) ^ mknbi.c:325:9: warning: taking address of packed member 'lastsize' of class or structure 'rdheader' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(hdrptr->lastsize, htot(l & 0xffff)); ^~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:326:9: warning: taking address of packed member 'blknum' of class or structure 'rdheader' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(hdrptr->blknum, htot(blknum & 0xffff)); ^~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:327:9: warning: taking address of packed member 'blksize' of class or structure 'rdheader' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(hdrptr->blksize, htot(RDBLKSIZE)); ^~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:328:9: warning: taking address of packed member 'hdrsize' of class or structure 'rdheader' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(hdrptr->hdrsize, htot(hdrsize & 0xffff)); ^~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:451:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->mlength.low, htot(low_word(rdsize))); ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:452:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->mlength.high, htot(high_word(rdsize))); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:454:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->address.low, htot(low_word(l))); ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:455:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(cur_rec->address.high, htot(high_word(l))); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:524:4: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lh->magic), ^~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:524:4: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lh->magic), ^~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:530:13: warning: taking address of packed member 'segment' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] get_word(lh->locn.segment), get_word(lh->locn.offset), ^~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:530:41: warning: taking address of packed member 'offset' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] get_word(lh->locn.segment), get_word(lh->locn.offset), ^~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:531:13: warning: taking address of packed member 'segment' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] get_word(lh->execute.segment), get_word(lh->execute.offset), ^~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:531:44: warning: taking address of packed member 'offset' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] get_word(lh->execute.segment), get_word(lh->execute.offset), ^~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:557:6: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lr->address), ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:557:6: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lr->address), ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:558:6: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lr->address) >= 0x100000L && ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:558:6: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lr->address) >= 0x100000L && ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:560:6: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lr->ilength), ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:560:6: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lr->ilength), ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:561:6: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lr->mlength)); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:561:6: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] get_long(lr->mlength)); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:564:24: warning: taking address of packed member 'num_heads' of class or structure 'disk_geometry' may result in an unaligned pointer value [-Waddress-of-packed-member] int heads = get_word(lr->vendor_data.geometry.num_heads); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:565:23: warning: taking address of packed member 'cylinders' of class or structure 'disk_geometry' may result in an unaligned pointer value [-Waddress-of-packed-member] int cyls = get_word(lr->vendor_data.geometry.cylinders); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:566:22: warning: taking address of packed member 'sect_per_track' of class or structure 'disk_geometry' may result in an unaligned pointer value [-Waddress-of-packed-member] int spt = get_word(lr->vendor_data.geometry.sect_per_track); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ mknbi.c:616:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] prnerr(cp); ^~ mknbi.c:616:9: note: treat the string as an argument to avoid this prnerr(cp); ^ "%s", mknbi.c:712:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(header.magic.low, htot(low_word(NBHEADER_MAGIC))); ^~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:713:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(header.magic.high, htot(high_word(NBHEADER_MAGIC))); ^~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:714:10: warning: taking address of packed member 'segment' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(header.locn.segment, htot(HEADERSEG)); ^~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:715:10: warning: taking address of packed member 'offset' of class or structure 'i_addr' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(header.locn.offset, htot(0)); ^~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ mknbi.c:716:10: warning: taking address of packed member 'bootsig' of class or structure 'load_header' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(header.bootsig, htot(NBHEADER_SIG)); ^~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ 54 warnings generated. cp firstd_c.c-default firstd_c.c clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/mknbi-dos -I /usr/include/lzo -c -o firstd_c.o firstd_c.c clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/mknbi-dos -I /usr/include/lzo -c -o fatfs.o fatfs.c fatfs.c:202:29: warning: taking address of packed member 'cluster' of class or structure 'dos_dir' may result in an unaligned pointer value [-Waddress-of-packed-member] dp->fp = openfile(get_word(dirp->cluster), get_long(dirp->size)); ^~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ fatfs.c:202:45: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] dp->fp = openfile(get_word(dirp->cluster), get_long(dirp->size)); ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ fatfs.c:202:45: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] dp->fp = openfile(get_word(dirp->cluster), get_long(dirp->size)); ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ fatfs.c:319:23: warning: taking address of packed member 'time' of class or structure 'dos_dir' may result in an unaligned pointer value [-Waddress-of-packed-member] dsp->time = get_word(src_dirp->time); ^~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ fatfs.c:320:23: warning: taking address of packed member 'date' of class or structure 'dos_dir' may result in an unaligned pointer value [-Waddress-of-packed-member] dsp->date = get_word(src_dirp->date); ^~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ fatfs.c:321:30: warning: taking address of packed member 'cluster' of class or structure 'dos_dir' may result in an unaligned pointer value [-Waddress-of-packed-member] dsp->src.cluster = get_word(src_dirp->cluster); ^~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ fatfs.c:399:24: warning: taking address of packed member 'time' of class or structure 'dos_dir' may result in an unaligned pointer value [-Waddress-of-packed-member] fsp->time = get_word(dirp->time); ^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ fatfs.c:400:24: warning: taking address of packed member 'date' of class or structure 'dos_dir' may result in an unaligned pointer value [-Waddress-of-packed-member] fsp->date = get_word(dirp->date); ^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ fatfs.c:401:31: warning: taking address of packed member 'cluster' of class or structure 'dos_dir' may result in an unaligned pointer value [-Waddress-of-packed-member] fsp->src.cluster = get_word(dirp->cluster); ^~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ fatfs.c:402:15: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] fsp->size = get_long(dirp->size); ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ fatfs.c:402:15: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] fsp->size = get_long(dirp->size); ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ fatfs.c:495:14: warning: taking address of packed member 'bytes_per_sect' of class or structure 'boot_record' may result in an unaligned pointer value [-Waddress-of-packed-member] if (getval(bootrec->bytes_per_sect) != htot(SECTSIZE)) { ^~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ fatfs.c:504:25: warning: taking address of packed member 'reserved_sect' of class or structure 'boot_record' may result in an unaligned pointer value [-Waddress-of-packed-member] fat_offset = get_word(bootrec->reserved_sect) * SECTSIZE; ^~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ fatfs.c:505:26: warning: taking address of packed member 'sect_num' of class or structure 'boot_record' may result in an unaligned pointer value [-Waddress-of-packed-member] total_sects = get_word(bootrec->sect_num); ^~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ fatfs.c:507:16: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] total_sects = get_long(bootrec->sect_num_32); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:494:52: note: expanded from macro 'get_long' # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ ~~~~~~~~~~~~^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ fatfs.c:507:16: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] total_sects = get_long(bootrec->sect_num_32); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:495:19: note: expanded from macro 'get_long' ttoh(getval((a).low)))) ~~~~~~~~~~~~^~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ fatfs.c:515:27: warning: taking address of packed member 'sect_per_fat' of class or structure 'boot_record' may result in an unaligned pointer value [-Waddress-of-packed-member] sect_per_fat = get_word(bootrec->sect_per_fat); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ fatfs.c:522:31: warning: taking address of packed member 'dir_num' of class or structure 'boot_record' may result in an unaligned pointer value [-Waddress-of-packed-member] rootsize = roundup(get_word(bootrec->dir_num) * sizeof(struct dos_dir), ^~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ /usr/include/sys/param.h:94:31: note: expanded from macro 'roundup' ? (((x) + (y) - 1) & ~((y) - 1)) \ ^ fatfs.c:522:31: warning: taking address of packed member 'dir_num' of class or structure 'boot_record' may result in an unaligned pointer value [-Waddress-of-packed-member] rootsize = roundup(get_word(bootrec->dir_num) * sizeof(struct dos_dir), ^~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:493:36: note: expanded from macro 'get_word' # define get_word(a) ((ttoh(getval(a)))) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:530:41: note: expanded from macro 'getval' # define getval(a) mygetval((__u16 *)&(a)) ^ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:498:38: note: expanded from macro 'ttoh' # define ttoh(a) ((unsigned short)(a)) ^ /usr/include/sys/param.h:95:32: note: expanded from macro 'roundup' : ((((x) + ((y) - 1)) / (y)) * (y))) ^ 19 warnings generated. cp first_c.c-default first_c.c clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/mknbi-dos -I /usr/include/lzo -c -o first_c.o first_c.c cp boot_c.c-default boot_c.c clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/mknbi-dos -I /usr/include/lzo -c -o boot_c.o boot_c.c clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/mknbi-dos -I /usr/include/lzo -c -o openrd.o openrd.c openrd.c:129:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(part->number_sectors.low, htot(low_word(sectnum))); ^~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:130:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(part->number_sectors.high, htot(high_word(sectnum))); ^~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:131:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(part->first_abs_sector.low, htot(low_word(curformat->spt))); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:132:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(part->first_abs_sector.high, htot(high_word(curformat->spt))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:174:10: warning: taking address of packed member 'bytes_per_sect' of class or structure 'boot_record' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(bp->bytes_per_sect, htot(SECTSIZE)); ^~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:175:10: warning: taking address of packed member 'dir_num' of class or structure 'boot_record' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(bp->dir_num, htot(curformat->rootentries)); ^~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:176:10: warning: taking address of packed member 'sect_per_fat' of class or structure 'boot_record' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(bp->sect_per_fat, htot(curformat->fatsects)); ^~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:177:10: warning: taking address of packed member 'sect_per_track' of class or structure 'boot_record' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(bp->sect_per_track, htot(curformat->spt)); ^~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:178:10: warning: taking address of packed member 'head_num' of class or structure 'boot_record' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(bp->head_num, htot(curformat->heads)); ^~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:184:10: warning: taking address of packed member 'sect_num' of class or structure 'boot_record' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(bp->sect_num, htot(l & 0xffff)); ^~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:185:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(bp->sect_num_32.low, htot(low_word(l))); ^~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:186:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(bp->sect_num_32.high, htot(high_word(l))); ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:188:9: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(bp->hidden_num.low, htot(low_word(curformat->spt))); ^~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:189:9: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(bp->hidden_num.high, htot(high_word(curformat->spt))); ^~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:191:9: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(bp->hidden_num.low, htot(0)); ^~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:192:9: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(bp->hidden_num.high, htot(0)); ^~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:214:10: warning: taking address of packed member 'io_sys_sects' of class or structure 'priv_boot' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(pbp->io_sys_sects, htot(io_sys_sects)); ^~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:215:10: warning: taking address of packed member 'io_sys_ofs' of class or structure 'priv_boot' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(pbp->io_sys_ofs, htot(io_sys_seg * 16)); ^~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:800:9: warning: taking address of packed member 'time' of class or structure 'dos_dir' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(dirp->time, htot(dsp->time)); ^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:801:9: warning: taking address of packed member 'date' of class or structure 'dos_dir' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(dirp->date, htot(dsp->date)); ^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:802:9: warning: taking address of packed member 'cluster' of class or structure 'dos_dir' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(dirp->cluster, htot(dsp->cluster)); ^~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:803:9: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(dirp->size.low, htot(0)); ^~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:804:9: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(dirp->size.high, htot(0)); ^~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:809:9: warning: taking address of packed member 'time' of class or structure 'dos_dir' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(dirp->time, htot(parent->time)); ^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:810:9: warning: taking address of packed member 'date' of class or structure 'dos_dir' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(dirp->date, htot(parent->date)); ^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:811:9: warning: taking address of packed member 'cluster' of class or structure 'dos_dir' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(dirp->cluster, htot(parent->cluster)); ^~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:812:9: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(dirp->size.low, htot(0)); ^~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:813:9: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(dirp->size.high, htot(0)); ^~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:828:9: warning: taking address of packed member 'time' of class or structure 'dos_dir' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(dirp->time, htot(fsp->time)); ^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:829:9: warning: taking address of packed member 'date' of class or structure 'dos_dir' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(dirp->date, htot(fsp->date)); ^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:830:9: warning: taking address of packed member 'cluster' of class or structure 'dos_dir' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(dirp->cluster, htot(fsp->cluster)); ^~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:831:9: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(dirp->size.low, htot(low_word(fsp->size))); ^~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:832:9: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(dirp->size.high, htot(high_word(fsp->size))); ^~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:843:9: warning: taking address of packed member 'time' of class or structure 'dos_dir' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(dirp->time, htot(subdsp->time)); ^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:844:9: warning: taking address of packed member 'date' of class or structure 'dos_dir' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(dirp->date, htot(subdsp->date)); ^~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:845:9: warning: taking address of packed member 'cluster' of class or structure 'dos_dir' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(dirp->cluster, htot(subdsp->cluster)); ^~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:846:9: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(dirp->size.low, htot(0)); ^~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:847:9: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(dirp->size.high, htot(0)); ^~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:1189:10: warning: taking address of packed member 'low' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(geom->num_sectors.low, htot(low_word(sectnum))); ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:1190:10: warning: taking address of packed member 'high' of class or structure 'i_long' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(geom->num_sectors.high, htot(high_word(sectnum))); ^~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:1191:10: warning: taking address of packed member 'sect_per_track' of class or structure 'disk_geometry' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(geom->sect_per_track, htot(curformat->spt)); ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:1192:10: warning: taking address of packed member 'cylinders' of class or structure 'disk_geometry' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(geom->cylinders, htot(curformat->tracks)); ^~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ openrd.c:1193:10: warning: taking address of packed member 'num_heads' of class or structure 'disk_geometry' may result in an unaligned pointer value [-Waddress-of-packed-member] assign(geom->num_heads, htot(curformat->heads)); ^~~~~~~~~~~~~~~ /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include/common.h:514:42: note: expanded from macro 'assign' # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) ^ 43 warnings generated. clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/mknbi-dos -I /usr/include/lzo -c -o sysdb.o sysdb.c clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/mknbi-dos -I /usr/include/lzo -c -o misc.o misc.c mkdir .libs clang -o .libs/mknbi -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 mknbi.o sysdb.o openrd.o hostfs.o fatfs.o misc.o boot_c.o first_c.o firstd_c.o -L/usr/lib64 -L/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib/.libs/libnb.so -llzo2 creating mknbi make[1]: Leaving directory '/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/mknbi-dos' making all in dbtool make[1]: Entering directory '/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/dbtool' clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/dbtool -c -o main.o main.c mkdir .libs clang -o .libs/nbdbtool -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 main.o -L/usr/lib64 -L/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib /var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib/.libs/libnb.so creating nbdbtool make[1]: Leaving directory '/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/dbtool' making all in nblib make[1]: Entering directory '/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/nblib' making all in mknbi-mgl make[1]: Entering directory '/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/mknbi-mgl' clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/mknbi-mgl -DPARANOID -c -o gencmd.o gencmd.c cp runtime_c.c-default runtime_c.c clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/mknbi-mgl -DPARANOID -c -o runtime_c.o runtime_c.c cp first-dos_c.c-default first-dos_c.c clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/mknbi-mgl -DPARANOID -c -o first-dos_c.o first-dos_c.c cp first-nb_c.c-default first-nb_c.c clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/mknbi-mgl -DPARANOID -c -o first-nb_c.o first-nb_c.c clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/mknbi-mgl -DPARANOID -c -o symbols.o symbols.c flex mgllex.l clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -DNETBOOT -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/include -I/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/mknbi-mgl -DPARANOID -c -o lex.yy.o lex.yy.c mgllex.l:29:11: fatal error: 'y.tab.h' file not found # include "y.tab.h" ^~~~~~~~~ 1 error generated. make[1]: *** [../make.rules:75: lex.yy.o] Error 1 shuffle=3565567656 make[1]: Leaving directory '/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2/mknbi-mgl' make: *** [Makefile:43: mknbi-mgl] Error 1 shuffle=3565567656 * ERROR: sys-boot/netboot-0.10.2-r3::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=sys-boot/netboot-0.10.2-r3::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-boot/netboot-0.10.2-r3::gentoo'`. * The complete build log is located at '/var/log/portage/sys-boot:netboot-0.10.2-r3:20221204-172052.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/sys-boot/netboot-0.10.2-r3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-boot/netboot-0.10.2-r3/temp/environment'. * Working directory: '/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2' * S: '/var/tmp/portage/sys-boot/netboot-0.10.2-r3/work/netboot-0.10.2'