Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 259865 - sys-devel/gdb-6.8-r1 fails to compile with sys-libs/readline-6.0
Summary: sys-devel/gdb-6.8-r1 fails to compile with sys-libs/readline-6.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 259932 259953 260129 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-21 23:45 UTC by michel
Modified: 2009-02-24 14:02 UTC (History)
28 users (show)

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


Attachments
Ebuild patch to remove dependency on system readline for gdb (gdb-6.8-r1.ebuild.patch,35 bytes, patch)
2009-02-22 15:50 UTC, Heiko Wundram
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description michel 2009-02-21 23:45:38 UTC
curses -lm  /usr/lib/libexpat.so ../libiberty/libiberty.a  duel/duel.a -ldl -rdynamic
rm -f gdbtui
i686-pc-linux-gnu-gcc -march=core2 -O2 -msse4.1 -pipe -fomit-frame-pointer   -Wl,-O1   \
                -o gdbtui tui-main.o libgdb.a \
                   -lreadline ../opcodes/libopcodes.a ../bfd/libbfd.a  ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a     -lncurses -lm  /usr/lib/libexpat.so ../libiberty/libiberty.a  duel/duel.a -ldl -rdynamic
libgdb.a(tui-io.o): In function `tui_setup_io':
tui-io.c:(.text+0x2b3): undefined reference to `readline_echoing_p'
tui-io.c:(.text+0x345): undefined reference to `readline_echoing_p'
tui-io.c:(.text+0x34b): undefined reference to `readline_echoing_p'
collect2: ld returned 1 exit status
make[2]: *** [gdbtui] Error 1
make[2]: *** Waiting for unfinished jobs....
libgdb.a(tui-io.o): In function `tui_setup_io':
tui-io.c:(.text+0x2b3): undefined reference to `readline_echoing_p'
tui-io.c:(.text+0x345): undefined reference to `readline_echoing_p'
tui-io.c:(.text+0x34b): undefined reference to `readline_echoing_p'
collect2: ld returned 1 exit status
make[2]: *** [gdb] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gdb-6.8-r1/work/gdb-6.8/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gdb-6.8-r1/work/gdb-6.8'
make: *** [all] Error 2
 * 
 * ERROR: sys-devel/gdb-6.8-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2432:  Called die
 * The specific snippet of code:
 *       emake || die
 *  The die message:
 *   (no error message)
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/sys-devel:gdb-6.8-r1:20090221-233618.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gdb-6.8-r1/temp/environment'.
 * 

>>> Failed to emerge sys-devel/gdb-6.8-r1, Log file:

>>>  '/var/log/portage/sys-devel:gdb-6.8-r1:20090221-233618.log'

 * Messages for package sys-devel/gdb-6.8-r1:

 * Sorry, but gdb does not support the LINGUAs: en
 * 
 * ERROR: sys-devel/gdb-6.8-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2432:  Called die
 * The specific snippet of code:
 *       emake || die
 *  The die message:
 *   (no error message)
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/sys-devel:gdb-6.8-r1:20090221-233618.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gdb-6.8-r1/temp/environment'.
 * 


Reproducible: Always

Steps to Reproduce:
1. emerge gdb
2.
3.
Comment 1 michel 2009-02-21 23:47:42 UTC
tux michel # emerge --info
Portage 2.2_rc23 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r2 i686)
=================================================================
System uname: Linux-2.6.28-gentoo-r2-i686-Intel-R-_Core-TM-2_Duo_CPU_T9300_@_2.50GHz-with-glibc2.0
Timestamp of tree: Sat, 21 Feb 2009 22:35:01 +0000
app-shells/bash:     3.2_p48-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.3.8
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -msse4.1 -pipe -fomit-frame-pointer"
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/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -msse4.1 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="collision-protect distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alias alsa audacious autoreplace berkdb bluetooth branding bzip2 cairo cddb cdr cli cracklib crypt css cups curl dbus dga divx djvu dts dvd dvdr dvdread eds emboss encode evo exif fam fbcon fbcondecor ffmpeg firefox flac fortran ftp gdbm gif gpm gstreamer gtk hal history iconv isdnlog java jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility laptop libnotify lzo mad md5sum midi mikmod mmx mmxext mng motif mp3 mpeg mplayer mudflap ncurses nls nptl nptlonly nsplugin nvidia ogg openal opengl openmp pam pcre pdf perl png ppds pppd python qt-static qt3 qt3support quicktime rar readline reflection samba sdl session slang smp spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd theora threads tiff truetype unicode usb v4l v4l2 vcd vorbis wifi win32codecs wma wmf x264 x86 x86emu xanim xcomposite xml xorg xulrunner 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 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" ELIBC="glibc" FOO2ZJS_DEVICES="sa300" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Piotr 2009-02-22 00:57:33 UTC
I think that this is caused by new readline. I have the same problem when doing "emerge @preserved-rebuild" after emerging new readline.
Comment 3 Andriy Baranskyy 2009-02-22 03:42:10 UTC
Same here. The problem also occurred due to the new version of readline 6.0.

