[SeaBIOS] Error while compiling Seabios for Arch Linux ARM

Xavier de Rauville derauville.xavier at gmail.com
Wed Feb 17 17:14:25 CET 2016


Greetings

I am currently trying to compile Seabios for Arch Linux ARM and I've 
encountered an error during the compilation that appears to be caused by 
a misconfiguration in the file downloaded from here: 
http://code.coreboot.org/p/seabios/downloads/get/seabios-1.9.0.tar.gz

I have attached a log containing the entire stdout and stderr stream 
output for Arch Linux's makepkg command but I think these might be the 
only lines of interest:
   Compile checking out/src/misc.o
cc -Iout/ -Isrc -Os -MD -g -Wall -Wno-strict-aliasing 
-Wold-style-definition -Wtype-limits -m32 -march=i386 -mregparm=3 
-mpreferred-stack-boundary=2 -minline-all-stringops -fomit-frame-pointer 
-freg-struct-return -ffreestanding -fno-delete-null-pointer-checks 
-ffunction-sections -fdata-sections -fno-common -fno-merge-constants  
-fno-stack-protector -fstack-check=no -DMODE16=0 -DMODESEGMENT=0 -c 
src/misc.c -o out/src/misc.o
cc: error: unrecognized argument in option '-march=i386'
cc: note: valid arguments to '-march=' are: armv2 armv2a armv3 armv3m 
armv4 armv4t armv5 armv5e armv5t armv5te armv6 armv6-m armv6j armv6k 
armv6s-m armv6t2 armv6z armv6zk armv7 armv7-a armv7-m armv7-r armv7e-m 
armv7ve armv8-a armv8-a+crc iwmmxt iwmmxt2 native
cc: error: unrecognized command line option '-m32'
cc: error: unrecognized command line option '-mregparm=3'
cc: error: unrecognized command line option '-mpreferred-stack-boundary=2'
cc: error: unrecognized command line option '-minline-all-stringops'
Makefile:133: recipe for target 'out/src/misc.o' failed

The files Arch Linux uses to compile Seabios can be found here if 
needed: 
https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/seabios
Can anyone help me get this error fixed? If a developer reads this and 
there is a bug in the code, would it be possible to fix it? Help will be 
greatly appreciated.

