Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 543424 - app-emulation/xen-tools-4.5.0-r2 fails to compile with KeyError: '.text.asm....
Summary: app-emulation/xen-tools-4.5.0-r2 fails to compile with KeyError: '.text.asm....
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Xen Devs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-15 15:50 UTC by Silvio
Modified: 2015-03-30 14:28 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,201.54 KB, text/plain)
2015-03-15 15:51 UTC, Silvio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Silvio 2015-03-15 15:50:43 UTC
Compilation exits in this way:

objdump -thr out/code16.o > out/code16.o.objdump
python2.7 ./scripts/layoutrom.py out/code16.o.objdump out/code32seg.o.objdump out/code32flat.o.objdump out/autoconf.h out/romlayout16.lds out/romlayout32seg.lds out/romlayout32flat.lds
Traceback (most recent call last):
  File "./scripts/layoutrom.py", line 709, in <module>
    main()
  File "./scripts/layoutrom.py", line 671, in main
    info16 = parseObjDump(infile16, '16')
  File "./scripts/layoutrom.py", line 586, in parseObjDump
    relocsection = sectionmap[sectionname]
KeyError: '.text.asm./var/tmp/portage/app-emulation/xen-tools-4.5.0-r2/work/xen-4.5.0/tools/firmware/seabios-dir-remote/src/fw/smp.c.79'
Makefile:155: set di istruzioni per l'obiettivo "out/romlayout16.lds" non riuscito
make[5]: *** [out/romlayout16.lds] Errore 1
make[5]: uscita dalla directory "/var/tmp/portage/app-emulation/xen-tools-4.5.0-r2/work/xen-4.5.0/tools/firmware/seabios-dir-remote"
/var/tmp/portage/app-emulation/xen-tools-4.5.0-r2/work/xen-4.5.0/tools/firmware/../../tools/Rules.mk:116: set di istruzioni per l'obiettivo "subdir-all-seabios-dir" non riuscito
make[4]: *** [subdir-all-seabios-dir] Errore 2
make[4]: uscita dalla directory "/var/tmp/portage/app-emulation/xen-tools-4.5.0-r2/work/xen-4.5.0/tools/firmware"
/var/tmp/portage/app-emulation/xen-tools-4.5.0-r2/work/xen-4.5.0/tools/firmware/../../tools/Rules.mk:111: set di istruzioni per l'obiettivo "subdirs-all" non riuscito
make[3]: *** [subdirs-all] Errore 2
make[3]: uscita dalla directory "/var/tmp/portage/app-emulation/xen-tools-4.5.0-r2/work/xen-4.5.0/tools/firmware"
Makefile:32: set di istruzioni per l'obiettivo "all" non riuscito
make[2]: *** [all] Errore 2
make[2]: uscita dalla directory "/var/tmp/portage/app-emulation/xen-tools-4.5.0-r2/work/xen-4.5.0/tools/firmware"
/var/tmp/portage/app-emulation/xen-tools-4.5.0-r2/work/xen-4.5.0/tools/../tools/Rules.mk:116: set di istruzioni per l'obiettivo "subdir-all-firmware" non riuscito
make[1]: *** [subdir-all-firmware] Errore 2
make[1]: uscita dalla directory "/var/tmp/portage/app-emulation/xen-tools-4.5.0-r2/work/xen-4.5.0/tools"
/var/tmp/portage/app-emulation/xen-tools-4.5.0-r2/work/xen-4.5.0/tools/../tools/Rules.mk:111: set di istruzioni per l'obiettivo "subdirs-all" non riuscito
make: *** [subdirs-all] Errore 2
make: uscita dalla directory "/var/tmp/portage/app-emulation/xen-tools-4.5.0-r2/work/xen-4.5.0/tools"

Reproducible: Always




my emerge --info

Portage 2.2.18 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.9.2, glibc-2.20-r2, 3.19.1-gentoo x86_64)
=================================================================
System uname: Linux-3.19.1-gentoo-x86_64-Intel-R-_Core-TM-_i7-4710HQ_CPU_@_2.50GHz-with-gentoo-2.2
KiB Mem:    16344364 total,   3857180 free
KiB Swap:   17825788 total,  17825656 free
Timestamp of repository gentoo: Sun, 15 Mar 2015 09:15:01 +0000
sh bash 4.3_p33-r2
ld ld di GNU (Gentoo 2.25 p1.0) 2.25
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.2.1 [disabled]
app-shells/bash:          4.3_p33-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/ccache:          3.2.1-r1::gentoo
dev-util/cmake:           3.1.0::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.11::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25::gentoo
sys-devel/gcc:            4.8.4::gentoo, 4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000

manual
    location: /usr/portage/local/manual
    masters: gentoo
    priority: 0

bibletime
    location: /var/lib/layman/bibletime
    masters: gentoo
    priority: 1

amielke-overlay
    location: /var/lib/layman/amielke-overlay
    masters: gentoo
    priority: 50

belak
    location: /var/lib/layman/belak
    masters: gentoo
    priority: 50

betagarden
    location: /var/lib/layman/betagarden
    masters: gentoo
    priority: 50