Here is my emerge --info:
Portage 2.2_rc23 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-tuxonice-r3 i686)
=================================================================                                      
System uname: Linux-2.6.28-tuxonice-r3-i686-Intel-R-_Core-TM-2_CPU_T5500_@_1.66GHz-with-glibc2.0       
Timestamp of tree: Sun, 22 Feb 2009 01:35:01 +0000                                                     
distcc 3.1 i686-pc-linux-gnu [disabled]                                                                
ccache version 2.4 [enabled]                                                                           
app-shells/bash:     3.2_p48-r1                                                                        
dev-java/java-config: 1.3.7-r1, 2.1.7                                                                  
dev-lang/python:     2.5.4-r2                                                                          
dev-util/ccache:     2.4-r8                                                                            
dev-util/cmake:      2.6.2-r1                                                                          
sys-apps/baselayout: 2.0.0                                                                             
sys-apps/openrc:     0.4.3-r1                                                                          
sys-apps/sandbox:    1.3.8                                                                             
sys-devel/autoconf:  2.13, 2.63                                                                        
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                  
sys-devel/binutils:  2.19.1                                                                            
sys-devel/gcc-config: 1.4.1                                                                            
sys-devel/libtool:   2.2.6a                                                                            
virtual/os-headers:  2.6.28-r1                                                                         
ACCEPT_KEYWORDS="x86"                                                                                  
CBUILD="i686-pc-linux-gnu"                                                                             
CFLAGS="-O2 -march=i686 -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/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/share/config /var/lib/hsqldb"                                                                                                                                 
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/sandbox.d /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en pl uk be de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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.gentoo.org/gentoo-portage"
USE="3dfx 3dnow 3dnowext 7zip X Xaw3d a52 aac aalib accessibility acl acpi adns alsa amarok amr amrnb amrr amrwb ao arts aspnet auto-completion autoipd automount avahi bash-completion bidi bluetooth branding bzip2 c++ cairo caps cdaudio cddb cdparanoia cisco cli cracklib crypt css cups curl cxx daap dbus dga directfb divx djvu docbook dot dri dts dv dvd dvdnav dvdr dvdread embedded emovix enca encode exif fam fax fbcon ffmpeg firefox flac font-server fontconfig fortran ftp gd gdbm geoip ggi gif glib glitz gmail gmedia gpg2-experimental gphoto2 gpm gps gsm gtk hal html htmlhandbook http hyperestraier iconv icq ide idn imagemagick inotify ipod ipv6 ipw3945 isdnlog java javascript jpeg jpeg2k justify kde kdeprefix kerberos ladspa lame laptop latex libcaca libsamplerate libwww live lm_sensors lzo mad marble matroska matrox mbrola md5sum mdnsresponder-compat midi mjpeg mmap mmx mmxext mng modplug monolithic-build moonlight motif mp2mp3 mp4 mp4live mpeg mpeg2 mplayer msn mtp mudflap musepack musicbrainz mysql nas ncurses neXt net netbeans netboot network network-cron networking nfs nis nls npp nptl nptlonly nsplugin ntp nvidia nvram nvtv obex odbc ogg openal openct openexr opengl openmp openssh openvpn oss overlays pch pcmcia pcre pcsc-litepda pdf perl pic plasma player plotutils plugins pmu png pppd pulseaudio python qt3 qt3support qt4 quicktime radio rar raw readline realmedia reflection reiser4 reiserfs rss rtc rtf samba sasl scanner sdl session skey slang slp smartcard sndfile snmp socks5 speech speex spell spl sql sqlite sqlite3 srt sse sse2 ssl ssse3 startup-notification svg sysfs tcpd templates tetex tga theora threads tiff timidity tk tools truetype unicode usb v4l v4l2 vcd vidix visualizationvorbis wav wavpack webinterface webkit wifi win32codecs wma wmf wmp wxwindows x264 x86 xanim xcb xcomposite xine xinerama xml xorg xpm xprint xulrunner xv xvid xvmc yv12 zeroconf zip 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" 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="nikon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en pl uk be de" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Eric Bosch 2009-02-22 06:03:06 UTC
Same issue here
Comment 5 Rahul Jain 2009-02-22 09:07:42 UTC
Issue most probably due to the new readline. 
Comment 6 Mark Nowiasz 2009-02-22 09:10:58 UTC
(In reply to comment #5)
> Issue most probably due to the new readline. 
> 

Same here (amd64). I've also encountered it trying to emerge @preserved-rebuild.
Comment 7 Bob Raitz 2009-02-22 10:00:24 UTC
Adding my name for when a solution comes. 
Comment 8 Sergey Morozov 2009-02-22 10:28:16 UTC
I have the same problem
Comment 9 Andrew Savchenko gentoo-dev 2009-02-22 10:40:30 UTC
Seconded. The same problem on emerge @preserved-rebuild.
gdb seems to be not ready for new readline.
Comment 10 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-02-22 12:21:09 UTC
Reassigning to toolchain herd.
Comment 11 kouyu 2009-02-22 12:31:08 UTC
So, readline-6 may be added as a new slot in order to preserve readline-5 for gdb.
Comment 12 Christian Schwinn 2009-02-22 14:07:01 UTC
Same here. I have locally masked readline 6 until this is fixed.
Comment 13 Kamen Dokov 2009-02-22 14:36:38 UTC
(In reply to comment #12)
> Same here. I have locally masked readline 6 until this is fixed.
> 

++
Comment 14 Heiko Wundram 2009-02-22 15:10:09 UTC
AFAICT (from a quick first glance) this has nothing to do with readline 6, but rather is a build error of gdb itself, as that comes bundled with its own readline library (and does/should not use the system one or system includes for that matter).
Comment 15 Heiko Wundram 2009-02-22 15:50:04 UTC
Created attachment 182784 [details, diff]
Ebuild patch to remove dependency on system readline for gdb

Quick fix: the Gentoo ebuild tells gdb to use the system readline library, which it does not require (as it comes bundled with its own version of readline). Simply removing the respective configure option from the ebuild allows gdb to install correctly.
Comment 16 Aleksey Belkin 2009-02-22 18:21:16 UTC
(In reply to comment #15)
> Created an attachment (id=182784) [edit]
> Ebuild patch to remove dependency on system readline for gdb
> 
> Quick fix: the Gentoo ebuild tells gdb to use the system readline library,
> which it does not require (as it comes bundled with its own version of
> readline). Simply removing the respective configure option from the ebuild
> allows gdb to install correctly.
> 

works for me, thank you!

Comment 17 Andrew Savchenko gentoo-dev 2009-02-22 18:41:37 UTC
(In reply to comment #15)
> Created an attachment (id=182784) [edit]
> Ebuild patch to remove dependency on system readline for gdb
> 
> Quick fix: the Gentoo ebuild tells gdb to use the system readline library,
> which it does not require (as it comes bundled with its own version of
> readline). Simply removing the respective configure option from the ebuild
> allows gdb to install correctly.
 
This works, but:
1) readline dependency should be removed too.
2) It is better to fix gdb and make choise of readline (internal/system) configurable via USE flag.
Comment 18 Heiko Wundram 2009-02-22 18:59:14 UTC
(In reply to comment #17)
> This works, but:
> 1) readline dependency should be removed too.

Sure, guess why I called it a "quick" fix.

> 2) It is better to fix gdb and make choise of readline (internal/system)
> configurable via USE flag.

I'd personally remove the dependency on the system readline completely (!), because gdb is messing around deep in the readline internals for their purposes (which is where the link error originally comes from, as they are _locally_ declaring a link reference [i.e., a variable] which is used by the readline core to toggle echoing of input and was present in 5.2, but is no more in 6.0), and as such know why they include their "own" version of readline alltogether.
Comment 20 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-02-22 19:47:01 UTC
*** Bug 259932 has been marked as a duplicate of this bug. ***
Comment 21 Jonathan Heaney 2009-02-23 01:28:43 UTC
gdb-6.8-patches-1.4.tar.lzma is nowhere to be found.
Comment 22 Rahul Jain 2009-02-23 01:37:05 UTC
(In reply to comment #21)
> gdb-6.8-patches-1.4.tar.lzma is nowhere to be found.
> 

Same Issue.
Comment 23 michel 2009-02-23 01:37:50 UTC
(In reply to comment #21)
> gdb-6.8-patches-1.4.tar.lzma is nowhere to be found.
> 

confirmed. reopened bugreport
Comment 24 Jory A. Pratt gentoo-dev 2009-02-23 01:48:23 UTC
(In reply to comment #21)
> gdb-6.8-patches-1.4.tar.lzma is nowhere to be found.
> 

This should be a new bug report. Is well over a day old, and should have been fixed already.
Comment 25 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-02-23 06:32:33 UTC
*** Bug 259953 has been marked as a duplicate of this bug. ***
Comment 26 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-02-23 06:33:56 UTC
Reopening. Mike did you forget to upload the gdb-6.8-patches-1.4.tar.lzma patchset?
Comment 27 Ryan Hill (RETIRED) gentoo-dev 2009-02-23 06:59:48 UTC
it's on the master.  just give it some time to trickle down to the mirrors.
Comment 28 Bob Raitz 2009-02-23 08:10:06 UTC
It's trickled to Dallas. I call this one fixed for me.
Comment 29 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-02-24 14:02:25 UTC
*** Bug 260129 has been marked as a duplicate of this bug. ***