Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 306867 - dev-util/cmake bootstrapping logic needs fixing
Summary: dev-util/cmake bootstrapping logic needs fixing
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 322721 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-25 20:47 UTC by carlo cancellieri
Modified: 2010-12-17 09:24 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description carlo cancellieri 2010-02-25 20:47:25 UTC
Hy,
I'm having a little trouble emerging all cmake related ebuilds...

Code:
# emerge cmake


give me a generic core dump so using gdb this is the bt:

Code:
#cd /var/tmp/portage/dev-util/cmake-2.6.4-r3/work/cmake-2.6.4/

#gdb /usr/bin/cmake
warning: Can not parse XML syscalls information; XML support was disabled at compile time.
GNU gdb (Gentoo 7.0 p2) 7.0
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/cmake...(no debugging symbols found)...done.
(gdb) run ./
Starting program: /usr/bin/cmake ./
[Thread debugging using libthread_db enabled]
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc

Program received signal SIGSEGV, Segmentation fault.
0x0000000000578a22 in cmGlobalUnixMakefileGenerator3::WriteConvenienceRules(std::ostream&, std::set<cmsys::String, std::less<cmsys::String>, std::allocator<cmsys::String> >&) ()
(gdb) bt
#0  0x0000000000578a22 in cmGlobalUnixMakefileGenerator3::WriteConvenienceRules(std::ostream&, std::set<cmsys::String, std::less<cmsys::String>, std::allocator<cmsys::String> >&) ()
#1  0x00000000005a123b in cmLocalUnixMakefileGenerator3::WriteLocalMakefile() ()
#2  0x00000000005a1474 in cmLocalUnixMakefileGenerator3::Generate() ()
#3  0x00000000005736df in cmGlobalGenerator::Generate() ()
#4  0x000000000057c5e0 in cmGlobalUnixMakefileGenerator3::Generate() ()
#5  0x00000000004d5843 in cmake::Generate() ()
#6  0x0000000000486033 in cmMakefile::TryCompile(char const*, char const*, char const*, char const*, std::vector<std::string, std::allocator<std::string> > const*, std::string*) ()
#7  0x000000000050a18a in cmCoreTryCompile::TryCompileCode(std::vector<std::string, std::allocator<std::string> > const&) ()
#8  0x000000000050b3fc in cmTryCompileCommand::InitialPass(std::vector<std::string, std::allocator<std::string> > const&, cmExecutionStatus&) ()
#9  0x000000000052034b in cmCommand::InvokeInitialPass(std::vector<cmListFileArgument, std::allocator<cmListFileArgument> > const&, cmExecutionStatus&) ()
#10 0x000000000048799c in cmMakefile::ExecuteCommand(cmListFileFunction const&, cmExecutionStatus&) ()
#11 0x000000000050857d in cmIfFunctionBlocker::IsFunctionBlocked(cmListFileFunction const&, cmMakefile&, cmExecutionStatus&)
    ()
#12 0x000000000047ff4b in cmMakefile::IsFunctionBlocked(cmListFileFunction const&, cmExecutionStatus&) ()
#13 0x0000000000487729 in cmMakefile::ExecuteCommand(cmListFileFunction const&, cmExecutionStatus&) ()
#14 0x0000000000496f0d in cmMakefile::ReadListFile(char const*, char const*, std::string*, bool) ()
#15 0x000000000056df47 in cmGlobalGenerator::EnableLanguage(std::vector<std::string, std::allocator<std::string> > const&, cmMakefile*, bool) ()
#16 0x000000000057745a in cmGlobalUnixMakefileGenerator3::EnableLanguage(std::vector<std::string, std::allocator<std::string> > const&, cmMakefile*, bool) ()
#17 0x00000000004f7250 in cmProjectCommand::InitialPass(std::vector<std::string, std::allocator<std::string> > const&, cmExecutionStatus&) ()
#18 0x000000000052034b in cmCommand::InvokeInitialPass(std::vector<cmListFileArgument, std::allocator<cmListFileArgument> > const&, cmExecutionStatus&) ()
#19 0x000000000048799c in cmMakefile::ExecuteCommand(cmListFileFunction const&, cmExecutionStatus&) ()
#20 0x0000000000496f0d in cmMakefile::ReadListFile(char const*, char const*, std::string*, bool) ()
#21 0x0000000000591ea5 in cmLocalGenerator::Configure() ()
#22 0x0000000000596b1a in cmLocalUnixMakefileGenerator3::Configure() ()
#23 0x000000000056b639 in cmGlobalGenerator::Configure() ()
#24 0x00000000004d2959 in cmake::ActualConfigure() ()
#25 0x00000000004d464e in cmake::Configure() ()
#26 0x00000000004d59d6 in cmake::Run(std::vector<std::string, std::allocator<std::string> > const&, bool) ()
#27 0x0000000000468970 in do_cmake(int, char**) ()
#28 0x0000000000469535 in main ()
(gdb) Quit


