Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 281891 - sys-apps/hwinfo fails to compile
Summary: sys-apps/hwinfo fails to compile
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-18 11:06 UTC by Eduardo Moscoso Rubino
Modified: 2009-11-09 20:24 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 Eduardo Moscoso Rubino 2009-08-18 11:06:40 UTC
sys/apps fails to compile with the following errors:
gcc -c -O2 -Wall -pipe -g -fPIC -march=core2 -O2 -fomit-frame-pointer -pipe -I../../src/hd -fno-strict-aliasing i10_v86.c
i10_v86.c: In function 'setup_vm86':
i10_v86.c:104: error: 'VIF_MASK' undeclared (first use in this function)
i10_v86.c:104: error: (Each undeclared identifier is reported only once
i10_v86.c:104: error: for each function it appears in.)
i10_v86.c:104: error: 'VIP_MASK' undeclared (first use in this function)
i10_v86.c: In function 'run_bios_int':
i10_v86.c:474: error: 'VIF_MASK' undeclared (first use in this function)
i10_v86.c:475: error: 'IF_MASK' undeclared (first use in this function)
i10_v86.c:486: error: 'TF_MASK' undeclared (first use in this function)
i10_v86.c:486: error: 'NT_MASK' undeclared (first use in this function)
make[2]: *** [i10_v86.o] Error 1


Reproducible: Always

Steps to Reproduce:
1.emerge sys-apps/hwinfo
2.
3.
Comment 1 Rafał Mużyło 2009-08-18 12:24:04 UTC
Just how old is the hwinfo version you're trying
to emerge, cause it looks like a similar problem 
to bug 235789, which comes from the changes in 2.6.26 kernel ?
Comment 2 Patrick Lauer gentoo-dev 2009-08-18 13:07:31 UTC
Also please state at least the package version and add emerge --info output, otherwise it's impossible to help
Comment 3 Thomas Fischer 2009-11-09 20:07:11 UTC
Hello, I got the same or at least a similar problem (see below). I will look into emerging a newer hwinfo (current stable version is 13.28)...

gcc -c -O2 -Wall -pipe -g -fPIC -O2 -march=prescott -pipe -I../src/hd -D__DRIVER__ -DFORCE_POST -D_CEXPORT= -DNO_LONG_LONG -I. -Ix86emu -Iinclude prim_ops.c                                                                                              
gcc -c -O2 -Wall -pipe -g -fPIC -O2 -march=prescott -pipe -I../src/hd -D__DRIVER__ -DFORCE_POST -D_CEXPORT= -DNO_LONG_LONG -I. -Ix86emu -Iinclude sys.c                                                                                                   
a - x86emu_debug.o                                                                                                           
a - x86emu_decode.o                                                                                                          
a - x86emu_fpu.o                                                                                                             
a - x86emu_ops.o                                                                                                             
a - x86emu_ops2.o                                                                                                            
a - x86emu_prim_ops.o                                                                                                        
a - x86emu_sys.o                                                                                                             
make[2]: Leaving directory `/var/tmp/portage/sys-apps/hwinfo-13.28/work/hwinfo-13.28/src/x86emu'                             
make[2]: Entering directory `/var/tmp/portage/sys-apps/hwinfo-13.28/work/hwinfo-13.28/src/int10'                             
make[2]: Leaving directory `/var/tmp/portage/sys-apps/hwinfo-13.28/work/hwinfo-13.28/src/int10'                              
make[2]: Entering directory `/var/tmp/portage/sys-apps/hwinfo-13.28/work/hwinfo-13.28/src/int10'                             
gcc -c -O2 -Wall -pipe -g -fPIC -O2 -march=prescott -pipe -I../../src/hd emu_vm86.c                                          
gcc -c -O2 -Wall -pipe -g -fPIC -O2 -march=prescott -pipe -I../../src/hd i10_int.c                                           
gcc -c -O2 -Wall -pipe -g -fPIC -O2 -march=prescott -pipe -I../../src/hd i10_io.c                                            
gcc -c -O2 -Wall -pipe -g -fPIC -O2 -march=prescott -pipe -I../../src/hd i10_pci.c                                           
gcc -c -O2 -Wall -pipe -g -fPIC -O2 -march=prescott -pipe -I../../src/hd -fno-strict-aliasing i10_v86.c                      
i10_v86.c: In function ‘setup_vm86’:                                                                                         
i10_v86.c:104: error: ‘VIF_MASK’ undeclared (first use in this function)                                                     
i10_v86.c:104: error: (Each undeclared identifier is reported only once                                                      
i10_v86.c:104: error: for each function it appears in.)                                                                      
i10_v86.c:104: error: ‘VIP_MASK’ undeclared (first use in this function)                                                     
i10_v86.c: In function ‘run_bios_int’:                                                                                       
i10_v86.c:474: error: ‘VIF_MASK’ undeclared (first use in this function)                                                     
i10_v86.c:475: error: ‘IF_MASK’ undeclared (first use in this function)                                                      
i10_v86.c:486: error: ‘TF_MASK’ undeclared (first use in this function)                                                      
i10_v86.c:486: error: ‘NT_MASK’ undeclared (first use in this function)                                                      
make[2]: *** [i10_v86.o] Error 1                                                                                             
make[2]: Leaving directory `/var/tmp/portage/sys-apps/hwinfo-13.28/work/hwinfo-13.28/src/int10'                              
make[1]: *** [subdirs] Error 2                                                                                               
make[1]: Leaving directory `/var/tmp/portage/sys-apps/hwinfo-13.28/work/hwinfo-13.28/src'                                    
make: *** [subdirs] Error 2                                                                                                  
 * ERROR: sys-apps/hwinfo-13.28 failed:                                                                                      
 *   emake failed                                                                                                            
 *                                                                                                                           
 * Call stack:                                                                                                               
 *     ebuild.sh, line  49:  Called src_compile                                                                              
 *   environment, line 2265:  Called die                                                                                     
 * The specific snippet of code:                                                                                             
 *       emake -j1 EXTRA_FLAGS="${CFLAGS}" || die "emake failed"                                                             
 *
 * If you need support, post the output of 'emerge --info =sys-apps/hwinfo-13.28',
 * the complete build log and the output of 'emerge -pqv =sys-apps/hwinfo-13.28'.
 * The complete build log is located at '/var/tmp/portage/sys-apps/hwinfo-13.28/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/hwinfo-13.28/temp/environment'.
 * S: '/var/tmp/portage/sys-apps/hwinfo-13.28/work/hwinfo-13.28'

