Skip to contentSkip to conversation

Build failure in OVMF

DISCUSSION Tim Deegan 5 participants 13 messages Mar 22, 2012 – Apr 2, 2012

lore
Share & tools
lore

Tim Deegan

author
#0 lore raw

Hi,

On my x64 debian build box, after
make distclean
hg purge --all
./configure
make -j8 deb

the build eventually fails with this:

Quoted 8 lines

FV Space Information
MAINFV [74%Full] 5242880 total, 3888168 used, 1354712 free
SECFV [86%Full] 81920 total, 70792 used, 11128 free
FVMAIN_COMPACT [74%Full] 966656 total, 719808 used, 246848 free
DXEFV [99%Full] 3670016 total, 3669544 used, 472 free
make[7]: Leaving directory `/local/scratch/tdeegan/xen-unstable.hg/tools/firmware/ovmf-remote/Build/OvmfX64/DEBUG_GCC46'

Quoted 8 lines

- Done -
Build end time: 12:46:06, Mar.22 2012
Build total time: 00:00:47

cp Build/OvmfX64/DEBUG_GCC44/FV/OVMF.fd ovmf.bin
cp: cannot stat `Build/OvmfX64/DEBUG_GCC44/FV/OVMF.fd': No such file or directory make[6]: *** [ovmf.bin] Error 1
make[6]: Leaving directory `/local/scratch/tdeegan/xen-unstable.hg/tools/firmware/ovmf-remote'

Using make -j1 doesn't unstick it - I haven't yet tried a -j1 build from
clean. I can't see any errors earlier in the build process.

Is there a ./configure rune to disable OVMF?

Cheers,

Tim.

#1 lore raw
Quoted 28 lines · Tim Deegan

Hi,

On my x64 debian build box, after
make distclean
hg purge --all
./configure
make -j8 deb

the build eventually fails with this:

Quoted 8 lines

FV Space Information
MAINFV [74%Full] 5242880 total, 3888168 used, 1354712 free
SECFV [86%Full] 81920 total, 70792 used, 11128 free
FVMAIN_COMPACT [74%Full] 966656 total, 719808 used, 246848 free
DXEFV [99%Full] 3670016 total, 3669544 used, 472 free
make[7]: Leaving directory `/local/scratch/tdeegan/xen-unstable.hg/tools/firmware/ovmf-remote/Build/OvmfX64/DEBUG_GCC46'

Quoted 9 lines

- Done -
Build end time: 12:46:06, Mar.22 2012
Build total time: 00:00:47

cp Build/OvmfX64/DEBUG_GCC44/FV/OVMF.fd ovmf.bin
cp: cannot stat `Build/OvmfX64/DEBUG_GCC44/FV/OVMF.fd': No such file or directory make[6]: *** [ovmf.bin] Error 1
make[6]: Leaving directory `/local/scratch/tdeegan/xen-unstable.hg/tools/firmware/ovmf-remote'

Quoted 6 lines

Using make -j1 doesn't unstick it - I haven't yet tried a -j1 build from
clean. I can't see any errors earlier in the build process.

Is there a ./configure rune to disable OVMF?

Actually CONFIG_OVMF should be disabled by default, can you please check how is in your case?

Also, did you apply the OVMF v4 patch for enabling the CONFIG_OVMF on?

Attilio

author
#2 lore raw
Quoted 2 lines · Attilio Rao

Actually CONFIG_OVMF should be disabled by default, can you please check how is in your case?

whitby:xen-unstable.hg$ grep CONFIG_OVMF Config.mk CONFIG_OVMF ?= $(CONFIG_Linux)

  changeset:   25077:6bf50858c3c5
  user:        Attilio Rao <[email protected]>
  date:        Thu Mar 22 10:26:03 2012 +0000
  summary:     Fetch the OVMF repository from specific git mirror and enable it
Quoted 1 line

Also, did you apply the OVMF v4 patch for enabling the CONFIG_OVMF on?

Nope, AFAICT I have no local patches.

Tim.

#3 lore raw
Quoted 11 lines · Tim Deegan
Quoted 2 lines · Attilio Rao

Actually CONFIG_OVMF should be disabled by default, can you please check how is in your case?