this is my emerge --info:
Code:
# emerge --info
Portage 2.2_rc63 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.32-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r6-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-1.12.13
Timestamp of tree: Tue, 23 Feb 2010 07:25:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.5.4-r4, 2.6.4-r1, 3.1.1-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.32
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /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/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildpkg ccache distcc distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://gentoo.mirror.dkm.cz/pub/gentoo/ http://mirror.leaseweb.com/gentoo/ ftp://212.219.56.138/sites/www.ibiblio.org/gentoo/"
LANG="it_IT.UTF8"
LC_ALL="C"
LDFLAGS="-Wl,-O1"
LINGUAS="it"
MAKEOPTS="-j7"
PKGDIR="/arc/portage/packages"
PORTAGE_CONFIGROOT="/"
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/portage/local/layman/science /usr/portage/local/layman/x11 /usr/portage/local/layman/qting-edge /usr/portage/local/layman/kde"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="16bit 16bit-indices 16bittmp 64bit 7zip R X X509 Xaw3d a52 aac aalib accessibility ace acl acpi addbookmarks ads aften akode akonadi alac alisp alsa amarok amd64 ao aotuv apache2 apidocs apm ares arts artswrappersuid aspell aspnet aspnet2 aspnetedit bash-completion berkdb bluetooth branding bzip2 cairo cdaudio cdr cli consolekit cpudetection cracklib crypt cups cxx dbus doc dri dts dvb dvd dvdr dvdread eds emboss encode evo exif fam fame fat fbcon fbdev fbsplash ffmpeg fftw finger firefox flac flash fontconfig fortran ftp fts3 fuse fusion gd gdbm gecko geoip ggi gif git glgd glib gnome gpg gphoto2 gpm grub gs gsm gstreamer gtk gtk+ guidexml gzip h323 hal hardened hddtemp hdri high-ints hpn html http hvm iconv id3 id3tag ieee1394 image imagemagick inkjar int64 iodbc ipv6 jack jadetex java java-external java5 javacomm jpeg jpeg2k kde lame lash lcms ldap libcaca libgcrypt libnotify libsamplerate libssh2 libvisual lirc lm_sensors logitech-mouse logrotate loop-aes lzo lzw mad md5sum mdnsresponder-compat messages metric mikmod mime mixer mjpeg mmap mmkeys mmx mmxext mng modules mp2 mp3 mp3tunes mp4 mp4live mpd mpeg mpeg2 mplayer mtp mudflap multilib multipath multipleip multiprocess musepack musicbrainz mysql ncurses networkmanager nfqueue nfs nls nntp nptl nptlonly nsplugin ntfs nvidia objc objc++ objc-gc odbc ogg openal opengl openmp openntpd openssh openssl opensslcrypt openvpn pam pango pcre pdf perfprofiling perl phonon player plugins png pnm policykit portage portaudio postgres postproc ppds pppd prelude pvr python q32 q8 qemu qt3support qt4 quicktime quotas radio rar raw rc5 readline realmedia reflection regexp reiserfs resolvconf roundrobin rpm rss samba sasl sdl sdl-image sdl-sound sdlaudio secure-delete semantic-desktop sensord session sftp sharedmem shorten sift simplexml smp sockets sourceview spell spl sql sqlite srt sse sse2 ssl ssse3 startup-notification stream submenu subtitles subversion svg svgz swat swig sysfs syslog sysvipc szip taglib tagwriting tcl tcp tcpd tcpmd5 tftp tga theora threads threadsafe threadsonly thunar tidy tiff timestats timezone timidity tk tos transcode truetype tunepimp twolame type1 uclibc-compat ui unicode unzip upnp urandom usb uudeview uuencode v4l v4l2 vamp vcd vcdx vdr verse vga video visual visualization vlm vnc vorbis vram vroot wav wavpack webkit wma wmf wmp x264 x86emu xattr xbase xcb xcf xcomposite xen xetex xext xfce xfs xine xinetd xml xmldoclet xmlreader xmlwriter xmp xmpi xorg xpm xrender xulrunner xv xvid xvmc xvnc yaepg yv12 zeroconf zip zlib zvbi" 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" 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" DVB_CARDS="tda10046lifeview" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" LIRC_DEVICES="flyvideo" NETBEANS_MODULES="apisupport harness ide j2ee java nb websvccommon xml soa visualweb webcommon groovy gsf cnd dlight enterprise ergonomics identity mobility php profiler ruby" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia vga fbdev vesa vmware"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