gamerlay
    location: /var/lib/layman/gamerlay
    masters: gentoo
    priority: 50

luman
    location: /var/lib/layman/luman
    masters: gentoo
    priority: 50

maekke
    location: /var/lib/layman/maekke
    masters: gentoo
    priority: 50

maggu2810-overlay
    location: /var/lib/layman/maggu2810-overlay
    masters: gentoo
    priority: 50

nikai
    location: /var/lib/layman/nikai
    masters: gentoo
    priority: 50

pentoo
    location: /var/lib/layman/pentoo
    masters: gentoo
    priority: 50

pinkbyte
    location: /var/lib/layman/pinkbyte
    masters: gentoo
    priority: 50

sunrise
    location: /var/lib/layman/sunrise
    masters: gentoo
    priority: 50

vortex
    location: /var/lib/layman/vortex
    masters: gentoo
    priority: 50

voyageur
    location: /var/lib/layman/voyageur
    masters: gentoo
    priority: 50

yarik-overlay
    location: /var/lib/layman/yarik-overlay
    masters: gentoo
    priority: 50

zugaina
    location: /var/lib/layman/zugaina
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="${CONFIG_PROTECT} /etc /etc/idea/conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.2/conf /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
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 userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS=" http://mirror.ovh.net/gentoo-distfiles/ http://ftp.heanet.ie/pub/gentoo/ http://mirror.ovh.net/gentoo-distfiles/ http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ rsync://rsync3.it.gentoo.org/gentoo-sources/ ftp://ftp.unina.it/pub/linux/distributions/gentoo/"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="3ds 64bit X a52 aac aacplus aacs aalib acl acpi ads aften aiglx akode alias alsa amd64 amr ao apache apm apng asyncns audiofile autoreplace autotrace avahi avi bash-completion berkdb bidi bitmap-fonts bluetooth bluray bmp branding browserplugin bzip bzip2 cairo caps cdaudio cdda cddb cdr cli clucene connectionstatus consolekit contactnotes cracklib crypt cuda cups cvd cvs cxx dbus declarative dia dialup dirac djvu dri dtmf dts dv dvb dvd dvdr dvdread dvi dxva2 dynamicplugin ebook efi emboss encode ethereal exif faac faad fam farstream fat fdk ffmpeg firefox flac fluidsynth fontconfig foomaticdb fortran freetds frei0r fribidi g726 g729 gbm gdbm geolocation gif gimp git glamor gles gles2 glib glitz gme gphoto2 gpm gps gpu groupwise gstreamer gtk gtk3 h323 highlight history hvm i8x0 iconv icu ieee1394 ilbc imagemagick innodb ios iphone ipv6 irc ithreads jack java javascript jingle jpeg jpeg2k kate kde kdenlive kdepim kerberos kipi kontact kqemu lame laptop lcms ldap libass libkms libnotify lm_sensors lucene m4a mad marble mbrola mdb mdnsresponder-compat mercurial midi mime minizip mmx mmxext mng modules moonlight mozilla mp3 mp4 mpeg mpeg2 mplayer msn mssql multilib musepack musicbrainz ncurses netmeeting nls nowlistening npt1 nptl nptlonly nsplugin ntfs nvidia odbc ogg openal openexr opengl openipmi openmp opus orc oss pam pango pcmcia pcre pda pdf perl phonon plasma pmu png policykit portaudio postgres ppds pulseaudio python python3 qemu qt qt3support qt4 quicktime rar raw rdesktop rdp readline reiserfs reports rtsp samba sametime sane scanner sdl sdl-image semantic-desktop session shout sip sipim skype smp sms soprano soundtouch speex spell sqlite sse sse2 sse3 ssh ssl startup-notification subtitles subversion svg tcpd texteffect texteffects theora tidy tiff timidity tk tordns translator truetype truetype-fonts twolame type1-fonts udev udisks unicode upower usb utempter uxa v4l v4l2 vaapi vcd vcdx vdpau video virtualbox vnc vorbis vpx wav wavpack webkit webpresence webrtc-aec wicd wifi win32codecs win64 winbind winetriks winpopup wlm wma wma-fixed wmf wxwidgets wxwindows x264 xcb xcomposite xen xetex xine xinerama xml xmp xscreensaver xv xvid xvmc yahoo zeroconf zlib" ABI_X86="64 32" ALSA_CARDS="snd_hda_intel" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2 avx avx2 fma3" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev joystick synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="it en it_IT" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20 ruby22" SANE_BACKENDS="*" USERLAND="GNU" VIDEO_CARDS="nvidia intel i965 nv vesa nouveau v4l v4l2 modesetting fbdev" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Silvio 2015-03-15 15:51:26 UTC
Created attachment 398992 [details]
build.log
Comment 2 Yixun Lan archtester gentoo-dev 2015-03-16 02:27:57 UTC
sorry, but I couldn't reproduce your err with following command (on ARCH=amd64)