Kind regards
Xavier de Rauville
-------------- next part --------------
==> Making package: seabios 1.9.0-1 (Sun Feb  7 19:38:17 SAST 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found seabios-1.9.0.tar.gz
  -> Found config.coreboot
  -> Found config.seabios-128k
  -> Found config.seabios-256k
  -> Found config.vga.isavga
  -> Found config.vga.stdvga
  -> Found config.csm
  -> Found config.vga.cirrus
  -> Found config.vga.qxl
  -> Found config.vga.vmware
==> Validating source files with sha1sums...
    seabios-1.9.0.tar.gz ... Passed
    config.coreboot ... Passed
    config.seabios-128k ... Passed
    config.seabios-256k ... Passed
    config.vga.isavga ... Passed
    config.vga.stdvga ... Passed
    config.csm ... Passed
    config.vga.cirrus ... Passed
    config.vga.qxl ... Passed
    config.vga.vmware ... Passed
==> Extracting sources...
  -> Extracting seabios-1.9.0.tar.gz with bsdtar
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
mkdir -p out//scripts/kconfig/lxdialog
mkdir -p out//include/config
mkdir -p out/src out/src/hw out/src/fw out/vgasrc
make -C out/ -f /home/share/Seabios/src/seabios-1.9.0/scripts/kconfig/Makefile srctree=/home/share/Seabios/src/seabios-1.9.0 src=scripts/kconfig obj=scripts/kconfig Q= Kconfig=/home/share/Seabios/src/seabios-1.9.0/src/Kconfig  oldnoconfig
make[1]: Entering directory '/home/share/Seabios/src/seabios-1.9.0/out'
cc -Iscripts/kconfig -I/home/share/Seabios/src/seabios-1.9.0/scripts/kconfig   -DCURSES_LOC="<ncurses.h>" -DLOCALE  -c -o scripts/kconfig/conf.o /home/share/Seabios/src/seabios-1.9.0/scripts/kconfig/conf.c
cat /home/share/Seabios/src/seabios-1.9.0/scripts/kconfig/zconf.tab.c_shipped > scripts/kconfig/zconf.tab.c
cat /home/share/Seabios/src/seabios-1.9.0/scripts/kconfig/zconf.lex.c_shipped > scripts/kconfig/zconf.lex.c
cat /home/share/Seabios/src/seabios-1.9.0/scripts/kconfig/zconf.hash.c_shipped > scripts/kconfig/zconf.hash.c
cc -Iscripts/kconfig -I/home/share/Seabios/src/seabios-1.9.0/scripts/kconfig  -Iscripts/kconfig -DCURSES_LOC="<ncurses.h>" -DLOCALE  -c -o scripts/kconfig/zconf.tab.o scripts/kconfig/zconf.tab.c
cc  -o scripts/kconfig/conf scripts/kconfig/conf.o scripts/kconfig/zconf.tab.o  
scripts/kconfig/conf --olddefconfig /home/share/Seabios/src/seabios-1.9.0/src/Kconfig
#
# configuration written to /home/share/Seabios/src/seabios-1.9.0/.config
#
make[1]: Leaving directory '/home/share/Seabios/src/seabios-1.9.0/out'
mkdir -p out//scripts/kconfig/lxdialog
mkdir -p out//include/config
mkdir -p out/src out/src/hw out/src/fw out/vgasrc
make -C out/ -f /home/share/Seabios/src/seabios-1.9.0/scripts/kconfig/Makefile srctree=/home/share/Seabios/src/seabios-1.9.0 src=scripts/kconfig obj=scripts/kconfig Q= Kconfig=/home/share/Seabios/src/seabios-1.9.0/src/Kconfig  silentoldconfig
make[1]: Entering directory '/home/share/Seabios/src/seabios-1.9.0/out'
  Build Kconfig config file
mkdir -p include/config include/generated
scripts/kconfig/conf --silentoldconfig /home/share/Seabios/src/seabios-1.9.0/src/Kconfig
make[1]: Leaving directory '/home/share/Seabios/src/seabios-1.9.0/out'
  Compile checking out/src/misc.o
cc -Iout/ -Isrc -Os -MD -g -Wall -Wno-strict-aliasing -Wold-style-definition -Wtype-limits -m32 -march=i386 -mregparm=3 -mpreferred-stack-boundary=2 -minline-all-stringops -fomit-frame-pointer -freg-struct-return -ffreestanding -fno-delete-null-pointer-checks -ffunction-sections -fdata-sections -fno-common -fno-merge-constants  -fno-stack-protector  -fstack-check=no -DMODE16=0 -DMODESEGMENT=0 -c src/misc.c -o out/src/misc.o
cc: error: unrecognized argument in option '-march=i386'
cc: note: valid arguments to '-march=' are: armv2 armv2a armv3 armv3m armv4 armv4t armv5 armv5e armv5t armv5te armv6 armv6-m armv6j armv6k armv6s-m armv6t2 armv6z armv6zk armv7 armv7-a armv7-m armv7-r armv7e-m armv7ve armv8-a armv8-a+crc iwmmxt iwmmxt2 native
cc: error: unrecognized command line option '-m32'
cc: error: unrecognized command line option '-mregparm=3'
cc: error: unrecognized command line option '-mpreferred-stack-boundary=2'
cc: error: unrecognized command line option '-minline-all-stringops'
Makefile:133: recipe for target 'out/src/misc.o' failed
make: *** [out/src/misc.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...


More information about the SeaBIOS mailing list