gcc-config:
Code:
# gcc-config -l                     
 [1] x86_64-pc-linux-gnu-4.3.4 *


Someone could help me???

I've already done:
- emerge -e world 
- emerge -e system
- installed gcc-4.4.3
  (recompiled glibc and selected using gcc-config)
 with no results

thank u!

Reproducible: Always

Steps to Reproduce:
emerge cmake
or
emerge phonon
or
...

Actual Results:  
core dump!

Expected Results:  
cmake re-compiled

I've recently changed my disk syncing it using "cp -av" and checked using "rsync -Sav".
Sadly this is done using a pair of "bed" (tested with memtest86) corsair ram.
Now I've changed my rams (checked them) and recompiled world but... when emerge comes to cmake it fails!
Comment 1 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2010-02-26 14:50:27 UTC
Please read the "Gentoo Bug Reporting Guide"[1] before opening a bug.

 [1] - http://www.gentoo.org/doc/en/bugzilla-howto.xml
Comment 2 carlo cancellieri 2010-02-26 15:50:05 UTC
(In reply to comment #1)
> Please read the "Gentoo Bug Reporting Guide"[1] before opening a bug.
> 
>  [1] - http://www.gentoo.org/doc/en/bugzilla-howto.xml

Since 'bt' is complete, I don't know what useful info are missing... by the way these rows may complete my bug report. (If no, please specify what is missing)

Code:
# emerge -Dav cmake

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-util/cmake-2.6.4-r3  USE="qt4 -emacs -vim-syntax" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] 

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-util/cmake-2.6.4-r3
 * cmake-2.6.4.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                                 [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                  [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                 [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                [ ok ]
 * CPV:  dev-util/cmake-2.6.4-r3
 * REPO: gentoo
 * USE:  amd64 elibc_glibc kernel_linux multilib qt4 userland_GNU
>>> Unpacking source...
>>> Unpacking cmake-2.6.4.tar.gz to /var/tmp/portage/dev-util/cmake-2.6.4-r3/work
>>> Source unpacked in /var/tmp/portage/dev-util/cmake-2.6.4-r3/work
>>> Preparing source in /var/tmp/portage/dev-util/cmake-2.6.4-r3/work/cmake-2.6.4 ...
 * Applying cmake-FindJNI.patch ...                                                                                                                    [ ok ]
 * Applying cmake-FindPythonLibs.patch ...                                                                                                             [ ok ]
 * Applying cmake-FindPythonInterp.patch ...                                                                                                           [ ok ]
 * Applying cmake-2.6.4-FindBoost.patch ...                                                                                                            [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-util/cmake-2.6.4-r3/work/cmake-2.6.4 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/dev-util/cmake-2.6.4-r3/work/cmake-2.6.4"
cmake -C /var/tmp/portage/dev-util/cmake-2.6.4-r3/temp/gentoo_common_config.cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_USE_SYSTEM_LIBRARIES=ON -DCMAKE_DOC_DIR=/share/doc/cmake-2.6.4-r3 -DCMAKE_MAN_DIR=/share/man -DCMAKE_DATA_DIR=/share/cmake -DBUILD_CursesDialog=ON -DBUILD_QtDialog=ON -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/dev-util/cmake-2.6.4-r3/temp/gentoo_rules.cmake  /var/tmp/portage/dev-util/cmake-2.6.4-r3/work/cmake-2.6.4
loading initial cache file /var/tmp/portage/dev-util/cmake-2.6.4-r3/temp/gentoo_common_config.cmake
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc
/var/tmp/portage/dev-util/cmake-2.6.4-r3/temp/environment: line 1443:  6443 Segmentation fault      (core dumped) cmake "${cmakeargs[@]}" "${CMAKE_USE_DIR}"
 * ERROR: dev-util/cmake-2.6.4-r3 failed:
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line   48:  Called src_configure
 *   environment, line 3522:  Called cmake-utils_src_configure
 *   environment, line  937:  Called _execute_optionaly 'src_configure'
 *   environment, line  421:  Called enable_cmake-utils_src_configure
 *   environment, line 1497:  Called die
 * The specific snippet of code:
 *       cmake "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of 'emerge --info =dev-util/cmake-2.6.4-r3',
 * the complete build log and the output of 'emerge -pqv =dev-util/cmake-2.6.4-r3'.
 * The complete build log is located at '/var/tmp/portage/dev-util/cmake-2.6.4-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/cmake-2.6.4-r3/temp/environment'.
 * S: '/var/tmp/portage/dev-util/cmake-2.6.4-r3/work/cmake-2.6.4'

>>> Failed to emerge dev-util/cmake-2.6.4-r3, Log file:

>>>  '/var/tmp/portage/dev-util/cmake-2.6.4-r3/temp/build.log'

 * Messages for package dev-util/cmake-2.6.4-r3:

 * ERROR: dev-util/cmake-2.6.4-r3 failed:
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line   48:  Called src_configure
 *   environment, line 3522:  Called cmake-utils_src_configure
 *   environment, line  937:  Called _execute_optionaly 'src_configure'
 *   environment, line  421:  Called enable_cmake-utils_src_configure
 *   environment, line 1497:  Called die
 * The specific snippet of code:
 *       cmake "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of 'emerge --info =dev-util/cmake-2.6.4-r3',
 * the complete build log and the output of 'emerge -pqv =dev-util/cmake-2.6.4-r3'.
 * The complete build log is located at '/var/tmp/portage/dev-util/cmake-2.6.4-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/cmake-2.6.4-r3/temp/environment'.
 * S: '/var/tmp/portage/dev-util/cmake-2.6.4-r3/work/cmake-2.6.4'



--------------------------------------------------------------------
Other useful information:
In 'dmesg'appears:
cmake[27699] general protection ip:578a22 sp:7fff7ad73bc0 error:0 in cmake[400000+2a0000]

Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2010-02-26 16:27:04 UTC
Just emerge -C cmake and emerge the cmake again. Should work.
Comment 4 carlo cancellieri 2010-02-26 16:36:05 UTC
(In reply to comment #3)
> Just emerge -C cmake and emerge the cmake again. Should work.
> 

That's right! thank you Tomáš!
This is very strange for me... :/

May I set this bug as Resolved->INVALID ?!?
Comment 5 Tomáš Chvátal (RETIRED) gentoo-dev 2010-02-26 17:37:53 UTC
No please it is still a bug i will have to fix in 2.8.0 at least
Comment 6 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2010-02-26 20:00:03 UTC
I've asked you to read the manual as you've assigned this bug to Developer Relations and that team has nothing to do with this bug.
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2010-09-26 11:21:21 UTC
(In reply to comment #5)
> No please it is still a bug i will have to fix in 2.8.0 at least
> 

Is this still current or can we resolve it?
Comment 8 Andreas K. Hüttel archtester gentoo-dev 2010-12-14 16:27:39 UTC
*** Bug 322721 has been marked as a duplicate of this bug. ***
Comment 9 Tomáš Chvátal (RETIRED) gentoo-dev 2010-12-17 09:24:43 UTC
The cmake build system is completely fixed in version 2.8.3.
Closing as fixed. (wow it took me almost year to kick my ass to do so...)