Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 428762 - sys-firmware/seabios-1.7.0 - Traceback (most recent call last): File "./tools/layoutrom.py", line 583, in <module> main() File "./tools/layoutrom.py", line 564, in main info16 = parseObjDump(infile16, '16') File "./tools/layoutrom.py", ...
Summary: sys-firmware/seabios-1.7.0 - Traceback (most recent call last): File "./too...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-31 07:33 UTC by Ivan Bagaev
Modified: 2013-06-16 00:41 UTC (History)
4 users (show)

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


Attachments
complete build log (sys-firmware:seabios-1.7.0:20120731-071435.log,2.47 KB, text/plain)
2012-07-31 07:33 UTC, Ivan Bagaev
Details
emerge --info '=sys-firmware/seabios-1.7.0' (emerge-info-seabios.txt,6.33 KB, text/plain)
2012-07-31 07:34 UTC, Ivan Bagaev
Details
emerge -pqv '=sys-firmware/seabios-1.7.0' (emerge-pqv-seabios.txt,44 bytes, text/plain)
2012-07-31 07:34 UTC, Ivan Bagaev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Bagaev 2012-07-31 07:33:24 UTC
Created attachment 319812 [details]
complete build log

Version: 1.7.0-20120731_131444-miramir-pc
Traceback (most recent call last):
  File "./tools/layoutrom.py", line 583, in <module>
    main()
  File "./tools/layoutrom.py", line 564, in main
    info16 = parseObjDump(infile16, '16')
  File "./tools/layoutrom.py", line 501, in parseObjDump
    relocsection = sectionmap[sectionname]
KeyError: '.text.asm.out/../src/smp.c.68'
make: *** [out/romlayout16.lds] Ошибка 1
 * ERROR: sys-firmware/seabios-1.7.0 failed (compile phase):
 *   emake failed
Comment 1 Ivan Bagaev 2012-07-31 07:34:21 UTC
Created attachment 319814 [details]
emerge --info '=sys-firmware/seabios-1.7.0'
Comment 2 Ivan Bagaev 2012-07-31 07:34:53 UTC
Created attachment 319816 [details]
emerge -pqv '=sys-firmware/seabios-1.7.0'
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2012-08-01 04:15:44 UTC
Out of curiosity, try LANG="en_US.utf8" emerge -1 seabios. Honestly the build system isn't spitting out enough details to understand why it failed except that the section name is completely screwy. Maybe it has something to do with the locale. I'll have to dig further but it might take me some time.
Comment 4 Ivan Bagaev 2012-08-01 06:40:53 UTC
LANG="en_US.utf8" emerge -1 seabios

it is work for me.
Comment 5 Xiang Zhai 2012-09-10 02:25:53 UTC
export | grep LANG
declare -x GDM_LANG="zh_CN.utf8"
declare -x LANG="zh_CN.utf8"

then try try LANG="en_US.utf8" emerge -1 seabios, it works for me :) thanks

> Out of curiosity, try LANG="en_US.utf8" emerge -1 seabios. Honestly the
> build system isn't spitting out enough details to understand why it failed
> except that the section name is completely screwy. Maybe it has something to
> do with the locale. I'll have to dig further but it might take me some time.
Comment 6 Alexander 2012-10-03 14:10:16 UTC
Now working for me


# LANG="en_US.utf8" emerge -1 seabios

 * IMPORTANT: 3 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-firmware/seabios-1.7.0
 * seabios-1.7.0.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                           [ ok ]
 * seabios-1.7.0-bins.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                      [ ok ]
>>> Unpacking source...
>>> Unpacking seabios-1.7.0.tar.gz to /var/tmp/portage/sys-firmware/seabios-1.7.0/work
>>> Unpacking seabios-1.7.0-bins.tar.xz to /var/tmp/portage/sys-firmware/seabios-1.7.0/work
>>> Source unpacked in /var/tmp/portage/sys-firmware/seabios-1.7.0/work
>>> Preparing source in /var/tmp/portage/sys-firmware/seabios-1.7.0/work/seabios-1.7.0 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-firmware/seabios-1.7.0/work/seabios-1.7.0 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-firmware/seabios-1.7.0/work/seabios-1.7.0 ...
make -j1 out/bios.bin 
  Working around non-functional -combine
  Build default config
#
# configuration written to /var/tmp/portage/sys-firmware/seabios-1.7.0/work/seabios-1.7.0/.config
#
  Working around non-functional -combine
  Build Kconfig config file
  Compiling whole program out/ccode32flat.o
  Compiling whole program out/code32seg.o
  Compiling whole program out/ccode16.o
  Compiling to assembler out/asm-offsets.s
  Generating offset file out/asm-offsets.h
  Compiling (16bit) out/romlayout.o
  Building ld scripts
Version: 1.7.0-20121003_180845-localhost
Traceback (most recent call last):
  File "./tools/layoutrom.py", line 583, in <module>
    main()
  File "./tools/layoutrom.py", line 564, in main
    info16 = parseObjDump(infile16, '16')
  File "./tools/layoutrom.py", line 501, in parseObjDump
    relocsection = sectionmap[sectionname]
KeyError: '.text.asm.out/../src/smp.c.68'
make: *** [out/romlayout16.lds] Ошибка 1
 * ERROR: sys-firmware/seabios-1.7.0 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sys-firmware/seabios-1.7.0'`,
 * the complete build log and the output of `emerge -pqv '=sys-firmware/seabios-1.7.0'`.
 * The complete build log is located at '/var/tmp/portage/sys-firmware/seabios-1.7.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-firmware/seabios-1.7.0/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-firmware/seabios-1.7.0/work/seabios-1.7.0'
 * S: '/var/tmp/portage/sys-firmware/seabios-1.7.0/work/seabios-1.7.0'

>>> Failed to emerge sys-firmware/seabios-1.7.0, Log file:

>>>  '/var/tmp/portage/sys-firmware/seabios-1.7.0/temp/build.log'

 * Messages for package sys-firmware/seabios-1.7.0:

 * ERROR: sys-firmware/seabios-1.7.0 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sys-firmware/seabios-1.7.0'`,
 * the complete build log and the output of `emerge -pqv '=sys-firmware/seabios-1.7.0'`.
 * The complete build log is located at '/var/tmp/portage/sys-firmware/seabios-1.7.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-firmware/seabios-1.7.0/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-firmware/seabios-1.7.0/work/seabios-1.7.0'
 * S: '/var/tmp/portage/sys-firmware/seabios-1.7.0/work/seabios-1.7.0'
Comment 7 Alexander 2012-10-03 14:41:45 UTC
LANG=C emerge -1 seabios

Ok for me
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2012-10-16 20:47:38 UTC
Same here. Russian locale injects russian letters into objdump output.

THe following stabilizes objdump output.

Index: seabios-1.7.0.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-firmware/seabios/seabios-1.7.0.ebuild,v
retrieving revision 1.4
diff -u -u -r1.4 seabios-1.7.0.ebuild
--- seabios-1.7.0.ebuild        9 Oct 2012 20:25:02 -0000       1.4
+++ seabios-1.7.0.ebuild        16 Oct 2012 20:46:17 -0000
@@ -52,7 +52,7 @@
 
 src_compile() {
        if use amd64 || use x86 ; then
-               emake out/bios.bin
+               LANG=C emake out/bios.bin
        fi
 }
Comment 9 Doug Goldstein (RETIRED) gentoo-dev 2012-10-17 03:43:33 UTC
Thanks Sergei. Fixed in tree.