[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Make World Error Code 2

Going ahead with the idea of using the upstream Seabios 1.8 I've removed the entire xen folder and cloned again, changed the Config.mk file line 258 from rel-1.7.5 to rel-1.8.0 to use the newer Seabios version, that worked for that bug, but a newer problem appeared:

make -C xl install
make[8]: Entering directory '/opt/xen/tools/ocaml/libs/xl'
PYTHONPATH=/opt/xen/tools/ocaml/libs/xl/../../../../tools/libxl python genwrap.py \
ÂÂÂ /opt/xen/tools/ocaml/libs/xl/../../../../tools/libxl/libxl_types.idl \
ÂÂÂ _libxl_types.mli.in _libxl_types.ml.in _libxl_types.inc
Parsing /opt/xen/tools/ocaml/libs/xl/../../../../tools/libxl/libxl_types.idl
ÂMLCÂÂÂÂÂ xenlight.cmo
ÂMLAÂÂÂÂÂ xenlight.cma
ÂCCÂÂÂÂÂÂ xenlight_stubs.o
ÂMKLIBÂÂÂ libxenlight_stubs.a
ÂMLOPTÂÂÂ xenlight.cmx
ÂMLAÂÂÂÂÂ xenlight.cmxa
sed 's/@VERSION@/4.1/g' < META.in >META.new && mv -f META.new META
mkdir -p /opt/xen/dist/install/usr/local/lib/ocaml/4.01.0
ocamlfind remove -destdir /opt/xen/dist/install/usr/local/lib/ocaml/4.01.0 xenlight
ocamlfind: [WARNING] No such directory: /opt/xen/dist/install/usr/local/lib/ocaml/4.01.0/xenlight
ocamlfind install -destdir /opt/xen/dist/install/usr/local/lib/ocaml/4.01.0 -ldconf ignore xenlight META xenlight.cmi xenlight.cma xenlight.cmxa *.a *.so *.cmx
Installed /opt/xen/dist/install/usr/local/lib/ocaml/4.01.0/xenlight/xenlight.cmx
Installed /opt/xen/dist/install/usr/local/lib/ocaml/4.01.0/xenlight/dllxenlight_stubs.so
Installed /opt/xen/dist/install/usr/local/lib/ocaml/4.01.0/xenlight/xenlight.a
Installed /opt/xen/dist/install/usr/local/lib/ocaml/4.01.0/xenlight/libxenlight_stubs.a
Installed /opt/xen/dist/install/usr/local/lib/ocaml/4.01.0/xenlight/xenlight.cmxa
Installed /opt/xen/dist/install/usr/local/lib/ocaml/4.01.0/xenlight/xenlight.cma
Installed /opt/xen/dist/install/usr/local/lib/ocaml/4.01.0/xenlight/xenlight.cmi
Installed /opt/xen/dist/install/usr/local/lib/ocaml/4.01.0/xenlight/META
make[8]: Leaving directory '/opt/xen/tools/ocaml/libs/xl'
make[7]: Leaving directory '/opt/xen/tools/ocaml/libs'
make[6]: Leaving directory '/opt/xen/tools/ocaml/libs'
make[5]: Leaving directory '/opt/xen/tools/ocaml'
make[5]: Entering directory '/opt/xen/tools/ocaml'
make -C xenstored install
make[6]: Entering directory '/opt/xen/tools/ocaml/xenstored'
ÂMLIÂÂÂÂÂ symbol.cmi
ÂMLIÂÂÂÂÂ trie.cmi
ÂMLIÂÂÂÂÂ syslog.cmi
ÂMLIÂÂÂÂÂ systemd.cmi
ÂMLIÂÂÂÂÂ select.cmi
ÂMLCÂÂÂÂÂ syslog.cmo
ÂMLAÂÂÂÂÂ syslog.cma
ÂCCÂÂÂÂÂÂ syslog_stubs.o
ÂMKLIBÂÂÂ libsyslog_stubs.a
ÂMLOPTÂÂÂ syslog.cmx
ÂMLAÂÂÂÂÂ syslog.cmxa
ÂMLCÂÂÂÂÂ select.cmo
ÂMLAÂÂÂÂÂ select.cma
ÂCCÂÂÂÂÂÂ select_stubs.o
ÂMKLIBÂÂÂ libselect_stubs.a
ÂMLOPTÂÂÂ select.cmx
ÂMLAÂÂÂÂÂ select.cmxa
ÂMLCÂÂÂÂÂ systemd.cmo
ÂMLAÂÂÂÂÂ systemd.cma
ÂCCÂÂÂÂÂÂ systemd_stubs.o
ÂMKLIBÂÂÂ libsystemd_stubs.a
ÂMLOPTÂÂÂ systemd.cmx
ÂMLAÂÂÂÂÂ systemd.cmxa
ÂMLOPTÂÂÂ define.cmx
ÂMLOPTÂÂÂ stdext.cmx
ÂMLOPTÂÂÂ trie.cmx
ÂMLOPTÂÂÂ config.cmx
ÂMLOPTÂÂÂ logging.cmx
ÂMLOPTÂÂÂ quota.cmx
ÂMLOPTÂÂÂ perms.cmx
ÂMLOPTÂÂÂ symbol.cmx
ÂMLOPTÂÂÂ utils.cmx
ÂMLOPTÂÂÂ store.cmx
ÂMLOPTÂÂÂ disk.cmx
ÂMLOPTÂÂÂ transaction.cmx
ÂMLOPTÂÂÂ event.cmx
ÂMLOPTÂÂÂ domain.cmx
ÂMLOPTÂÂÂ domains.cmx
ÂMLOPTÂÂÂ connection.cmx
ÂMLOPTÂÂÂ connections.cmx
ÂMLOPTÂÂÂ parse_arg.cmx
ÂMLOPTÂÂÂ process.cmx
ÂMLOPTÂÂÂ xenstored.cmx
ÂMLBINÂÂÂ oxenstored
./libsystemd_stubs.a(systemd_stubs.o): na funÃÃo `ocaml_sd_listen_fds':
/opt/xen/tools/ocaml/xenstored/systemd_stubs.c:68: referÃncia indefinida para `sd_listen_fds'
/opt/xen/tools/ocaml/xenstored/systemd_stubs.c:70: referÃncia indefinida para `sd_notifyf'
/opt/xen/tools/ocaml/xenstored/systemd_stubs.c:77: referÃncia indefinida para `sd_notifyf'
./libsystemd_stubs.a(systemd_stubs.o): na funÃÃo `oxen_get_sd_fd':
/opt/xen/tools/ocaml/xenstored/systemd_stubs.c:39: referÃncia indefinida para `sd_is_socket_unix'
/opt/xen/tools/ocaml/xenstored/systemd_stubs.c:39: referÃncia indefinida para `sd_is_socket_unix'
./libsystemd_stubs.a(systemd_stubs.o): na funÃÃo `oxen_verify_socket_socket':
/opt/xen/tools/ocaml/xenstored/systemd_stubs.c:52: referÃncia indefinida para `sd_notifyf'
./libsystemd_stubs.a(systemd_stubs.o): na funÃÃo `ocaml_sd_booted':
/opt/xen/tools/ocaml/xenstored/systemd_stubs.c:103: referÃncia indefinida para `sd_booted'
./libsystemd_stubs.a(systemd_stubs.o): na funÃÃo `ocaml_sd_notify_ready':
/opt/xen/tools/ocaml/xenstored/systemd_stubs.c:116: referÃncia indefinida para `sd_notify'
collect2: error: ld returned 1 exit status
File "caml_startup", line 1:
Error: Error during linking
/opt/xen/tools/ocaml/xenstored/../Makefile.rules:94: recipe for target 'oxenstored' failed
make[6]: *** [oxenstored] Error 2
make[6]: Leaving directory '/opt/xen/tools/ocaml/xenstored'
/opt/xen/tools/ocaml/../../tools/Rules.mk:116: recipe for target 'subdir-install-xenstored' failed
make[5]: *** [subdir-install-xenstored] Error 2
make[5]: Leaving directory '/opt/xen/tools/ocaml'
/opt/xen/tools/ocaml/../../tools/Rules.mk:111: recipe for target 'subdirs-install' failed
make[4]: *** [subdirs-install] Error 2
make[4]: Leaving directory '/opt/xen/tools/ocaml'
/opt/xen/tools/../tools/Rules.mk:116: recipe for target 'subdir-install-ocaml' failed
make[3]: *** [subdir-install-ocaml] Error 2
make[3]: Leaving directory '/opt/xen/tools'
/opt/xen/tools/../tools/Rules.mk:111: recipe for target 'subdirs-install' failed
make[2]: *** [subdirs-install] Error 2
make[2]: Leaving directory '/opt/xen/tools'
Makefile:69: recipe for target 'install-tools' failed
make[1]: *** [install-tools] Error 2
make[1]: Leaving directory '/opt/xen'
Makefile:95: recipe for target 'world' failed
make: *** [world] Error 2

Any other ideas? Suggestions?

2015-03-25 14:55 GMT-03:00 Carlos Gustavo Ramirez Rodriguez <carlosgrr@xxxxxxxxx>:
No problems building the upstream SeaBIOS, but it uses the "Version: rel-1.8.0-20-gb458122-20150325_145204-carlos" as you probably already knew. Bellow is the terminal output:

root@carlos:/opt# git clone git://git.seabios.org/seabios.git
Cloning into 'seabios'...
cremote: Counting objects: 12497, done.
remote: Compressing objects: 100% (6374/6374), done.
remote: Total 12497 (delta 10018), reused 7491 (delta 6116)
Receiving objects: 100% (12497/12497), 2.67 MiB | 534.00 KiB/s, done.
Resolving deltas: 100% (10018/10018), done.
Checking connectivity... done.
root@carlos:/opt# ls
seabios xen
root@carlos:/opt# cd seabios/
root@carlos:/opt/seabios# ls
COPYING COPYING.LESSER docs Makefile README scripts src vgasrc
root@carlos:/opt/seabios# make defconfig
scripts/kconfig/conf --olddefconfig /opt/seabios/src/Kconfig
# configuration written to /opt/seabios/.config
 Build default config
# configuration written to /opt/seabios/.config
root@carlos:/opt/seabios# make
 Build Kconfig config file
 Compile checking out/src/misc.o
 Compile checking out/src/stacks.o
 Compile checking out/src/output.o
 Compile checking out/src/string.o
 Compile checking out/src/block.o
 Compile checking out/src/cdrom.o
 Compile checking out/src/disk.o
 Compile checking out/src/mouse.o
 Compile checking out/src/kbd.o
 Compile checking out/src/system.o
 Compile checking out/src/serial.o
 Compile checking out/src/clock.o
 Compile checking out/src/resume.o
 Compile checking out/src/pnpbios.o
 Compile checking out/src/vgahooks.o
 Compile checking out/src/pcibios.o
 Compile checking out/src/apm.o
 Compile checking out/src/hw/pci.o
 Compile checking out/src/hw/timer.o
 Compile checking out/src/hw/rtc.o
 Compile checking out/src/hw/dma.o
 Compile checking out/src/hw/pic.o
 Compile checking out/src/hw/ps2port.o
 Compile checking out/src/hw/serialio.o
 Compile checking out/src/hw/usb.o
 Compile checking out/src/hw/usb-uhci.o
 Compile checking out/src/hw/usb-ohci.o
 Compile checking out/src/hw/usb-ehci.o
 Compile checking out/src/hw/usb-hid.o
 Compile checking out/src/hw/usb-msc.o
 Compile checking out/src/hw/usb-uas.o
 Compile checking out/src/hw/blockcmd.o
 Compile checking out/src/hw/floppy.o
 Compile checking out/src/hw/ata.o
 Compile checking out/src/hw/ramdisk.o
 Compile checking out/src/hw/virtio-ring.o
 Compile checking out/src/hw/virtio-pci.o
 Compile checking out/src/hw/virtio-blk.o
 Compile checking out/src/hw/virtio-scsi.o
 Compile checking out/src/hw/lsi-scsi.o
 Compile checking out/src/hw/esp-scsi.o
 Compile checking out/src/hw/megasas.o
 Compile checking out/src/post.o
 Compile checking out/src/memmap.o
 Compile checking out/src/malloc.o
 Compile checking out/src/romfile.o
 Compile checking out/src/x86.o
 Compile checking out/src/optionroms.o
 Compile checking out/src/pmm.o
 Compile checking out/src/font.o
 Compile checking out/src/boot.o
 Compile checking out/src/bootsplash.o
 Compile checking out/src/jpeg.o
 Compile checking out/src/bmp.o
 Compile checking out/src/hw/ahci.o
 Compile checking out/src/hw/pvscsi.o
 Compile checking out/src/hw/usb-xhci.o
 Compile checking out/src/hw/usb-hub.o
 Compile checking out/src/hw/sdcard.o
 Compile checking out/src/fw/coreboot.o
 Compile checking out/src/fw/lzmadecode.o
 Compile checking out/src/fw/csm.o
 Compile checking out/src/fw/biostables.o
 Compile checking out/src/fw/paravirt.o
 Compile checking out/src/fw/shadow.o
 Compile checking out/src/fw/pciinit.o
 Compile checking out/src/fw/smm.o
 Compile checking out/src/fw/smp.o
 Compile checking out/src/fw/mtrr.o
 Compile checking out/src/fw/xen.o
 Compiling IASL out/src/fw/acpi-dsdt.hex
ASL Input:ÂÂÂÂ out/src/fw/acpi-dsdt.dsl.i - 474 lines, 19153 bytes, 315 keywords
AML Output:ÂÂÂ out/src/fw/acpi-dsdt.aml - 4405 bytes, 159 named objects, 156 executable opcodes
Listing File:Â out/src/fw/acpi-dsdt.lst - 143000 bytes
Hex Dump:ÂÂÂÂÂ out/src/fw/acpi-dsdt.hex - 41662 bytes

Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 245 Optimizations
 Compiling IASL out/src/fw/ssdt-proc.hex
ASL Input:ÂÂÂÂ out/src/fw/ssdt-proc.dsl.i - 35 lines, 762 bytes, 8 keywords
AML Output:ÂÂÂ out/src/fw/ssdt-proc.aml - 120 bytes, 6 named objects, 2 executable opcodes
Listing File:Â out/src/fw/ssdt-proc.lst - 2653 bytes
Hex Dump:ÂÂÂÂÂ out/src/fw/ssdt-proc.hex - 1460 bytes

Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 0 Optimizations
 Compiling IASL out/src/fw/ssdt-pcihp.hex
ASL Input:ÂÂÂÂ out/src/fw/ssdt-pcihp.dsl.i - 36 lines, 758 bytes, 5 keywords
AML Output:ÂÂÂ out/src/fw/ssdt-pcihp.aml - 87 bytes, 5 named objects, 0 executable opcodes
Listing File:Â out/src/fw/ssdt-pcihp.lst - 2349 bytes
Hex Dump:ÂÂÂÂÂ out/src/fw/ssdt-pcihp.hex - 1161 bytes

Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 0 Optimizations
 Compiling IASL out/src/fw/ssdt-misc.hex
ASL Input:ÂÂÂÂ out/src/fw/ssdt-misc.dsl.i - 101 lines, 2567 bytes, 35 keywords
AML Output:ÂÂÂ out/src/fw/ssdt-misc.aml - 354 bytes, 24 named objects, 11 executable opcodes
Listing File:Â out/src/fw/ssdt-misc.lst - 7658 bytes
Hex Dump:ÂÂÂÂÂ out/src/fw/ssdt-misc.hex - 3711 bytes

Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 2 Optimizations
 Compiling IASL out/src/fw/q35-acpi-dsdt.hex
ASL Input:ÂÂÂÂ out/src/fw/q35-acpi-dsdt.dsl.i - 514 lines, 28284 bytes, 413 keywords
AML Output:ÂÂÂ out/src/fw/q35-acpi-dsdt.aml - 7344 bytes, 239 named objects, 174 executable opcodes
Listing File:Â out/src/fw/q35-acpi-dsdt.lst - 255962 bytes
Hex Dump:ÂÂÂÂÂ out/src/fw/q35-acpi-dsdt.hex - 69191 bytes

Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 445 Optimizations
 Compile checking out/src/fw/acpi.o
 Compile checking out/src/fw/mptable.o
 Compile checking out/src/fw/pirtable.o
 Compile checking out/src/fw/smbios.o
 Compile checking out/src/fw/romfile_loader.o
 Compiling whole program out/ccode32flat.o
 Compiling whole program out/code32seg.o
 Compiling whole program out/ccode16.o
 Compiling to assembler out/src/asm-offsets.s
 Generating offset file out/asm-offsets.h
 Compiling (16bit) out/romlayout.o
 Building ld scripts
Version: rel-1.8.0-20-gb458122-20150325_145204-carlos
Fixed space: 0xe05b-0x10000Â total: 8101Â slack: 14Â Percent slack: 0.2%
16bit size:ÂÂÂÂÂÂÂÂÂÂ 35500
32bit segmented size: 2202
32bit flat size:ÂÂÂÂÂ 26922
32bit flat init size: 68432
Lowmem size:ÂÂÂÂÂÂÂÂÂ 2176
f-segment var size:ÂÂ 1200
 Linking out/rom16.o
 Stripping out/rom16.strip.o
 Linking out/rom32seg.o
 Stripping out/rom32seg.strip.o
 Linking out/rom.o
 Prepping out/bios.bin.prep
Total size: 140548Â Fixed: 65824Â Free: 121596 (used 53.6% of 256KiB rom)
 Creating out/bios.bin

2015-03-25 14:50 GMT-03:00 Ian Campbell <ian.campbell@xxxxxxxxxx>:

On Wed, 2015-03-25 at 14:36 -0300, Carlos Gustavo Ramirez Rodriguez
> Hello Ian,
> I tried git clone following that link path and I was able to download
> and "LC_ALL=C make" the seabios, but that didn't work, after that, I
> tried going to the /tools/firmware/seabios-dir-remote and seabios-dir
> both and running the same code "LC_ALL=C make", and still same error,
> after that, I tried the next ideia, /tools/firmware/ and "LC_ALL=C
> make -C seabios-dir all" and after returning to the make world, same
> problem.
> Besides going to 4.6 any other workaround?

Building the upstream SeaBIOS tree and seeing if it builds would give us
a hint as to whether we needed to look for a patch to backport or if
this was a new bug caused by e.g. the bleeding edge Ubuntu you are
running (seabios can be a bit sensitive to toolchain changes) which
needs to be reported to the upstream list.

So, please can you try:
    git clone git://git.seabios.org/seabios.git
    cd seabios.git
    make defconfig
and see if that also exhibits the issue.

FYI Xen 4.5.x uses the rel-1.7.5 tag by default.



Xen-users mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.