>>> Failed to emerge sys-apps/hwinfo-13.28, Log file:

>>>  '/var/tmp/portage/sys-apps/hwinfo-13.28/temp/build.log'

 * Messages for package sys-apps/hwinfo-13.28:

 * ERROR: sys-apps/hwinfo-13.28 failed:
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line  49:  Called src_compile
 *   environment, line 2265:  Called die
 * The specific snippet of code:
 *       emake -j1 EXTRA_FLAGS="${CFLAGS}" || die "emake failed"
 *
 * If you need support, post the output of 'emerge --info =sys-apps/hwinfo-13.28',
 * the complete build log and the output of 'emerge -pqv =sys-apps/hwinfo-13.28'.
 * The complete build log is located at '/var/tmp/portage/sys-apps/hwinfo-13.28/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/hwinfo-13.28/temp/environment'.
 * S: '/var/tmp/portage/sys-apps/hwinfo-13.28/work/hwinfo-13.28'


Portage 2.2_rc46 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r8-tf i686)
=================================================================                                     
System uname: Linux-2.6.30-gentoo-r8-tf-i686-Intel-R-_Core-TM-2_Duo_CPU_T5750_@_2.00GHz-with-gentoo-1.12.11.1
Timestamp of tree: Sat, 31 Oct 2009 11:15:01 +0000                                                           
distcc 3.1 i686-pc-linux-gnu [disabled]                                                                      
ccache version 2.4 [enabled]                                                                                 
app-shells/bash:     4.0_p28                                                                                 
dev-java/java-config: 2.1.9-r1                                                                               
dev-lang/python:     2.5.4-r3, 2.6.2-r1                                                                      
dev-python/pycrypto: 2.0.1-r8                                                                                
dev-util/ccache:     2.4-r7                                                                                  
dev-util/cmake:      2.6.4                                                                                   
sys-apps/baselayout: 1.12.11.1                                                                               
sys-apps/sandbox:    1.6-r2                                                                                  
sys-devel/autoconf:  2.13, 2.63-r1                                                                           
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                                    
sys-devel/binutils:  2.18-r3                                                                                 
sys-devel/gcc-config: 1.4.1                                                                                  
sys-devel/libtool:   2.2.6a                                                                                  
virtual/os-headers:  2.6.27-r2                                                                               
ACCEPT_KEYWORDS="x86"                                                                                        
CBUILD="i686-pc-linux-gnu"                                                                                   
CFLAGS="-O2 -march=prescott -pipe"                                                                           
CHOST="i686-pc-linux-gnu"                                                                                    
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"     
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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 /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.ds.karen.hj.se/gentoo/                 ftp://ftp.ing.umu.se/linux/gentoo/                 ftp://ftp.df.lth.se/pub/gentoo/                 ftp://mirror.mdfnet.se/gentoo                 http://ftp.ds.karen.hj.se/gentoo/                 http://ftp.ing.umu.se/linux/gentoo/                 http://ftp.df.lth.se/pub/gentoo/                 http://mirror.mdfnet.se/mirror/gentoo/                 ftp://ftp.klid.dk/gentoo/                 http://ftp.klid.dk/ftp/gentoo/                 ftp://trumpetti.atm.tut.fi/gentoo/                 http://trumpetti.atm.tut.fi/gentoo/ "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.se.gentoo.org/gentoo-portage"
USE="7zip X aac aalib acl acpi alsa aspell audiofile bash-completion berkdb bzip2 cdaudio cdparanoia cleartype cli cmake cracklib crypt cups curl dbus djvu dri dvd dvdread ebook encode exif fame ffmpeg fftw fontconfig fortran ftp gdbm gif gimp gnutls gpgme gpm hal ical iconv icu id3tag idea idn ilbc imagemagick imap ipv6 isdnlog jabber jbig jingle jpeg jpeg2k kde kpathsea lame laptop latex lcms libcaca logrotate lua lzma lzo mbox md5sum mjpeg mmx mng modules mp3 mp4 mpeg mudflap ncurses network nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl phonon plasma png ppds pppd python qmake qt3 qt4 quicktime rdesktop readline reflection rss rtc samba sasl sdl session slang slp smime smtp sndfile speex spell spl sse sse2 ssl ssse3 subversion svg sysfs tcpd tga theora threads tiff truetype unicode usb utils v4l v4l2 vim-syntax vorbis webdav win32codecs x264 x86 xcomposite xinerama xml xorg xpm xvid zlib zrtp" ALSA_CARDS="snd_hda_intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Comment 4 Thomas Fischer 2009-11-09 20:16:50 UTC
I tested the current stable version (sys-apps/hwinfo-14.19) as well. Same problem:

