[ipxe-devel] compilation fails on openbsd

Jiri B jirib at devio.us
Wed Apr 15 13:05:06 UTC 2015


Hi,

I reported on irc but no big success.

I tried to build ipxe on OpenBSD 5.7 amd64 (recent -current snapshot)
and I used following git commit:

# since https://git.ipxe.org/ipxe.git/commit/86ae6e6c1836e43993a14db278398fc54e5419bd
# newer binutils are needed otherwise compilation fails
GH_COMMIT =     04c1ea81709b3de2658331761eb94843110c165f

So I can't use newer than 86ae6e6c1836e43993a14db278398fc54e5419bd but the
previous one fails as well :(

Help would be appreciated as I'd like to use ipxe to install securely
on an OpenStack env where I cannot trust their tftp etc...

Stuff used:
OpenBSD 5.7-current (GENERIC.MP) #903: Thu Apr  2 13:47:34 MDT 2015
ipxe 04c1ea81709b3de2658331761eb94843110c165f
binutils version 2.23.52.0.1-30.el7_1.1 20130226 (not possible to use higher version)
gcc-4.8.4p2

j.

~~~
gcc  -DARCH=i386 -DPLATFORM=pcbios -march=i386 -fomit-frame-pointer -fstrength-reduce -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mpreferred-stack-boundary=2 -mregparm=3 -mrtd -freg-struct-return -m32 -fshort-wchar -Ui386 -Ulinux -DNVALGRIND -Iinclude -I. -Iarch/x86/include -Iarch/i386/include -Iarch/i386/include/pcbios -Os -g -ffreestanding -Wall -W -Wformat-nonliteral  -fno-stack-protector -fno-dwarf2-cfi-asm -fno-exceptions  -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-address -fno-PIE -nopie  -Werror -ffunction-sections -fdata-sections -include include/compiler.h   -DOBJECT=librm_mgmt -c arch/i386/transitions/librm_mgmt.c -o bin/librm_mgmt.o 
In file included from <command-line>:0:0:
arch/i386/transitions/librm_mgmt.c: In function 'init_idt':
./include/compiler.h:347:10: error: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Werror=format=]
    union {     \
          ^
./include/compiler.h:371:3: note: in expansion of macro 'DBG_AC_IF'
   DBG_AC_IF ( level, id );   \
   ^
./include/compiler.h:421:22: note: in expansion of macro 'DBGC_IF'
 #define DBGC( ... )  DBGC_IF  ( LOG, ##__VA_ARGS__ )
                      ^
arch/i386/transitions/librm_mgmt.c:106:2: note: in expansion of macro 'DBGC'
  DBGC ( &intr_vec[0], "INTn vector at %p+%xn (phys %#lx+%xn)\n",
  ^
./include/compiler.h:347:10: error: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Werror=format=]
    union {     \
          ^
./include/compiler.h:371:3: note: in expansion of macro 'DBG_AC_IF'
   DBG_AC_IF ( level, id );   \
   ^
./include/compiler.h:421:22: note: in expansion of macro 'DBGC_IF'
 #define DBGC( ... )  DBGC_IF  ( LOG, ##__VA_ARGS__ )
                      ^
arch/i386/transitions/librm_mgmt.c:106:2: note: in expansion of macro 'DBGC'
  DBGC ( &intr_vec[0], "INTn vector at %p+%xn (phys %#lx+%xn)\n",
  ^
cc1: all warnings being treated as errors
Makefile.housekeeping:851: recipe for target 'bin/librm_mgmt.o' failed
gmake: *** [bin/librm_mgmt.o] Error 1
*** Error 2 in . (Makefile:53 'do-build')
*** Error 1 in . (/home/jirib/cvs/openbsd-ports/infrastructure/mk/bsd.port.mk:2747 '/home/jirib/openbsd/pobj/ipxe-20150304/.build_done')
*** Error 1 in /home/jirib/git/openbsd-mystuff/sysutils/ipxe (/home/jirib/cvs/openbsd-ports/infrastructure/mk/bsd.port.mk:2476 'all')
~~~



More information about the ipxe-devel mailing list