whitby:xen-unstable.hg$ grep CONFIG_OVMF Config.mk CONFIG_OVMF ?= $(CONFIG_Linux)

  changeset:   25077:6bf50858c3c5
  user:        Attilio Rao <[email protected]>
  date:        Thu Mar 22 10:26:03 2012 +0000
  summary:     Fetch the OVMF repository from specific git mirror and enable
Quoted 5 lines

it

Quoted 1 line

Also, did you apply the OVMF v4 patch for enabling the CONFIG_OVMF on?

Nope, AFAICT I have no local patches.

I applied the OVMF-enable patch this morning, hence Tim's problem. I might have applied v3 rather than v4 though? Please check.

-- Keir

Quoted 7 lines

Tim.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#4 lore raw
Quoted 15 lines · Keir Fraser
Quoted 13 lines · Tim Deegan
Quoted 2 lines · Attilio Rao

Actually CONFIG_OVMF should be disabled by default, can you please check how is in your case?

whitby:xen-unstable.hg$ grep CONFIG_OVMF Config.mk CONFIG_OVMF ?= $(CONFIG_Linux)

  changeset:   25077:6bf50858c3c5
  user:        Attilio Rao <[email protected]>
  date:        Thu Mar 22 10:26:03 2012 +0000
  summary:     Fetch the OVMF repository from specific git mirror and enable

it

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Also, did you apply the OVMF v4 patch for enabling the CONFIG_OVMF on?

Nope, AFAICT I have no local patches.

I applied the OVMF-enable patch this morning, hence Tim's problem. I might have applied v3 rather than v4 though? Please check.

I think that was supposed to be an RFC pending a build fix getting committed to OVMF upstream.

Quoted 17 lines

-- Keir

Quoted 7 lines

Tim.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#5 lore raw
Quoted 22 lines · Ian Campbell
Quoted 20 lines · Keir Fraser
Quoted 17 lines · Tim Deegan
Quoted 3 lines · Attilio Rao

Actually CONFIG_OVMF should be disabled by default, can you please check how is in your case?

whitby:xen-unstable.hg$ grep CONFIG_OVMF Config.mk CONFIG_OVMF ?= $(CONFIG_Linux)

   changeset:   25077:6bf50858c3c5
   user:        Attilio Rao<[email protected]>
   date:        Thu Mar 22 10:26:03 2012 +0000
   summary:     Fetch the OVMF repository from specific git mirror and enable

it

Quoted 2 lines

Also, did you apply the OVMF v4 patch for enabling the CONFIG_OVMF on?

Quoted 9 lines
Quoted 5 lines
Quoted 2 lines

Nope, AFAICT I have no local patches.

I applied the OVMF-enable patch this morning, hence Tim's problem. I might have applied v3 rather than v4 though? Please check.

I think that was supposed to be an RFC pending a build fix getting committed to OVMF upstream.

Yes, we need v4 which also contains explicit showstopping informations based on a OVMF patch pending.

Thus, likely we should revert v3 inclusion, wait another couple of days for Tianocore people to reply, eventually push the tianocore patch in our mirror and in the end apply v4.

Attilio

#6 lore raw
In reply to Keir Fraser
Quoted 18 lines · Keir Fraser
Quoted 15 lines · Tim Deegan
Quoted 3 lines · Attilio Rao

Actually CONFIG_OVMF should be disabled by default, can you please check how is in your case?

whitby:xen-unstable.hg$ grep CONFIG_OVMF Config.mk CONFIG_OVMF ?= $(CONFIG_Linux)

   changeset:   25077:6bf50858c3c5
   user:        Attilio Rao<[email protected]>
   date:        Thu Mar 22 10:26:03 2012 +0000
   summary:     Fetch the OVMF repository from specific git mirror and enable

it

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

Also, did you apply the OVMF v4 patch for enabling the CONFIG_OVMF on?

Nope, AFAICT I have no local patches.

I applied the OVMF-enable patch this morning, hence Tim's problem. I might have applied v3 rather than v4 though? Please check.

I actually think you have applied the right patch, there is just a situation in OVMF binary building that we need to cope with, my bad for not having better checked.

