Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 467720 - >=dev-util/cmake-2.8.10.2-r2: test case CMakeOnly.SelectLibraryConfigurations fails
Summary: >=dev-util/cmake-2.8.10.2-r2: test case CMakeOnly.SelectLibraryConfigurations...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-28 10:57 UTC by Toralf Förster
Modified: 2013-06-14 17:17 UTC (History)
3 users (show)

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


Attachments
build log (dev-util:cmake-2.8.10.2-r2:20130428-103724.log.gz,55.95 KB, text/plain)
2013-04-28 10:57 UTC, Toralf Förster
Details
build log (dev-util:cmake-2.8.10.2-r2:20130428-195334.log.gz,55.23 KB, text/plain)
2013-04-28 20:15 UTC, Toralf Förster
Details
cmake-2.8.10.2-r2.ebuild.patch (cmake-2.8.10.2-r2.ebuild.patch,609 bytes, patch)
2013-05-02 21:30 UTC, David Leverton
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2013-04-28 10:57:33 UTC
Created attachment 346772 [details]
build log

kernel: cmsysTestProces[5607]: segfault at 0 ip 0804a62c sp bffa6110 error 6 in cmsysTestProcess[8048000+9000]

kernel: cmsysTestProces[5610]: segfault at 0 ip 0804a62c sp bffb5050 error 6 in cmsysTestProcess[8048000+9000]

kernel: Crash[5948]: segfault at 0 ip 08048560 sp bf93d51c error 6 in Crash[8048000+1000]

stable gentoo + host kernel is 3.9.0-rc8+
Comment 1 Roman Žilka 2013-04-28 19:27:26 UTC
Just a shot in the dark: does the problem disappear when you remove -march=native from C(XX)FLAGS? On my system (Core i5) -march=native implies, among others, -fPIE, -fstack-protector-all and -fno-strict-overflow which prevent certain packages from even compiling.

Also, you seem to have something ugly in /etc/portage/bashrc. :)
Comment 2 Toralf Förster gentoo-dev 2013-04-28 20:15:12 UTC
Created attachment 346816 [details]
build log

(In reply to comment #1)
> Just a shot in the dark: does the problem disappear when you remove
> -march=native from C(XX)FLAGS? On my system (Core i5) -march=native implies,

No, built with :

CFLAGS="-O2 -pipe"
CXXFLAGS="-O2 -pipe"

it crashed too.



> Also, you seem to have something ugly in /etc/portage/bashrc. :)

Oops, I implemented this dirty hack after a hint in the forum:

# cat /etc/portage/bashrc
post_src_prepare() {
        :
        # epatch_user
}

but forgot to add the ":" line after I commented out epatch - thx :)
Comment 3 David Leverton 2013-05-02 21:30:03 UTC
Created attachment 347180 [details, diff]
cmake-2.8.10.2-r2.ebuild.patch

I'm not yet sure what causes the segfault, but it's not actually the cause of the CMakeOnly.SelectLibraryConfigurations test failure.  The attached patch fixes the failure for me, but the segfault still shows up in dmesg.  Will investigate more.
Comment 4 David Leverton 2013-05-02 21:39:55 UTC
(In reply to comment #3)
> I'm not yet sure what causes the segfault

Seems that part's intentional; test4() in Source/kwsys/testProcess.c [abridged]:

  fprintf(stderr, "Output before crash on stderr from crash test.\n");  
  *(int*)0 = 0;
  fprintf(stderr, "Output after crash on stderr from crash test.\n");
Comment 5 Johannes Huber (RETIRED) gentoo-dev 2013-06-09 12:18:12 UTC
Same in =dev-util/cmake-2.8.11.1:

99% tests passed, 1 tests failed out of 277

Label Time Summary:
Label1    =   0.01 sec
Label2    =   0.01 sec

Total Test time (real) = 327.31 sec

The following tests FAILED:
        209 - CMakeOnly.SelectLibraryConfigurations (Failed)


elia johu # emerge --info cmake
Portage 2.2.0_alpha177 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.3, glibc-2.17, 3.9.4-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.9.4-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.2
KiB Mem:    16319988 total,  10839540 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of tree: Unknown
ld GNU gold (GNU Binutils 2.23.1) 1.11
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5, 3.2.5, 3.3.2
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.2
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3, 4.7.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo betagarden gentoo-guis johu kde Neurogeek qt steam-overlay
Installed sets: @apps, @dev, @gentoo, @kdeapps
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.5/ext-active/ /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=native -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign split-log splitdebug strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp.halifax.rwth-aachen.de/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/lib/layman/gentoo-x86"
PORTDIR_OVERLAY="/var/lib/layman/betagarden /var/lib/layman/gentoo-guis /var/lib/layman/johu /var/lib/layman/kde /var/lib/layman/neurogeek /var/lib/layman/qt /var/lib/layman/steam"
SYNC="cvs://johu@cvs.gentoo.org:/var/cvsroot"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding btrfs bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cvs cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif git gpm iconv ipv6 jpeg kde kipi lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib mysql ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qt3support qt4 readline sdl semantic-desktop session spell sse sse2 ssl startup-notification subversion svg tcpd telepathy tiff truetype udev udisks unicode upower usb v4l vim-syntax vorbis wayland wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zeroconf 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="braindump flow karbon krita plan sheets stage words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="nouveau" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

dev-util/cmake-2.8.11.1 was built with the following:
USE="ncurses qt4 test vim-syntax -emacs -qt5"
Comment 6 Michael Palimaka (kensington) gentoo-dev 2013-06-13 13:16:03 UTC
I think this might be our fault, I cannot reproduce using vanilla cmake.
Comment 7 David Leverton 2013-06-13 18:24:27 UTC
(In reply to Michael Palimaka (kensington) from comment #6)
> I think this might be our fault, I cannot reproduce using vanilla cmake.

Please see the patch in comment #3, this is caused by _modify-cmakelists from cmake-utils.eclass interfering with the test file.
Comment 8 Michael Palimaka (kensington) gentoo-dev 2013-06-14 13:47:57 UTC
(In reply to David Leverton from comment #7)
> Please see the patch in comment #3, this is caused by _modify-cmakelists
> from cmake-utils.eclass interfering with the test file.

Thanks for pointing that out, I completely misread what the patch said.
Comment 9 Michael Palimaka (kensington) gentoo-dev 2013-06-14 17:17:35 UTC
Thanks, fixed in CVS.

+  14 Jun 2013; Michael Palimaka <kensington@gentoo.org> cmake-2.8.11.1.ebuild:
+  Fix tests by David Leverton <levertond@googlemail.com> wrt bug #467720.