gcc -c -O2 -Wall -pipe -g -fPIC -O2 -march=prescott -pipe -I../src/hd -D__DRIVER__ -DFORCE_POST -D_CEXPORT= -DNO_LONG_LONG -I. -Ix86emu -Iinclude ops2.c                                                                                                  
gcc -c -O2 -Wall -pipe -g -fPIC -O2 -march=prescott -pipe -I../src/hd -D__DRIVER__ -DFORCE_POST -D_CEXPORT= -DNO_LONG_LONG -I. -Ix86emu -Iinclude prim_ops.c                                                                                              
gcc -c -O2 -Wall -pipe -g -fPIC -O2 -march=prescott -pipe -I../src/hd -D__DRIVER__ -DFORCE_POST -D_CEXPORT= -DNO_LONG_LONG -I. -Ix86emu -Iinclude sys.c                                                                                                   
a - x86emu_debug.o                                                                                                           
a - x86emu_decode.o                                                                                                          
a - x86emu_fpu.o                                                                                                             
a - x86emu_ops.o                                                                                                             
a - x86emu_ops2.o                                                                                                            
a - x86emu_prim_ops.o                                                                                                        
a - x86emu_sys.o                                                                                                             
make[2]: Leaving directory `/var/tmp/portage/sys-apps/hwinfo-14.19/work/hwinfo-14.19/src/x86emu'                             
make[2]: Entering directory `/var/tmp/portage/sys-apps/hwinfo-14.19/work/hwinfo-14.19/src/int10'                             
make[2]: Leaving directory `/var/tmp/portage/sys-apps/hwinfo-14.19/work/hwinfo-14.19/src/int10'                              
make[2]: Entering directory `/var/tmp/portage/sys-apps/hwinfo-14.19/work/hwinfo-14.19/src/int10'                             
gcc -c -O2 -Wall -pipe -g -fPIC -O2 -march=prescott -pipe -I../../src/hd emu_vm86.c                                          
gcc -c -O2 -Wall -pipe -g -fPIC -O2 -march=prescott -pipe -I../../src/hd i10_int.c                                           
gcc -c -O2 -Wall -pipe -g -fPIC -O2 -march=prescott -pipe -I../../src/hd i10_io.c                                            
gcc -c -O2 -Wall -pipe -g -fPIC -O2 -march=prescott -pipe -I../../src/hd i10_pci.c                                           
gcc -c -O2 -Wall -pipe -g -fPIC -O2 -march=prescott -pipe -I../../src/hd -fno-strict-aliasing i10_v86.c                      
i10_v86.c: In function ‘setup_vm86’:                                                                                         
i10_v86.c:104: error: ‘VIF_MASK’ undeclared (first use in this function)                                                     
i10_v86.c:104: error: (Each undeclared identifier is reported only once                                                      
i10_v86.c:104: error: for each function it appears in.)                                                                      
i10_v86.c:104: error: ‘VIP_MASK’ undeclared (first use in this function)                                                     
i10_v86.c: In function ‘run_bios_int’:                                                                                       
i10_v86.c:474: error: ‘VIF_MASK’ undeclared (first use in this function)                                                     
i10_v86.c:475: error: ‘IF_MASK’ undeclared (first use in this function)                                                      
i10_v86.c:486: error: ‘TF_MASK’ undeclared (first use in this function)                                                      
i10_v86.c:486: error: ‘NT_MASK’ undeclared (first use in this function)                                                      
make[2]: *** [i10_v86.o] Error 1                                                                                             
make[2]: Leaving directory `/var/tmp/portage/sys-apps/hwinfo-14.19/work/hwinfo-14.19/src/int10'                              
make[1]: *** [subdirs] Error 2                                                                                               
make[1]: Leaving directory `/var/tmp/portage/sys-apps/hwinfo-14.19/work/hwinfo-14.19/src'                                    
make: *** [subdirs] Error 2                                                                                                  
 * ERROR: sys-apps/hwinfo-14.19 failed:                                                                                      
 *   emake failed                                                                                                            
 *                                                                                                                           
 * Call stack:                                                                                                               
 *     ebuild.sh, line  49:  Called src_compile                                                                              
 *   environment, line 2265:  Called die                                                                                     
 * The specific snippet of code:                                                                                             
 *       emake -j1 EXTRA_FLAGS="${CFLAGS}" || die "emake failed"                                                             
 *                                                                                                                           
 * If you need support, post the output of 'emerge --info =sys-apps/hwinfo-14.19',                                           
 * the complete build log and the output of 'emerge -pqv =sys-apps/hwinfo-14.19'.                                            
 * The complete build log is located at '/var/tmp/portage/sys-apps/hwinfo-14.19/temp/build.log'.                             
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/hwinfo-14.19/temp/environment'.                      
 * S: '/var/tmp/portage/sys-apps/hwinfo-14.19/work/hwinfo-14.19'                                                             

