Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 575668 - net-im/psi-0.15: build system splits debug info by itself
Summary: net-im/psi-0.15: build system splits debug info by itself
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-25 17:16 UTC by Stanislav Cymbalov
Modified: 2017-03-26 09:50 UTC (History)
0 users

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


Attachments
Patch adding --no-separate-debug-info option (psi-0.15.ebuild.patch,253 bytes, patch)
2016-02-25 17:16 UTC, Stanislav Cymbalov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stanislav Cymbalov 2016-02-25 17:16:10 UTC
Created attachment 426548 [details, diff]
Patch adding --no-separate-debug-info option

Upstream build system splits debug info from /usr/bin/psi into /usr/bin/psi.debug. This breaks FEATURES="splitdebug" as portage tries to split debug info from /usr/bin/psi (which is already stripped by build system at that point) into /usr/lib/debug/usr/bin/psi.debug and then strips both /usr/bin/psi and /usr/bin/psi.debug so both *.debug files doesn't contain debug symbols.

./configure has option --no-separate-debug-info which disables this unwanted behaviour.

Steps to reproduce:
  1. $ FEATURES="splitdebug" emerge -1 =net-im/psi-0.15
  2. $ gdb /usr/bin/psi

Actual results:
[...]
Reading symbols from /usr/bin/psi...
warning: the debug information found in "/usr/bin/psi.debug" does not match "/usr/bin/psi" (CRC mismatch).


warning: the debug information found in "/usr/lib64/debug//usr/bin/psi.debug" does not match "/usr/bin/psi" (CRC mismatch).

(no debugging symbols found)...done.
(gdb) break main
Function "main" not defined.

Expected results:
[...]
Reading symbols from /usr/bin/psi...Reading symbols from /usr/lib64/debug//usr/bin/psi.debug...done.
done.
(gdb) break main
Breakpoint 1 at 0x4488c0: file main.cpp, line 482.
Comment 1 Stanislav Cymbalov 2016-02-25 17:19:24 UTC
$ emerge --info 
Portage 2.2.26 (python 3.4.3-final-0, default/linux/amd64/13.0, gcc-4.9.3, glibc-2.21-r2, 3.10.97 x86_64)
=================================================================
System uname: Linux-3.10.97-x86_64-Intel-R-_Core-TM-_i5_CPU_M_430_@_2.27GHz-with-gentoo-2.2
KiB Mem:     3911108 total,   1249564 free
KiB Swap:    4194300 total,   4151368 free
Timestamp of repository gentoo: Tue, 23 Feb 2016 18:45:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [enabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.3_p42-r1::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/ccache:          3.1.9-r4::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.ru.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --exclude=ChangeLog*

generated-ebuilds
    location: /usr/local/portage/generated-ebuilds
    masters: gentoo
    priority: 0

dummyunit
    location: /var/lib/layman/dummyunit
    masters: gentoo
    priority: 50

dummyunit-profiles
    location: /var/lib/layman/dummyunit-profiles
    masters: gentoo
    priority: 50

spring
    location: /var/lib/layman/Spring
    masters: gentoo
    priority: 50

tox-overlay
    location: /var/lib/layman/tox-overlay
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE freedist myspell-ru_RU-ALexanderLebedev NVIDIA-r1 AMD"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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"
CXXFLAGS="-march=corei7 -O2 -pipe"
DISTDIR="/var/cache/gentoo/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs distcc distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.yandex.ru/gentoo-distfiles/ http://distfiles.gentoo.org"
INSTALL_MASK=" /usr/share/locale/ru/LC_MESSAGES/git.mo "
LANG="ru_RU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j12"
PKGDIR="/var/cache/gentoo/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude=ChangeLog*"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 amr bash-completion berkdb bluetooth bzip2 cairo caps cdparanoia cdr chm cli cracklib crypt cups cxx dbus djvu dri dts dvd dvdr encode exif fam fftw flac fontconfig gdbm gmp gtk iconv icu idn ipv6 jpeg kde lcms libnotify libsamplerate lzma matroska mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pcre pdf png popcnt postscript qt3support qt4 readline samba sdl seccomp session speex spell sqlite sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg tcpd theora threads tiff truetype udev unicode usb v4l v4l2 vaapi vim-syntax vorbis vpx wifi x264 xattr xcb xcomposite xml xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" SANE_BACKENDS="net" USERLAND="GNU" VIDEO_CARDS="fglrx" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
Comment 2 Sergey Ilinykh 2017-02-17 11:15:25 UTC
./configure has an option --no-separate-debug-info. I have no idea why it's unset for 0.15
Comment 3 Andreas Sturmlechner gentoo-dev 2017-03-26 09:50:15 UTC
Fixed in git commit 42f9dec3f816d75bed4b4a0421f93f00452924cd