Discussion:
[ipxe-devel] Trying to build a ROM With ROM-O-Matic
Jeremy Anderson
2018-07-24 15:43:09 UTC
Permalink
I need an x64 EFI Rom that includes TFTP, NFS and HTTP support. When I
attempt to build one using ROM-O-Matic it consistently errors out on me.



Are they any tips or walkthroughs on what options I need?



Thanks,

Jeremy



Build failed:



"make" unexpectedly returned exit value 2 at
/var/www/ipxe-buildweb/build.fcgi line 630





Build log:

Path:

Parameters:

BINARY = ipxe.efi

BINDIR = bin-x86_64-efi

DEBUG =

EMBED.00script.ipxe =

REVISION = master

general.h/DOWNLOAD_PROTO_NFS: = 1

serial.h/COMCONSOLE =

serial.h/COMDATA: = 0

serial.h/COMPARITY =

serial.h/COMSPEED =

serial.h/COMSTOP: = 0

Binary: ipxe.efi

Binary directory: bin-x86_64-efi

Revision: master

Canonicalising revision master...

Canonical revision: d2063b7693e0e35db97b2264aa987eb6341ae779

Creating temporary directories...

Temporary git directory: /var/tmp/ipxe-build/ipxe-build-3_CiL8

Temporary working tree: /var/tmp/ipxe-build/ipxe-build-4qvzrk

Cloning git tree from /var/tmp/ipxe/.git...

Finding closest cached binaries for
d2063b7693e0e35db97b2264aa987eb6341ae779...

Found cached binaries in
ipxe-build/cached/bin-x86_64-efi/d2063b7693e0e35db97b2264aa987eb6341ae779.gz
at distance 0

Opening binary tarball
/var/cache/ipxe-build/d2063b7693e0e35db97b2264aa987eb6341ae779-bin-x86_64-efi.tar.gz...

Opened binary tarball
/var/cache/ipxe-build/d2063b7693e0e35db97b2264aa987eb6341ae779-bin-x86_64-efi.tar.gz...

Checking out revision d2063b7693e0e35db97b2264aa987eb6341ae779...

Identifying timestamp for commit d2063b7693e0e35db97b2264aa987eb6341ae779...

Setting timestamps to Tue Jul 17 13:14:43 2018...

Unpacking binary tarball
/var/cache/ipxe-build/d2063b7693e0e35db97b2264aa987eb6341ae779-bin-x86_64-efi.tar.gz...

Checking out revision d2063b7693e0e35db97b2264aa987eb6341ae779...

Local configuration for serial.h:

#undef COMDATA

#undef COMSTOP

Local configuration for general.h:

#define DOWNLOAD_PROTO_NFS

Building final target bin-x86_64-efi/ipxe.efi...

make: Entering directory `/var/tmp/ipxe-build/ipxe-build-4qvzrk/src'

[DEPS] arch/x86/transitions/librm.S

[DEPS] arch/x86/prefix/romprefix.S

[DEPS] arch/x86/prefix/pciromprefix.S

[DEPS] arch/x86/prefix/mromprefix.S

[DEPS] arch/x86/prefix/isaromprefix.S

[DEPS] arch/x86/interface/pcbios/rsdp.c

[DEPS] arch/x86/interface/pcbios/int13.c

[DEPS] arch/x86/interface/pcbios/bios_smbios.c

[DEPS] arch/x86/interface/pcbios/acpi_timer.c

[DEPS] arch/x86/interface/pcbios/acpipwr.c

[DEPS] config/config_route.c

[DEPS] config/config_romprefix.c

[DEPS] config/config_pixbuf.c

[DEPS] config/config_net80211.c

[DEPS] config/config_infiniband.c

[DEPS] config/config_http.c

[DEPS] config/config_fc.c

[DEPS] config/config_ethernet.c

[DEPS] config/config_efi.c

[DEPS] config/config_asn1.c

[DEPS] config/config.c

[DEPS] usr/autoboot.c

[DEPS] hci/commands/sanboot_cmd.c

[DEPS] interface/smbios/smbios_settings.c

[DEPS] interface/smbios/smbios.c

[DEPS] interface/efi/efi_snp.c

[DEPS] interface/efi/efi_smbios.c

[DEPS] interface/efi/efi_pxe.c

[DEPS] interface/efi/efi_block.c

[DEPS] interface/efi/efi_acpi.c

[DEPS] drivers/infiniband/golan.c

[DEPS] drivers/block/srp.c

[DEPS] drivers/block/ibft.c

[DEPS] drivers/net/smsc95xx.c

[DEPS] net/infiniband/ib_srp.c

[DEPS] net/tcp/iscsi.c

[DEPS] net/tcp/httpcore.c

[DEPS] net/tcp/httpblock.c

[DEPS] net/netdevice.c

[DEPS] net/fcp.c

[DEPS] net/aoe.c

[DEPS] core/serial.c

[DEPS] core/sanboot.c

[DEPS] core/null_sanboot.c

[DEPS] core/null_acpi.c

[DEPS] core/gdbserial.c

[DEPS] core/dummy_sanboot.c

[DEPS] core/acpi_settings.c

[DEPS] core/acpi.c

make: Leaving directory `/var/tmp/ipxe-build/ipxe-build-4qvzrk/src'

