Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 197057
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Toolchain Maintainers <toolchain@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Stolz <stolz@ya.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 197057 depends on: Show dependency tree
Bug 197057 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-10-25 17:03 0000
When I try to compile lcd4linux-0.10.1_rc2-r1 in my new Core2Duo Laptop it
fails. In my old AMD64 it compiles fine, so I'm not sure if it is a gentoo
related problem

Portage output:
[...configure stuff omitted...]
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.    -D_GNU_SOURCE -Wall
-W -fno-strict-aliasing -march=nocona -O2 -pipe -msse3 -MT udelay.o -MD -MP -MF
".deps/udelay.Tpo" -c -o udelay.o udelay.c; \
        then mv -f ".deps/udelay.Tpo" ".deps/udelay.Po"; else rm -f
".deps/udelay.Tpo"; exit 1; fi
In file included from /usr/include/asm/msr.h:5,
                 from udelay.c:60:
/usr/include/asm-x86_64/msr.h:169: error: expected declaration specifiers or
'...' before '__u32'
/usr/include/asm-x86_64/msr.h:169: error: expected declaration specifiers or
'...' before '__u32'
/usr/include/asm-x86_64/msr.h:169: error: expected declaration specifiers or
'...' before '__u32'
/usr/include/asm-x86_64/msr.h: In function 'rdmsr_on_cpu':
/usr/include/asm-x86_64/msr.h:171: error: 'l' undeclared (first use in this
function)
/usr/include/asm-x86_64/msr.h:171: error: (Each undeclared identifier is
reported only once
/usr/include/asm-x86_64/msr.h:171: error: for each function it appears in.)
/usr/include/asm-x86_64/msr.h:171: error: 'h' undeclared (first use in this
function)
/usr/include/asm-x86_64/msr.h:171: error: 'msr_no' undeclared (first use in
this function)
/usr/include/asm-x86_64/msr.h:171: error: invalid lvalue in asm output 0
/usr/include/asm-x86_64/msr.h:171: error: invalid lvalue in asm output 1
/usr/include/asm-x86_64/msr.h: At top level:
/usr/include/asm-x86_64/msr.h:173: error: expected declaration specifiers or
'...' before '__u32'
/usr/include/asm-x86_64/msr.h:173: error: expected declaration specifiers or
'...' before '__u32'
/usr/include/asm-x86_64/msr.h:173: error: expected declaration specifiers or
'...' before '__u32'
/usr/include/asm-x86_64/msr.h: In function 'wrmsr_on_cpu':
/usr/include/asm-x86_64/msr.h:175: error: 'msr_no' undeclared (first use in
this function)
/usr/include/asm-x86_64/msr.h:175: error: 'l' undeclared (first use in this
function)
/usr/include/asm-x86_64/msr.h:175: error: 'h' undeclared (first use in this
function)
/usr/include/asm-x86_64/msr.h: At top level:
/usr/include/asm-x86_64/msr.h:177: error: expected declaration specifiers or
'...' before '__u32'
/usr/include/asm-x86_64/msr.h:177: error: expected declaration specifiers or
'...' before '__u32'
/usr/include/asm-x86_64/msr.h:177: error: expected declaration specifiers or
'...' before '__u32'
/usr/include/asm-x86_64/msr.h: In function 'rdmsr_safe_on_cpu':
/usr/include/asm-x86_64/msr.h:179: error: 'l' undeclared (first use in this
function)
/usr/include/asm-x86_64/msr.h:179: error: 'h' undeclared (first use in this
function)
/usr/include/asm-x86_64/msr.h:179: error: 'msr_no' undeclared (first use in
this function)
/usr/include/asm-x86_64/msr.h:179: error: invalid lvalue in asm output 1
/usr/include/asm-x86_64/msr.h:179: error: invalid lvalue in asm output 2
/usr/include/asm-x86_64/msr.h: At top level:
/usr/include/asm-x86_64/msr.h:181: error: expected declaration specifiers or
'...' before '__u32'
/usr/include/asm-x86_64/msr.h:181: error: expected declaration specifiers or
'...' before '__u32'
/usr/include/asm-x86_64/msr.h:181: error: expected declaration specifiers or
'...' before '__u32'
/usr/include/asm-x86_64/msr.h: In function 'wrmsr_safe_on_cpu':
/usr/include/asm-x86_64/msr.h:183: error: 'msr_no' undeclared (first use in
this function)if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.   
-D_GNU_SOURCE -Wall -W -fno-strict-aliasing -march=nocona -O2 -pipe -msse3 -MT
qprintf.o -MD -MP -MF ".deps/qprintf.Tpo" -c -o qprintf.o qprintf.c; \
        then mv -f ".deps/qprintf.Tpo" ".deps/qprintf.Po"; else rm -f