>>> Failed to emerge sys-apps/hwinfo-14.19, Log file:

>>>  '/var/tmp/portage/sys-apps/hwinfo-14.19/temp/build.log'

 * Messages for package sys-apps/hwinfo-14.19:

 * ERROR: sys-apps/hwinfo-14.19 failed:
 *   emake failed                      
 *                                     
 * Call stack:                         
 *     ebuild.sh, line  49:  Called src_compile
 *   environment, line 2265:  Called die       
 * The specific snippet of code:               
 *       emake -j1 EXTRA_FLAGS="${CFLAGS}" || die "emake failed"
 *                                                              
 * If you need support, post the output of 'emerge --info =sys-apps/hwinfo-14.19',
 * the complete build log and the output of 'emerge -pqv =sys-apps/hwinfo-14.19'. 
 * The complete build log is located at '/var/tmp/portage/sys-apps/hwinfo-14.19/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/hwinfo-14.19/temp/environment'.
 * S: '/var/tmp/portage/sys-apps/hwinfo-14.19/work/hwinfo-14.19'  
Comment 5 Thomas Fischer 2009-11-09 20:24:58 UTC
I used the ebuild for version 16.0 (attachment 204979 [details]) from bug 236449, which successfully compiles (and runs) for me.
I suggest to close this bug as a duplicate of bug 236449.