USE=" hvm  pam python  qemu -doc -flask -ocaml -ovmf -pygrub -screen" emerge =xen-tools-4.5.0-r2
Comment 3 Silvio 2015-03-16 14:08:27 UTC
I've run now:
USE=" hvm  pam python  qemu -doc -flask -ocaml -ovmf -pygrub -screen" emerge -1v =xen-tools-4.5.0-r2

but still same error. Could it be a locale problem?
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2015-03-27 02:47:23 UTC
(In reply to Silvio from comment #3)
> I've run now:
> USE=" hvm  pam python  qemu -doc -flask -ocaml -ovmf -pygrub -screen" emerge
> -1v =xen-tools-4.5.0-r2
> 
> but still same error. Could it be a locale problem?

yes

of far greater concern

~/cvsPortage/gentoo-x86/app-emulation/xen-tools $ USE="hvm pam pythonreen" ebuild xen-tools-4.5.0-r2.ebuild clean compile

make[5]: Entering directory '/mnt/gen2/TmpDir/portage/app-emulation/xen-tools-4.5.0-r2/work/xen-4.5.0/tools/firmware/etherboot'
if ! /usr/bin/wget -c -O _ipxe.tar.gz http://xenbits.xen.org/xen-extfiles/ipxe-git-9a93db3f0947484e30e753bbd61a10b17336e20e.tar.gz; then \
	git clone git://git.ipxe.org/ipxe.git ipxe.git; \
	(cd ipxe.git && git archive --format=tar --prefix=ipxe/ \
	9a93db3f0947484e30e753bbd61a10b17336e20e | gzip >../_ipxe.tar.gz); \
	rm -rf ipxe.git; \

the ebuild d'loading ipxe under the influence of one of the USE flags.  I thought this was sorted long ago with an antil dload patch.
Comment 5 Yixun Lan archtester gentoo-dev 2015-03-27 09:27:40 UTC
hi silvio, could you set your locale to english, as I have problem to understand the actual error message[1].

LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"

[1] snap of the build error

KeyError: '.text.asm./var/tmp/portage/app-emulation/xen-tools-4.5.0-r2/work/xen-4.5.0/tools/firmware/seabios-dir-remote/src/fw/smp.c.79'
Makefile:155: set di istruzioni per l'obiettivo "out/romlayout16.lds" non riuscito
make[5]: *** [out/romlayout16.lds] Errore 1
make[5]: uscita dalla directory "/var/tmp/portage/app-emulation/xen-tools-4.5.0-r2/work/xen-4.5.0/tools/firmware/seabios-dir-remote"
/var/tmp/portage/app-emulation/xen-tools-4.5.0-r2/work/xen-4.5.0/tools/firmware/../../tools/Rules.mk:116: set di istruzioni per l'obiettivo "subdir-all-seabios-dir" non riuscito
make[4]: *** [subdir-all-seabios-dir] Errore 2
Comment 6 Yixun Lan archtester gentoo-dev 2015-03-27 09:30:32 UTC
(In reply to Silvio from comment #3)
> but still same error. Could it be a locale problem?

it is possible, as I peep the python script ( ./scripts/layoutrom.py) which parsing string using english.
Comment 7 Ian Delaney (RETIRED) gentoo-dev 2015-03-27 10:13:11 UTC
cancel my Comment 4 my /files was not up to date due to some past changes. Updating saw;

~/cvsPortage/gentoo-x86/app-emulation/xen-tools $ USE=" hvm pam python qemu" ebuild xen-tools-4.5.0-r2.ebuild compile

complete

make[1]: Leaving directory '/mnt/gen2/TmpDir/portage/app-emulation/xen-tools-4.5.0-r2/work/xen-4.5.0/docs'
make: Leaving directory '/mnt/gen2/TmpDir/portage/app-emulation/xen-tools-4.5.0-r2/work/xen-4.5.0/docs'
>>> Source compiled.
 
as expected. I can't determine your nationality.  Gentoo and python combined have a gap in the issue of locale.  A locale of utf type works fine.  There is not solid fix or cure to a 'hostile/ locale being set in a gentoo system to avoid failure in packages with python content or an underbelly.
Comment 8 Silvio 2015-03-28 08:10:06 UTC
I confirm that putting:

LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"

in my;

/etc/env.d/02locale

than:

#  env-update && source /etc/profile

and then:

# emerge -1v xen-tools

everything went well and xen-tools has been compiled.

Well, this is a workaround. Is there a solution?
Comment 9 Yixun Lan archtester gentoo-dev 2015-03-28 11:07:04 UTC
(In reply to Silvio from comment #8)

I consider this a real *fix*, rather than a workaround ;-)

btw, why could you like to set your global LC_ALL to it_IT.UTF-8? IMO, setting LC_CTYPE, LC_LANG would be enough..

another idea, you could overrider per package's env, see "man 5 portage", search package.env
Comment 10 Ian Delaney (RETIRED) gentoo-dev 2015-03-30 14:28:32 UTC
This issue appears to be perennial in gentoo.  There have been dozens of bugs with this 'bug' and it is manageable in the way you've done it. An alternative is to hard set  LC_ settings locally in your ebuild and then emerge. It has been done in some ebuilds and mostly revised and taken out because it is bad form.  There is nothing more to be said for this bug