Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61947 - compile failure - sys-apps/lshw-01.07a
Summary: compile failure - sys-apps/lshw-01.07a
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-27 10:02 UTC by Rumen Yotov
Modified: 2005-02-04 10:15 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rumen Yotov 2004-08-27 10:02:51 UTC
For some time (3-4 weeks) can't compile lshw-01.07a. Same error message.
Using hardened if this info is needed.
In Changelog-lshw-01.06a saw there were something about 'removed hardened-gcc 
lshw_01.07a.log...BEGIN...
logic'.
setup
unpack
>>> Unpacking source...
>>> Unpacking lshw-A.01.07.tar.gz to /var/tmp/portage/lshw-01.07a/work
>>> Source unpacked.
compile
g++ -march=i686 -O2 -pipe -fomit-frame-pointer -c hw.cc -o hw.o
g++ -march=i686 -O2 -pipe -fomit-frame-pointer -c main.cc -o main.o
g++ -march=i686 -O2 -pipe -fomit-frame-pointer -c print.cc -o print.o
g++ -march=i686 -O2 -pipe -fomit-frame-pointer -c mem.cc -o mem.o
g++ -march=i686 -O2 -pipe -fomit-frame-pointer -c dmi.cc -o dmi.o
g++ -march=i686 -O2 -pipe -fomit-frame-pointer -c device-tree.cc -o device-tree.o
g++ -march=i686 -O2 -pipe -fomit-frame-pointer -c cpuinfo.cc -o cpuinfo.o
g++ -march=i686 -O2 -pipe -fomit-frame-pointer -c osutils.cc -o osutils.o
g++ -march=i686 -O2 -pipe -fomit-frame-pointer -c pci.cc -o pci.o
g++ -march=i686 -O2 -pipe -fomit-frame-pointer -c version.cc -o version.o
g++ -march=i686 -O2 -pipe -fomit-frame-pointer -c cpuid.cc -o cpuid.o
cpuid.cc: In function `void cpuid(int, long unsigned int, long unsigned int&, 
   long unsigned int&, long unsigned int&, long unsigned int&)':
cpuid.cc:99: error: can't find a register in class `BREG' while reloading `asm'
make: *** [cpuid.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: sys-apps/lshw-01.07a failed.
!!! Function src_compile, Line 34, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
...END...
TIA. Rumen


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Gentoo Base System version 1.5.3
Portage 2.0.51_pre20 (!/usr/portage/profiles/default-x86-2004.0, gcc-3.3.4,
glibc-2.3.4.20040808-r0, 2.6.7-hardened-r7 i686 AMD Athlon(tm) XP 2200+)
=================================================================
System uname: 2.6.7-hardened-r7 i686 AMD Athlon(tm) XP 2200+
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux26-headers-2.6.7-r4
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/var/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.itdnet.net/gentoo
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://ftp.easynet.nl/mirror/gentoo/ http://gentoo.oregonstate.edu
http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/var/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://gentoo.internet-bg.net/gentoo-portage"
USE="3dnow X X509 aalib acl acpi apache2 avi berkdb bonobo caps cdr chroot
clamav crypt cups curl dedicated directfb dvd dvdr encode esd evo ffmpeg flac
foomaticdb freetype gd gdbm gif gnome gpm gtk gtk2 gtkhtml guile hardened
hardenedphp imap imlib ipv6 java javascript jpeg kde ldap libg++ libwww mad
maildir matroska mikmod mmx motif mozilla mpeg mpeg4 mysql ncurses nls nvidia
oggvorbis opengl oss pam pdflib perl png ppds prelude python qt quicktime
readline samba sdl skey slang spell sse ssl svg svga tcltk tcpd tetex theora
transcode truetype unicode usb x86 xml xml2 xmms xv xvid zlib linguas_bg linguas_en"
Comment 1 Rumen Yotov 2004-09-05 11:35:07 UTC
Hi All,
Solved the problem by puting '-fno-pie' in CFLAGS, have something to do with inline asm (saw this on simiral BUG).
My problem was due to use of a hardened system.
Rumen

Comment 2 Rumen Yotov 2004-09-06 07:47:36 UTC
HI,
Same problem with hardened-GCC apears also in lshw-01.08a.
Same solution.
Rumen
Comment 3 Christian Hartmann (RETIRED) gentoo-dev 2005-01-02 23:42:44 UTC
Problem still exists on hardened.

Patch (lshw-01.08a.ebuild):
33a34,35
>       # fix bug #61947
>       append-flags -fno-pie
Comment 4 Rumen Yotov 2005-01-03 09:02:05 UTC
Hi,
Same problem with lshw-02.00b and same resolution.
But also had to switch gcc-config to 'hardenednopie' or 'vanilla' in order the package to compile properly.
Could we mark this bug - FIXED?
Rumen
Comment 5 SpanKY gentoo-dev 2005-01-03 13:20:06 UTC
filter-flags is a hack and is just ignoring the actual problem

added patch to 02.00b to fix the source code properly
Comment 6 solar (RETIRED) gentoo-dev 2005-02-03 05:40:28 UTC
Just removed unneeded filter-flags -fPIC from lshw now that the cpuid patch exists. Tested with 2.00b and 2.02b

The lshw-01.08a.ebuild was not correctly getting CC set and =sys-apps/lshw-02.00b is the one marked stable for all arches so lshw-01.08a was removed.
Comment 7 Rumen Yotov 2005-02-04 10:15:40 UTC
Hi,
Seems this bug can be closed now.
Thanks
Rumen