".deps/qprintf.Tpo"; exit 1; fi

/usr/include/asm-x86_64/msr.h:183: error: 'l' undeclared (first use in this
function)
/usr/include/asm-x86_64/msr.h:183: error: 'h' undeclared (first use in this
function)
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.    -D_GNU_SOURCE -Wall
-W -fno-strict-aliasing -march=nocona -O2 -pipe -msse3 -MT rgb.o -MD -MP -MF
".deps/rgb.Tpo" -c -o rgb.o rgb.c; \
        then mv -f ".deps/rgb.Tpo" ".deps/rgb.Po"; else rm -f ".deps/rgb.Tpo";
exit 1; fi
make[1]: *** [udelay.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory
`/var/tmp/portage/app-misc/lcd4linux-0.10.1_rc2-r1/work/lcd4linux-0.10.1-RC2'
make: *** [all] Error 2
 *
 * ERROR: app-misc/lcd4linux-0.10.1_rc2-r1 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   lcd4linux-0.10.1_rc2-r1.ebuild, line 151:   Called die
 *
 * make failed
 * If you need support, post the topmost build error, and the call stack if
relevant.
 * A complete build log is located at
'/var/tmp/portage/app-misc/lcd4linux-0.10.1_rc2-r1/temp/build.log'.
 *

 * Messages for package app-misc/lcd4linux-0.10.1_rc2-r1:

 * If you wish to compile only specific plugins, please use
 * the LCD4LINUX_PLUGINS environment variable. Plugins must be comma separated
and can be either of:
 * apm cpuinfo diskstats dvb exec file ic_sensors imon isdn kvv loadavg meminfo
netdev pop3 ppp proc_stat seti statfs uname uptime wireless
 * Active plugins: all,!xmms,!iconv,!mpd,!python
 *
 * ERROR: app-misc/lcd4linux-0.10.1_rc2-r1 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   lcd4linux-0.10.1_rc2-r1.ebuild, line 151:   Called die


Reproducible: Always

Steps to Reproduce:
# USE="-iconv -python mysql" emerge app-misc/lcd4linux

Actual Results:  
compilation fails

Expected Results:  
program should be compiled

Portage 2.1.3.9 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0,
2.6.22-suspend2-r2-stolz x86_64)
=================================================================
System uname: 2.6.22-suspend2-r2-stolz x86_64 Intel(R) Core(TM)2 Duo CPU T7500
@ 2.20GHz
Timestamp of tree: Wed, 24 Oct 2007 23:00:01 +0000
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf
/etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict
unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="es_ES@euro"
LC_ALL="es_ES@euro"
LINGUAS="es"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa amd64 amr bash-completion battery berkdb bitmap-fonts
bluetooth bzip2 cli cracklib crypt cups dvd dvdnav dvdr encode gdbm geoip gif
gpm iconv isdnlog jpeg kde kdeenablefinal logitech-mouse mad midi minimal mmx
mng mp3 mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre
perl png pppd python qt qt3 quicktime readline reflection samba session spell
spl sse sse2 ssl svg tcpd theora threads truetype truetype-fonts type1-fonts
unicode v4l vorbis xcomposite xinerama xorg xv xvid xvmc zlib"
ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare
dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw
multi null plug rate route share shm softvol" ELIBC="glibc"
FOO2ZJS_DEVICES="hp1018" INPUT_DEVICES="keyboard mouse evdev synaptics"
KERNEL="linux" LCD_DEVICES="mtxorb" LINGUAS="es" USERLAND="GNU"
VIDEO_CARDS="nvidia vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS,
PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #1 From SpanKY 2007-10-26 09:07:09 0000 -------
it isnt a Gentoo specific problem ... LKML hasnt gotten around to fixing up
msr.h properly just yet

------- Comment #2 From Robert Buchholz 2007-10-26 09:47:27 0000 -------
Fixed in app-misc/lcd4linux-0.10.1_rc2-r2 not to use asm/msr.h, which is the
cleaner solution on the program-side.

I asked for a pre-30-day stabling in bug #197115. Toolchain, feel free to close
if you don't need this bug to track any changes to linux-headers.

------- Comment #3 From SpanKY 2007-10-27 20:14:25 0000 -------
i'll fixup msr.h ... all it needs is a types include

i think upstream is discussing simply removing it from export anyways ...

------- Comment #4 From SpanKY 2007-12-31 05:56:08 0000 -------
fixed in linux-headers-2.6.23-r3

http://sources.gentoo.org/gentoo/src/patchsets/gentoo-headers/2.6.23/09_all_include-other-linux-headers.patch?r1=1.2&r2=1.3

------- Comment #5 From Robert Buchholz 2009-08-17 16:04:43 0000 -------
*** Bug 243114 has been marked as a duplicate of this bug. ***

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug