Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 475270 - sys-firmware/ipxe-1.0.0_p20130225, sys-devel/gcc-4.8 error: bp cannot be used in asm here
Summary: sys-firmware/ipxe-1.0.0_p20130225, sys-devel/gcc-4.8 error: bp cannot be used...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo QEMU Project
URL:
Whiteboard:
Keywords:
: 475944 476240 477072 (view as bug list)
Depends on:
Blocks: gcc-4.8
  Show dependency tree
 
Reported: 2013-06-29 22:38 UTC by Chí-Thanh Christopher Nguyễn
Modified: 2013-12-23 13:10 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,60.12 KB, text/plain)
2013-06-29 22:38 UTC, Chí-Thanh Christopher Nguyễn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chí-Thanh Christopher Nguyễn gentoo-dev 2013-06-29 22:38:30 UTC
Created attachment 352278 [details]
build.log

sys-firmware/ipxe-1.0.0_p20130225 fails to build with gcc-4.8.
With stable gcc it builds fine. The error seems to differ from the one in bug 462898.

arch/i386/interface/pxe/pxe_call.c: In function ‘pxe_start_nbp’:
arch/i386/interface/pxe/pxe_call.c:284:1: error: bp cannot be used in asm here
 }
 ^
make: *** [bin/pxe_call.o] Error 1

emerge --info =sys-firmware/ipxe-1.0.0_p20130225
Portage 2.1.12.2 (default/linux/amd64/13.0/desktop/kde, gcc-4.8.1, glibc-2.15-r3, 3.9.4-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.9.4-gentoo-x86_64-AMD_Phenom-tm-_II_X4_B50_Processor-with-gentoo-2.2
KiB Mem:     7660428 total,   2474872 free
KiB Swap:    3905532 total,   3905532 free
Timestamp of tree: Sat, 29 Jun 2013 21:15:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1                                                         
dev-lang/python:          2.7.3-r3, 3.2.3-r2                                                
dev-util/cmake:           2.8.10.2-r2                                                       
sys-apps/baselayout:      2.2                                                               
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3, 4.8.1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x11 spring sunrise local
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=amdfam10"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=amdfam10"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/x11 /var/lib/layman/Spring /var/lib/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage/"
USE="3dnow X a52 aac acl acpi alsa amd64 avahi berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvb dvd dvdr emboss encode exif fam firefox flac fortran gcj gdbm gif gnutls gpm gtk iconv ipv6 java jpeg kde kipi lcms ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nsplugin ogg opengl openmp openvg pam pango pcre pdf phonon plasma png policykit ppds qt3support qt4 readline sdl semantic-desktop session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb v4l2 vdpau vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="dibusb-usb1" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en fa vi" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2013-06-30 02:00:07 UTC
For gcc 4.8, please use ipxe-1.0.0_p20130624 which is in the tree already and report if that doesn't work for you.
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2013-07-06 18:42:34 UTC
*** Bug 475944 has been marked as a duplicate of this bug. ***
Comment 3 Tim Harder gentoo-dev 2013-07-09 18:16:43 UTC
*** Bug 476240 has been marked as a duplicate of this bug. ***
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2013-07-16 16:40:22 UTC
*** Bug 477072 has been marked as a duplicate of this bug. ***
Comment 5 Markus Walter 2013-09-04 19:23:32 UTC
I see the following error on hardened ~amd64 with gcc-4.8.1 for ipxe-1.0.0_p20130624:

  [BUILD] bin/memmap.o
x86_64-pc-linux-gnu-gcc  -DARCH=i386 -DPLATFORM=pcbios -march=i386 -fomit-frame-pointer -fstrength-reduce -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mpreferred-stack-boundary=2 -mregparm=3 -mrtd -freg-struct-return -m32 -fshort-wchar -Ui386 -Ulinux -DNVALGRIND -Iinclude -I. -Iarch/x86/include -Iarch/i386/include -Iarch/i386/include/pcbios -Os -g -ffreestanding -Wall -W -Wformat-nonliteral   -fno-stack-protector -fno-PIE -nopie -fno-dwarf2-cfi-asm -fno-exceptions  -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-address  -ffunction-sections -fdata-sections -include include/compiler.h   -DOBJECT=memmap -c arch/i386/firmware/pcbios/memmap.c -o bin/memmap.o 
arch/i386/firmware/pcbios/bios_console.c: In function ‘bios_putchar’:
arch/i386/firmware/pcbios/bios_console.c:196:1: error: bp cannot be used in asm here
 }
 ^
arch/i386/firmware/pcbios/bios_console.c:196:1: error: bp cannot be used in asm here
Comment 6 Doug Goldstein (RETIRED) gentoo-dev 2013-09-04 20:05:16 UTC
(In reply to Markus Oehme from comment #5)
> I see the following error on hardened ~amd64 with gcc-4.8.1 for
> ipxe-1.0.0_p20130624:
> 
>   [BUILD] bin/memmap.o
> x86_64-pc-linux-gnu-gcc  -DARCH=i386 -DPLATFORM=pcbios -march=i386
> -fomit-frame-pointer -fstrength-reduce -falign-jumps=1 -falign-loops=1
> -falign-functions=1 -mpreferred-stack-boundary=2 -mregparm=3 -mrtd
> -freg-struct-return -m32 -fshort-wchar -Ui386 -Ulinux -DNVALGRIND -Iinclude
> -I. -Iarch/x86/include -Iarch/i386/include -Iarch/i386/include/pcbios -Os -g
> -ffreestanding -Wall -W -Wformat-nonliteral   -fno-stack-protector -fno-PIE
> -nopie -fno-dwarf2-cfi-asm -fno-exceptions  -fno-unwind-tables
> -fno-asynchronous-unwind-tables -Wno-address  -ffunction-sections
> -fdata-sections -include include/compiler.h   -DOBJECT=memmap -c
> arch/i386/firmware/pcbios/memmap.c -o bin/memmap.o 
> arch/i386/firmware/pcbios/bios_console.c: In function ‘bios_putchar’:
> arch/i386/firmware/pcbios/bios_console.c:196:1: error: bp cannot be used in
> asm here
>  }
>  ^
> arch/i386/firmware/pcbios/bios_console.c:196:1: error: bp cannot be used in
> asm here

You're really missing a bunch of context from this since the gcc line prior to the error is building memmap.c, but the error you are having is with bios_console.c there's no telling what extra flags affected it. That being said, I would really be surprised if our hardened toolchain is able to produce working ROMs since I know iPXE, SeaBIOS, etc are sensitive to the toolchain.
Comment 7 Markus Walter 2013-09-04 20:15:46 UTC
(In reply to Doug Goldstein from comment #6)
> You're really missing a bunch of context from this since the gcc line prior
> to the error is building memmap.c, but the error you are having is with
> bios_console.c there's no telling what extra flags affected it. That being
> said, I would really be surprised if our hardened toolchain is able to
> produce working ROMs since I know iPXE, SeaBIOS, etc are sensitive to the
> toolchain.

Aw, got the wrong line, here comes the correct one:

  [BUILD] bin/bios_console.o
x86_64-pc-linux-gnu-gcc  -DARCH=i386 -DPLATFORM=pcbios -march=i386 -fomit-frame-pointer -fstrength-reduce -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mpreferred-stack-boundary=2 -mregparm=3 -mrtd -freg-struct-return -m32 -fshort-wchar -Ui386 -Ulinux -DNVALGRIND -Iinclude -I. -Iarch/x86/include -Iarch/i386/include -Iarch/i386/include/pcbios -Os -g -ffreestanding -Wall -W -Wformat-nonliteral   -fno-stack-protector -fno-PIE -nopie -fno-dwarf2-cfi-asm -fno-exceptions  -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-address  -ffunction-sections -fdata-sections -include include/compiler.h   -DOBJECT=bios_console -c arch/i386/firmware/pcbios/bios_console.c -o bin/bios_console.o 

I merged ipxe with hardened-gcc-4.7.4 and just booted a virtual machine with kvm/qemu -- during the boot I saw the string ipxe, so I assume that it works ...