VirtualBox

Opened 10 years ago

Closed 10 years ago

#13227 closed defect (fixed)

gcc-4.8 build failure - pc bios/bios_console.c:195:1:error: bp cannot be used in asm here => Fixed in SVN

Reported by: Peter Owned by:
Component: other Version: VirtualBox 4.3.14
Keywords: Cc:
Guest type: other Host type: Linux

Description

build with gcc-4.8 fails:

x86_64-pc-linux-gnu-gcc -m32 -c -O2 -ffreestanding -ffunction-sections -march=i386 -fomit-frame-pointer -fstrength-reduce 
-falign-jumps=1 -falign-loops=1 -Os -falign-functions=1 -mpreferred-stack-boundary=2 -mregparm=3 -mrtd -freg-struct-return
 -fshort-wchar -Ui386 -Ulinux -include compiler.h -Wall -W -Wformat-nonliteral -fno-stack-protector -nopie -fno-dwarf2-cfi
-asm -Wno-address -I/var/tmp/portage/app-emulation/virtualbox-4.3.14/work/VirtualBox-4.3.14/src/VBox/Devices/PC/ipxe/src -
I/var/tmp/portage/app-emulation/virtualbox-4.3.14/work/VirtualBox-4.3.14/src/VBox/Devices/PC/ipxe/src/include -I/var/tmp/p
ortage/app-emulation/virtualbox-4.3.14/work/VirtualBox-4.3.14/src/VBox/Devices/PC/ipxe/src/arch/x86/include -I/var/tmp/por
tage/app-emulation/virtualbox-4.3.14/work/VirtualBox-4.3.14/src/VBox/Devices/PC/ipxe/src/arch/i386/include -I/var/tmp/port
age/app-emulation/virtualbox-4.3.14/work/VirtualBox-4.3.14/src/VBox/Devices/PC/ipxe/src/arch/i386/include/pcbios -I/var/tm
p/portage/app-emulation/virtualbox-4.3.14/work/VirtualBox-4.3.14/include -I/var/tmp/portage/app-emulation/virtualbox-4.3.1
4/work/VirtualBox-4.3.14/out/linux.amd64/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER -DRT_OS
_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/usr/share/virtualb
ox\" -DRTPATH_APP_PRIVATE_ARCH=\"/usr/lib64/virtualbox\" -DRTPATH_SHARED_LIBS=\"/usr/lib64/virtualbox\" -DRTPATH_APP_DOCS=
\"\" -DARCH=i386 -DPLATFORM=pcbios -DVERSION_MAJOR=1 -DVERSION_MINOR=0 -DVERSION_PATCH=0 -DVERSION=\"1.0.0+\" -D_build_id=
0xaffeaffe -DOBJECT=memmap -Wp,-MD,/var/tmp/portage/app-emulation/virtualbox-4.3.14/work/VirtualBox-4.3.14/out/linux.amd64
/release/obj/iPxeBaseBin/src/arch/i386/firmware/pcbios/memmap.o.dep -Wp,-MT,/var/tmp/portage/app-emulation/virtualbox-4.3.
14/work/VirtualBox-4.3.14/out/linux.amd64/release/obj/iPxeBaseBin/src/arch/i386/firmware/pcbios/memmap.o -Wp,-MP -o /var/t
mp/portage/app-emulation/virtualbox-4.3.14/work/VirtualBox-4.3.14/out/linux.amd64/release/obj/iPxeBaseBin/src/arch/i386/fi
rmware/pcbios/memmap.o /var/tmp/portage/app-emulation/virtualbox-4.3.14/work/VirtualBox-4.3.14/src/VBox/Devices/PC/ipxe/sr
c/arch/i386/firmware/pcbios/memmap.c
/var/tmp/portage/app-emulation/virtualbox-4.3.14/work/VirtualBox-4.3.14/src/VBox/Devices/PC/ipxe/src/arch/i386/firmware/pc
bios/bios_console.c: In function ‘bios_putchar’:
/var/tmp/portage/app-emulation/virtualbox-4.3.14/work/VirtualBox-4.3.14/src/VBox/Devices/PC/ipxe/src/arch/i386/firmware/pc
bios/bios_console.c:195:1: error: bp cannot be used in asm here
 }
 ^

According to gcc upstream this is bug in code: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58758

There are fixes here: https://bugs.gentoo.org/show_bug.cgi?id=500064

Please review and apply patches.

Change History (4)

comment:1 by Frank Mehnert, 10 years ago

The code is indeed wrong. What I don't understand is why my gcc-4.8 / 4.9 compilers don't complain ...

comment:2 by Perry G, 10 years ago

None of my debian based units complian either.

Last edited 10 years ago by Perry G (previous) (diff)

comment:3 by Frank Mehnert, 10 years ago

Summary: gcc-4.8 build failure - pc bios/bios_console.c:195:1:error: bp cannot be used in asm heregcc-4.8 build failure - pc bios/bios_console.c:195:1:error: bp cannot be used in asm here => Fixed in SVN

Fixed in r52228. This changeset will be also part of the next 4.3.x maintenance release.

comment:4 by Frank Mehnert, 10 years ago

Resolution: fixed
Status: newclosed

Fixed with VBox 4.3.16.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use