Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cant compile cmake [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Drkg4b
n00b
n00b


Joined: 07 Aug 2006
Posts: 42
Location: Italy

PostPosted: Sat Jan 26, 2013 2:33 pm    Post subject: cant compile cmake [Solved] Reply with quote

It dies like this

Code:

/usr/bin/x86_64-pc-linux-gnu-ranlib libCTestLib.a
make[2]: Leaving directory `/var/tmp/portage/dev-util/cmake-2.8.9/work/cmake-2.8.9_build'
/var/tmp/portage/dev-util/cmake-2.8.9/work/cmake-2.8.9/Bootstrap.cmk/cmake -E cmake_progress_report /var/tmp/portage/dev-util/cmake-2.8.9/work/cmake-2.8.9_build/CMakeFiles  46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
[ 82%] Built target CTestLib
make[1]: Leaving directory `/var/tmp/portage/dev-util/cmake-2.8.9/work/cmake-2.8.9_build'
make: *** [all] Error 2
 * ERROR: dev-util/cmake-2.8.9 failed (compile phase):
 *   emake failed


other errors are

Code:

kwsys/libcmsys.a(DynamicLoader.cxx.o): In function `cmsys::DynamicLoader::OpenLibrary(char const*)':
DynamicLoader.cxx:(.text+0x6): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib64/lib64/libdl.a(dlopen.o): In function `dlopen':
(.text+0x5): undefined reference to `__dlopen'
/usr/lib64/lib64/libdl.a(dlclose.o): In function `dlclose':
(.text+0x1): undefined reference to `__dlclose'
/usr/lib64/lib64/libdl.a(dlsym.o): In function `dlsym':
(.text+0x5): undefined reference to `__dlsym'
/usr/lib64/lib64/libdl.a(dlerror.o): In function `dlerror':
(.text+0x1): undefined reference to `__dlerror'
collect2: ld returned 1 exit status
make[2]: *** [bin/ccmake] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-util/cmake-2.8.9/work/cmake-2.8.9_build'
make[1]: *** [Source/CMakeFiles/ccmake.dir/all] Error 2
make[1]: /var/tmp/portage/dev-util/cmake-2.8.9/work/cmake-2.8.9/Bootstrap.cmk/cmake -E cmake_progress_report /var/tmp/portage/dev-util/cmake-2.8.9/work/cmake-2.8.9_build/CMakeFiles
*** Waiting for unfinished jobs....


Code:

# emerge --info '=dev-util/cmake-2.8.9'
Portage 2.1.11.31 (default/linux/amd64/10.0, gcc-4.5.4, glibc-2.15-r3, 3.4.9-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.4.9-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9400_@_2.53GHz-with-gentoo-2.1
Timestamp of tree: Sat, 26 Jan 2013 11:30:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage
Installed sets: @system
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X accessibility acl acpi alsa amd64 apm bash-completion berkdb bzip2 caps cli consolekit cracklib crypt cxx dbus djvu dri dvd dvdr embedded embeded extensions fontconfig fortran gdbm glib gpm hpn iconv ipod ipv6 java javascript jpeg jpeg2k kde kdehiddenvisibility kpathsea laptop lm_sensors mmx modules mp3 mudflap multilib ncurses nforce2 nls nptl nsplugin nvidia opengl openmp pam pcre pmu png policykit qt3 qt3support qt4 readline session sse sse2 ssl svg tcpd truetype udev unicode utemper vcd wifi xcomposite xinerama 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="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" 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" INPUT_DEVICES="keyboard mouse evdev synaptics joystic" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en it" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="vesa nvidia" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


Googling around I found that this might be an old bug occuring when /usr is mounted to different locations and it is solved using bind, this is not my case though as my /usr is all at the same partition. Any clue?
_________________
No Star Can Light Our Way In This Life Of Dark And Fear


Last edited by Drkg4b on Wed Jan 30, 2013 8:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5433

PostPosted: Sat Jan 26, 2013 3:25 pm    Post subject: Reply with quote

Pastebin the whole log - that dlopen error sounds odd enough to be a false positive, meaning it's a side effect of whatever the real problem is.
Back to top
View user's profile Send private message
Drkg4b
n00b
n00b


Joined: 07 Aug 2006
Posts: 42
Location: Italy

PostPosted: Sat Jan 26, 2013 3:30 pm    Post subject: Reply with quote

Here it is

http://pastebin.com/dEUppVc2
_________________
No Star Can Light Our Way In This Life Of Dark And Fear
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sat Jan 26, 2013 4:38 pm    Post subject: Reply with quote

Drkg4b,

With Some of these libraries may not be found correctly messages, I would run revdep-rebuild
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Drkg4b
n00b
n00b


Joined: 07 Aug 2006
Posts: 42
Location: Italy

PostPosted: Sat Jan 26, 2013 4:51 pm    Post subject: Reply with quote

Unfortunately revdep-rebuild doesn't help

Code:
 # revdep-rebuild -- -av
 * Configuring search environment for revdep-rebuild

 * Checking reverse dependencies
 * Packages containing binaries and libraries broken by a package update
 * will be emerged.

 * Collecting system binaries and libraries
 * Generated new 1_files.rr
 * Collecting complete LD_LIBRARY_PATH
 * Generated new 2_ldpath.rr
 * Checking dynamic linking consistency
[ 100% ]                 

 * Dynamic linking on your system is consistent... All done.

_________________
No Star Can Light Our Way In This Life Of Dark And Fear
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5433

PostPosted: Sat Jan 26, 2013 5:21 pm    Post subject: Reply with quote

Given that in that build log '/usr/lib64/lib64' happens repeatedly, something seems broken on your system, beyond the scope of revdep-rebuild.
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sat Jan 26, 2013 5:30 pm    Post subject: Reply with quote

Drkg4b,

What do these return :?:

Code:
ls -l {/usr/lib64/libexpat.s*,/usr/lib64/libarchive.s*,/usr/lib64/libcurl.s*}

ls -l {/usr/lib/libexpat.s*,/usr/lib/libarchive.s*,/usr/lib/libcurl.s*}

_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Drkg4b
n00b
n00b


Joined: 07 Aug 2006
Posts: 42
Location: Italy

PostPosted: Sat Jan 26, 2013 6:10 pm    Post subject: Reply with quote

Code:
 ls -l {/usr/lib64/libexpat.s*,/usr/lib64/libarchive.s*,/usr/lib64/libcurl.s*}
lrwxrwxrwx 1 root root     20 Jan 26 03:33 /usr/lib64/libarchive.so -> libarchive.so.12.0.4
lrwxrwxrwx 1 root root     20 Jan 26 03:33 /usr/lib64/libarchive.so.12 -> libarchive.so.12.0.4
-rwxr-xr-x 1 root root 633744 Jan 26 03:33 /usr/lib64/libarchive.so.12.0.4
lrwxrwxrwx 1 root root     16 Oct 10 08:57 /usr/lib64/libcurl.so -> libcurl.so.4.2.0
lrwxrwxrwx 1 root root     16 Oct 10 08:57 /usr/lib64/libcurl.so.4 -> libcurl.so.4.2.0
-rwxr-xr-x 1 root root 352200 Oct 10 08:57 /usr/lib64/libcurl.so.4.2.0
lrwxrwxrwx 1 root root     17 Oct  9 16:52 /usr/lib64/libexpat.so -> libexpat.so.1.6.0
lrwxrwxrwx 1 root root     17 Oct  9 16:52 /usr/lib64/libexpat.so.1 -> libexpat.so.1.6.0
-rwxr-xr-x 1 root root 174080 Oct  9 16:52 /usr/lib64/libexpat.so.1.6.0


Code:
ls -l {/usr/lib/libexpat.s*,/usr/lib/libarchive.s*,/usr/lib/libcurl.s*}
lrwxrwxrwx 1 root root     20 Jan 26 03:33 /usr/lib/libarchive.so -> libarchive.so.12.0.4
lrwxrwxrwx 1 root root     20 Jan 26 03:33 /usr/lib/libarchive.so.12 -> libarchive.so.12.0.4
-rwxr-xr-x 1 root root 633744 Jan 26 03:33 /usr/lib/libarchive.so.12.0.4
lrwxrwxrwx 1 root root     16 Oct 10 08:57 /usr/lib/libcurl.so -> libcurl.so.4.2.0
lrwxrwxrwx 1 root root     16 Oct 10 08:57 /usr/lib/libcurl.so.4 -> libcurl.so.4.2.0
-rwxr-xr-x 1 root root 352200 Oct 10 08:57 /usr/lib/libcurl.so.4.2.0
lrwxrwxrwx 1 root root     17 Oct  9 16:52 /usr/lib/libexpat.so -> libexpat.so.1.6.0
lrwxrwxrwx 1 root root     17 Oct  9 16:52 /usr/lib/libexpat.so.1 -> libexpat.so.1.6.0
-rwxr-xr-x 1 root root 174080 Oct  9 16:52 /usr/lib/libexpat.so.1.6

_________________
No Star Can Light Our Way In This Life Of Dark And Fear
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sat Jan 26, 2013 7:48 pm    Post subject: Reply with quote

Drkg4b,

About the only differences I see from my setup is the gcc version which I doubt would cause the error :?

If you're doing an update, which it looks like you are from the date of libarchive.so.12.0.4, try masking >=dev-util/cmake-2.8.9 for now in order to complete the update and also to see if any other errors occur.
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Drkg4b
n00b
n00b


Joined: 07 Aug 2006
Posts: 42
Location: Italy

PostPosted: Sat Jan 26, 2013 9:16 pm    Post subject: Reply with quote

Yeah I'm trying to update, I used the option --exclude=dev-util/cmake for the update but so I can't emerge kde-base because it complains that >=dev-util/cmake-3.8.8 are masked. Also allowing ACCEPT_KEYWORDS="~amd64" wont help. I just updated the gcc version but as you suspect this doesn't change anything.

Maybe I can try to add cmake to /etc/package.provided and complete the update but I don't think its a good idea because I wont be able to actually emerge cmake after. No clue!!
_________________
No Star Can Light Our Way In This Life Of Dark And Fear
Back to top
View user's profile Send private message
Drkg4b
n00b
n00b


Joined: 07 Aug 2006
Posts: 42
Location: Italy

PostPosted: Sat Jan 26, 2013 9:21 pm    Post subject: Reply with quote

VoidMage wrote:
Given that in that build log '/usr/lib64/lib64' happens repeatedly, something seems broken on your system, beyond the scope of revdep-rebuild.


Yeah I noticed too, but I was not sure if it is just my system or its normal, will make a backup and try to move everything from /usr/lib64/lib64/ to /usr/lib64/
_________________
No Star Can Light Our Way In This Life Of Dark And Fear
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sat Jan 26, 2013 9:59 pm    Post subject: Reply with quote

Drkg4b,

I guess I didn't read the error close enough. Do you have a /usr/lib64/lib64/ directory :?:

Code:
laptop lib64 # ls lib6*
ls: cannot access lib6*: No such file or directory

_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Drkg4b
n00b
n00b


Joined: 07 Aug 2006
Posts: 42
Location: Italy

PostPosted: Sat Jan 26, 2013 10:06 pm    Post subject: Reply with quote

Yeah I have and moreover I have /usr/lib64/lib64/lib64/lib64/ and so on! Seems that I screwed up something at some point. I'm making a backup and will move /usr/lib64/lib64/ to /usr/lib64/ and delete the recursiveness!
_________________
No Star Can Light Our Way In This Life Of Dark And Fear
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sat Jan 26, 2013 10:19 pm    Post subject: Reply with quote

Drkg4b,

There had to be some manual user intervention there - I doubt it was divine intervention :D

That will most likely resolve the problem.
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Drkg4b
n00b
n00b


Joined: 07 Aug 2006
Posts: 42
Location: Italy

PostPosted: Sat Jan 26, 2013 10:37 pm    Post subject: Reply with quote

Drkg4b wrote:
Seems that I screwed up something at some point.


mea culpa! Ahah hope to manage to solve the issue, thanks for your attention!
_________________
No Star Can Light Our Way In This Life Of Dark And Fear
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum