Skip to contentSkip to conversation

Compilation Error in tools (BIOS/hvmloader)

DISCUSSION Emre Erenoglu 3 participants 3 messages Feb 16, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

I just recognised a compilation error which prevents the system from creating hvmloader files in necessary places. It does not stop overall compilation so I wanted to write this here in case developers might not be aware of the problem.

Here's the output when compiling latest unstable code (15/2/2007):

emre@xen:/xen/xen-unstable.hg/tools$ sudo make clean
emre@xen:/xen/xen-unstable.hg/tools$ sudo make all
...
...
...
...
gcc   -m32 -march=i686 -DNDEBUG -std=gnu99 -Wall -Wstrict-prototypes
-Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -fno-builtin -O2
-msoft-float -nostdlib -I../ -DGCC_PROTOS -c -o util.o util.c
ld -melf_i386 -r 32bitbios.o tcgbios/tcgbiosext.o util.o -o 32bitbios_all.o
There are undefined symbols in the BIOS:
        U __stack_chk_fail
make[2]: *** [32bitbios_flat.h] Error 11
make[2]: Leaving directory `/xen/xen-unstable.hg/tools/firmware/rombios/32bit'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/xen/xen-unstable.hg/tools/firmware'
make: *** [all] Error 2
emre@xen:/xen/xen-unstable.hg/tools$

Best regards,

Emre Erenoglu

#1 lore raw
Quoted 8 lines · Emre Erenoglu

Hi,

I just recognised a compilation error which prevents the system from creating hvmloader files in necessary places. It does not stop overall compilation so I wanted to write this here in case developers might not be aware of the problem.

Here's the output when compiling latest unstable code (15/2/2007):

On Ubuntu or Gentoo? You'll have to add the option -fno-stack-protector to gcc. make CC='gcc -fno-stack-protector' should do it.

I thought the developers added a check for that option some time ago, maybe they missed some places.

Signature · 2 lines
lfr
0/0

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

#2 lore raw
Quoted 7 lines · Luciano Miguel Ferreira Rocha
Quoted 1 line

Here's the output when compiling latest unstable code (15/2/2007):

On Ubuntu or Gentoo? You'll have to add the option -fno-stack-protector to gcc. make CC='gcc -fno-stack-protector' should do it.

I thought the developers added a check for that option some time ago, maybe they missed some places.

This issue is fixed in current xen-unstable.

-- Keir