Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 243114

Summary: app-misc/lcd4linux-0.10.0-r1 failed
Product: Gentoo Linux Reporter: Conrad Kostecki <conikost>
Component: New packagesAssignee: Robert Buchholz (RETIRED) <rbu>
Status: RESOLVED DUPLICATE    
Severity: normal CC: lcd
Priority: High    
Version: 2008.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: lcd4linux-0.10.0-nordtsc.patch
lcd4linux_0.10.1~rc2-2.diff

Description Conrad Kostecki gentoo-dev 2008-10-21 20:32:02 UTC
Hi!
I am not able to compile app-misc/lcd4linux-0.10.0-r1. It failed with:

LANG=C LDFLAGS="" CFLAGS="-march=geode -O2 -pipe" emerge lcd4linux

i586-pc-linux-gnu-gcc -D_GNU_SOURCE -Wall -W -march=geode -O2 -pipe  -o lcd4linux  lcd4linux.o cfg.o debug.o drv.o evaluator.o hash.o layout.o pid.o timer.o thread.o udelay.o qprintf.o widget.o widget_text.o widget_bar.o widget_icon.o plugin.o plugin_cfg.o plugin_math.o plugin_string.o plugin_test.o plugin_time.o drv_HD44780.o drv_generic_text.o drv_generic_parport.o drv_generic_i2c.o  plugin_cpuinfo.o plugin_diskstats.o plugin_exec.o plugin_i2c_sensors.o plugin_loadavg.o plugin_meminfo.o plugin_netdev.o plugin_ppp.o plugin_proc_stat.o plugin_statfs.o plugin_uname.o plugin_uptime.o plugin_wireless.o   -lm
udelay.o: In function `ndelay':
udelay.c:(.text+0x32): undefined reference to `rdtscl'
udelay.c:(.text+0x41): undefined reference to `rdtscl'
collect2: ld returned 1 as End-Status
make: *** [lcd4linux] Error 1
Comment 1 Conrad Kostecki gentoo-dev 2008-10-21 20:33:08 UTC
Portage 2.1.5.6 (default/linux/x86/2008.0/server, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo i586)
=================================================================
System uname: 2.6.27-gentoo i586 Geode(TM) Integrated Processor by AMD PCS
Timestamp of tree: Sun, 19 Oct 2008 17:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-util/ccache:     2.4-r8
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.63
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-march=geode -Os -mmmx -m3dnow -fno-align-jumps -fno-align-functions -fno-align-labels -fno-align-loops -pipe -fomit-frame-pointer -mfpmath=387"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openfire/resources/security/ /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=geode -Os -mmmx -m3dnow -fno-align-jumps -fno-align-functions -fno-align-labels -fno-align-loops -pipe -fomit-frame-pointer -mfpmath=387 -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="ccache distlocks fixpackages parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://de-mirror.org/distro/gentoo/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,-s -Wl,-z,now"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="gzip"
PORTAGE_COMPRESS_FLAGS="-f9"
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"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow alsa apache2 berkdb bzip2 cgi crypt ctype ftp gd iconv imap javascript jpeg jpeg2k lua mmx mysql mysqli ncurses nls offensive pam pcre png readline samba sasl session simplexml slang spl ssl svg symlink tcpd threads tiff tokenizer truetype unicode vhosts x86 xml zlib" ALSA_CARDS="cs5535audio" 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="alias auth_basic authn_file authz_host authz_user autoindex cache cgi deflate dir disk_cache filter info log_config logio mime mime_magic mem_cache rewrite status unique_id vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="hd44780" LINGUAS="de" LIRC_DEVICES="serial" USERLAND="GNU" VIDEO_CARDS="amd"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Mike Auty (RETIRED) gentoo-dev 2008-10-21 23:18:39 UTC
It appears this has been reported elsewhere (including upstream), although the debian bug seems to have the most detail...

https://ssl.bulix.org/projects/lcd4linux/ticket/110
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=436332

I haven't read them completely, but it appears it might be a linux-headers issue:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440144

Hope that's of some help...
Comment 3 Conrad Kostecki gentoo-dev 2008-10-22 06:57:14 UTC
Well, i am not a developer, but for my unterstand, its an issue with linux-headers, as Mike said. Is seems, that `rdtscl' was removed. This was a timing thing for the lcds. Now there is used a never one.

Debian has a patch in their patchset for 0.10.1-RC2. Maybe this can be backported?
Comment 4 Conrad Kostecki gentoo-dev 2008-10-22 09:25:17 UTC
Created attachment 169382 [details, diff]
lcd4linux-0.10.0-nordtsc.patch

backported vom debian patch.
but is seems not to work. (but fixes my reported bug)
any ideas?

getting strange error (r2 is my local overlay):

running /bin/sh ./configure  --prefix=/usr --host=i586-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --sysconfdir=/etc/lcd4linux --with-drivers=HD44780 --with-plugins=cpuinfo diskstats exec i2c_sensors loadavg meminfo netdev ppp proc_stat statfs uname uptime wireless,!mysql,!python --without-python --without-x --build=i586-pc-linux-gnu CFLAGS=-march=geode -O2 -pipe LDFLAGS= build_alias=i586-pc-linux-gnu host_alias=i586-pc-linux-gnu  --no-create --no-recursion
configure: WARNING: unrecognized options: --with-drivers, --with-plugins

[...]

configure: creating ./config.status
configure: WARNING: unrecognized options: --with-drivers, --with-plugins
cd . \
          && CONFIG_FILES=Makefile CONFIG_HEADERS= /bin/sh ./config.status
config.status: creating Makefile
config.status: WARNING:  'Makefile.in' seems to ignore the --datarootdir setting
config.status: executing default-1 commands

[...]

i586-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.    -D_GNU_SOURCE -Wall -W -march=geode -O2 -pipe -c plugin_time.c
make: *** Keine Regel vorhanden, um das Target »@DRIVERS@«,
  benötigt von »lcd4linux«, zu erstellen.  End.

[...]

make: *** No rule to make target `@DRIVERS@', needed by `lcd4linux'.  Stop.
make: *** Waiting for unfinished jobs....
 *
 * ERROR: app-misc/lcd4linux-0.10.0-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2107:  Called die
 * The specific snippet of code:
 *       emake || die "make failed"
 *  The die message:
 *   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.0-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-misc/lcd4linux-0.10.0-r2/temp/environment'.
 * This ebuild is from an overlay: '/usr/local/portage/'
 *
Comment 5 Conrad Kostecki gentoo-dev 2008-10-22 09:33:25 UTC
Created attachment 169384 [details, diff]
lcd4linux_0.10.1~rc2-2.diff

Original Debian Patch
Comment 6 Robert Buchholz (RETIRED) gentoo-dev 2009-08-17 16:04:43 UTC
lcd4linux-0.10.1_rc2-r2 has been stable at the time of this bug report and it contains the fix.

*** This bug has been marked as a duplicate of bug 197057 ***