For the moment, please disable OVMF by default building, I'll send you more patches and when the upstream TIANOCORE will have fixes in I will send an explicit patch to enable it.

Thanks,
Attilio

author
#7 lore raw
In reply to Tim Deegan
Quoted 4 lines · Tim Deegan
Quoted 4 lines

cp Build/OvmfX64/DEBUG_GCC44/FV/OVMF.fd ovmf.bin
cp: cannot stat `Build/OvmfX64/DEBUG_GCC44/FV/OVMF.fd': No such file or directory make[6]: *** [ovmf.bin] Error 1
make[6]: Leaving directory `/local/scratch/tdeegan/xen-unstable.hg/tools/firmware/ovmf-remote'

Also, 'make clean' triggers the following code in tools/firmware/seabios-dir-remote/tools/test-gcc.sh :

if [ $? -ne 0 ]; then
echo " Working around no -fwhole-program" > /dev/fd/2 echo 2
exit 0
fi

which truncates std err and mangles my build log. FTW!

# HG changeset patch
# User Tim Deegan <[email protected]>
# Date 1332428104 0
# Node ID 6e34d38fda90a3a670fcd231e01d172dee3c3229 # Parent d5ccb2d1dbd1dce76f9d427073306941d48c3095 Disable OVMF build - it's not baked yet.

Config.mk +1 -1
diff -r d5ccb2d1dbd1 -r 6e34d38fda90 Config.mk
@@ -207,7 +207,7 @@ SEABIOS_UPSTREAM_TAG ?= rel-1.6.3.2
 
 ETHERBOOT_NICS ?= rtl8139 8086100e
 
-CONFIG_OVMF ?= $(CONFIG_Linux)
+CONFIG_OVMF ?= n
 CONFIG_ROMBIOS ?= y
 CONFIG_SEABIOS ?= y
#8 lore raw
Quoted 6 lines · Tim Deegan
Quoted 4 lines · Tim Deegan
Quoted 4 lines

cp Build/OvmfX64/DEBUG_GCC44/FV/OVMF.fd ovmf.bin
cp: cannot stat `Build/OvmfX64/DEBUG_GCC44/FV/OVMF.fd': No such file or directory make[6]: *** [ovmf.bin] Error 1
make[6]: Leaving directory `/local/scratch/tdeegan/xen-unstable.hg/tools/firmware/ovmf-remote'

Quoted 8 lines

Also, 'make clean' triggers the following code in tools/firmware/seabios-dir-remote/tools/test-gcc.sh :

if [ $? -ne 0 ]; then
echo " Working around no -fwhole-program" > /dev/fd/2 echo 2
exit 0
fi

I suppose making that ">>" fixes it for you?

Likewise "1>&2"?

If you can confirm that they work I'll send a patch to seabios.

Quoted 1 line

which truncates std err and mangles my build log. FTW!

Quite.

Quoted 27 lines

# HG changeset patch
# User Tim Deegan <[email protected]>
# Date 1332428104 0
# Node ID 6e34d38fda90a3a670fcd231e01d172dee3c3229 # Parent d5ccb2d1dbd1dce76f9d427073306941d48c3095 Disable OVMF build - it's not baked yet.

diff -r d5ccb2d1dbd1 -r 6e34d38fda90 Config.mk

Config.mk +1 -1
@@ -207,7 +207,7 @@ SEABIOS_UPSTREAM_TAG ?= rel-1.6.3.2
 
 ETHERBOOT_NICS ?= rtl8139 8086100e
 
-CONFIG_OVMF ?= $(CONFIG_Linux)
+CONFIG_OVMF ?= n
 CONFIG_ROMBIOS ?= y
 CONFIG_SEABIOS ?= y
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

author
#9 lore raw
Quoted 16 lines · Ian Campbell
Quoted 6 lines · Tim Deegan
Quoted 4 lines · Tim Deegan
Quoted 4 lines

cp Build/OvmfX64/DEBUG_GCC44/FV/OVMF.fd ovmf.bin
cp: cannot stat `Build/OvmfX64/DEBUG_GCC44/FV/OVMF.fd': No such file or directory make[6]: *** [ovmf.bin] Error 1
make[6]: Leaving directory `/local/scratch/tdeegan/xen-unstable.hg/tools/firmware/ovmf-remote'