make: Entering directory `/var/tmp/ipxe-build/ipxe-build-4qvzrk/src'

[BUILD] bin-x86_64-efi/acpi.o

[BUILD] bin-x86_64-efi/acpi_settings.o

[BUILD] bin-x86_64-efi/dummy_sanboot.o

[BUILD] bin-x86_64-efi/gdbserial.o

[BUILD] bin-x86_64-efi/null_acpi.o

[BUILD] bin-x86_64-efi/null_sanboot.o

[BUILD] bin-x86_64-efi/sanboot.o

[BUILD] bin-x86_64-efi/serial.o

[BUILD] bin-x86_64-efi/aoe.o

core/gdbserial.c: In function 'gdbserial_init':

core/gdbserial.c:93:53: error: 'COMDATA' undeclared (first use in this
function)

core/gdbserial.c:93:53: note: each undeclared identifier is reported only
once for each function it appears in

core/gdbserial.c:93:53: error: 'COMSTOP' undeclared (first use in this
function)

[BUILD] bin-x86_64-efi/fcp.o

make: *** [bin-x86_64-efi/gdbserial.o] Error 1

make: *** Waiting for unfinished jobs....

core/serial.c: In function 'serial_init':

core/serial.c:153:5: error: 'COMDATA' undeclared (first use in this
function)

core/serial.c:153:5: note: each undeclared identifier is reported only once
for each function it appears in

core/serial.c:153:5: error: 'COMSTOP' undeclared (first use in this
function)

make: *** [bin-x86_64-efi/serial.o] Error 1

make: Leaving directory `/var/tmp/ipxe-build/ipxe-build-4qvzrk/src'

"make" unexpectedly returned exit value 2 at
/var/www/ipxe-buildweb/build.fcgi line 630
--
*Confidentiality Note:* We care about protecting our proprietary
information, confidential material, and trade secrets. This message may
contain some or all of those things. Cruise will suffer material harm if
anyone other than the intended recipient disseminates or takes any action
based on this message. If you have received this message (including any
attachments) in error, please delete it immediately and notify the sender
promptly.
Christian Nilsson
2018-07-26 06:10:10 UTC
Permalink
Post by Jeremy Anderson
I need an x64 EFI Rom that includes TFTP, NFS and HTTP support. When I
attempt to build one using ROM-O-Matic it consistently errors out on me.
"make" unexpectedly returned exit value 2 at /var/www/ipxe-buildweb/build.fcgi
line 630
BINARY = ipxe.efi
BINDIR = bin-x86_64-efi
DEBUG =
EMBED.00script.ipxe =
REVISION = master
general.h/DOWNLOAD_PROTO_NFS: = 1
serial.h/COMCONSOLE =
serial.h/COMDATA: = 0
serial.h/COMPARITY =
serial.h/COMSPEED =
serial.h/COMSTOP: = 0
Binary: ipxe.efi
Binary directory: bin-x86_64-efi
Revision: master
Canonicalising revision master...
Canonical revision: d2063b7693e0e35db97b2264aa987eb6341ae779
#undef COMDATA
#undef COMSTOP
#define DOWNLOAD_PROTO_NFS
Building final target bin-x86_64-efi/ipxe.efi...
core/gdbserial.c:93:53: error: 'COMDATA' undeclared (first use in this
function)
core/gdbserial.c:93:53: note: each undeclared identifier is reported only
once for each function it appears in
core/gdbserial.c:93:53: error: 'COMSTOP' undeclared (first use in this
function)
[BUILD] bin-x86_64-efi/fcp.o
make: *** [bin-x86_64-efi/gdbserial.o] Error 1
make: *** Waiting for unfinished jobs....
core/serial.c:153:5: error: 'COMDATA' undeclared (first use in this
function)
core/serial.c:153:5: note: each undeclared identifier is reported only
once for each function it appears in
core/serial.c:153:5: error: 'COMSTOP' undeclared (first use in this
function)
make: *** [bin-x86_64-efi/serial.o] Error 1
make: Leaving directory `/var/tmp/ipxe-build/ipxe-build-4qvzrk/src'
"make" unexpectedly returned exit value 2 at /var/www/ipxe-buildweb/build.fcgi
line 630
You have defined some Serial settings, which pulls in that code, but other
settings is undefined.
However I don't think that Serial is valid for EFI at all.
Try building without serial.

This is the same kind of build issues that can be seen in
https://github.com/xbgmsharp/ipxe-buildweb/issues/45
https://github.com/xbgmsharp/ipxe-buildweb/issues/36

Where options are enabled that are not compatible with other selections
(mostly EFI)

/Christian

Loading...