Quoted 8 lines

Also, 'make clean' triggers the following code in tools/firmware/seabios-dir-remote/tools/test-gcc.sh :

if [ $? -ne 0 ]; then
echo " Working around no -fwhole-program" > /dev/fd/2 echo 2
exit 0
fi

Quoted 3 lines

I suppose making that ">>" fixes it for you?

Likewise "1>&2"?

Yeah, >&2 works fine (in a bunch of places in that file)

Tim.

#10 lore raw
Quoted 17 lines · Tim Deegan
Quoted 16 lines · Ian Campbell
Quoted 14 lines · Tim Deegan
Quoted 4 lines · Tim Deegan
Quoted 4 lines

cp Build/OvmfX64/DEBUG_GCC44/FV/OVMF.fd ovmf.bin
cp: cannot stat `Build/OvmfX64/DEBUG_GCC44/FV/OVMF.fd': No such file or directory make[6]: *** [ovmf.bin] Error 1
make[6]: Leaving directory `/local/scratch/tdeegan/xen-unstable.hg/tools/firmware/ovmf-remote'

Also, 'make clean' triggers the following code in tools/firmware/seabios-dir-remote/tools/test-gcc.sh :

if [ $? -ne 0 ]; then
echo " Working around no -fwhole-program" > /dev/fd/2 echo 2
exit 0
fi

Quoted 5 lines
Quoted 3 lines

I suppose making that ">>" fixes it for you?

Likewise "1>&2"?

Yeah, >&2 works fine (in a bunch of places in that file)

The fix has been accepted into seabios mainline. The "reported-by..." didn't get turned into a CC by git send-email like I thought it would.

Ian.

#11 lore raw
In reply to Tim Deegan
Quoted 18 lines · Tim Deegan
Quoted 5 lines · Tim Deegan
Quoted 5 lines

cp Build/OvmfX64/DEBUG_GCC44/FV/OVMF.fd ovmf.bin
cp: cannot stat `Build/OvmfX64/DEBUG_GCC44/FV/OVMF.fd': No such file or directory make[6]: *** [ovmf.bin] Error 1
make[6]: Leaving directory `/local/scratch/tdeegan/xen-unstable.hg/tools/firmware/ovmf-remote'

Also, 'make clean' triggers the following code in tools/firmware/seabios-dir-remote/tools/test-gcc.sh :

if [ $? -ne 0 ]; then
echo " Working around no -fwhole-program"> /dev/fd/2 echo 2
exit 0
fi

which truncates std err and mangles my build log. FTW!

Quoted 9 lines

# HG changeset patch
# User Tim Deegan<[email protected]>
# Date 1332428104 0
# Node ID 6e34d38fda90a3a670fcd231e01d172dee3c3229 # Parent d5ccb2d1dbd1dce76f9d427073306941d48c3095 Disable OVMF build - it's not baked yet.

Ack'ed by me.

Attilio

#12 lore raw
In reply to Tim Deegan
Quoted 24 lines · Tim Deegan

Hi,

On my x64 debian build box, after
 make distclean
 hg purge --all
 ./configure
 make -j8 deb

the build eventually fails with this:

Quoted 14 lines

FV Space Information
MAINFV [74%Full] 5242880 total, 3888168 used, 1354712 free
SECFV [86%Full] 81920 total, 70792 used, 11128 free
FVMAIN_COMPACT [74%Full] 966656 total, 719808 used, 246848 free
DXEFV [99%Full] 3670016 total, 3669544 used, 472 free
make[7]: Leaving directory `/local/scratch/tdeegan/xen-unstable.hg/tools/firmware/ovmf-remote/Build/OvmfX64/DEBUG_GCC46'

- Done -
Build end time: 12:46:06, Mar.22 2012
Build total time: 00:00:47

cp Build/OvmfX64/DEBUG_GCC44/FV/OVMF.fd ovmf.bin
cp: cannot stat `Build/OvmfX64/DEBUG_GCC44/FV/OVMF.fd': No such file or directory

Looks like GCC46 was used during the build here, so DEBUG_GCC46 is the output path, not DEBUG_GCC44.

-Jordan