/bin/sh ./libtool --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3 -I./src -I/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNDEBUG -march=corei7 -O2 -pipe -c -o libglog_la-raw_logging.lo `test -f 'src/raw_logging.cc' || echo '/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/'`src/raw_logging.cc /bin/sh ./libtool --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3 -I./src -I/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNDEBUG -march=corei7 -O2 -pipe -c -o libglog_la-vlog_is_on.lo `test -f 'src/vlog_is_on.cc' || echo '/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/'`src/vlog_is_on.cc /bin/sh ./libtool --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3 -I./src -I/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNDEBUG -march=corei7 -O2 -pipe -c -o libglog_la-utilities.lo `test -f 'src/utilities.cc' || echo '/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/'`src/utilities.cc /bin/sh ./libtool --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3 -I./src -I/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNDEBUG -march=corei7 -O2 -pipe -c -o libglog_la-demangle.lo `test -f 'src/demangle.cc' || echo '/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/'`src/demangle.cc /bin/sh ./libtool --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3 -I./src -I/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNDEBUG -march=corei7 -O2 -pipe -c -o libglog_la-symbolize.lo `test -f 'src/symbolize.cc' || echo '/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/'`src/symbolize.cc /bin/sh ./libtool --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3 -I./src -I/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNDEBUG -march=corei7 -O2 -pipe -c -o libglog_la-signalhandler.lo `test -f 'src/signalhandler.cc' || echo '/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/'`src/signalhandler.cc libtool: compile: x86_64-pc-linux-gnu-g++ -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3 -I./src -I/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNDEBUG -march=corei7 -O2 -pipe -c /var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/src/utilities.cc -fPIC -DPIC -o .libs/libglog_la-utilities.o libtool: compile: x86_64-pc-linux-gnu-g++ -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3 -I./src -I/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNDEBUG -march=corei7 -O2 -pipe -c /var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/src/vlog_is_on.cc -fPIC -DPIC -o .libs/libglog_la-vlog_is_on.o libtool: compile: x86_64-pc-linux-gnu-g++ -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3 -I./src -I/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNDEBUG -march=corei7 -O2 -pipe -c /var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/src/symbolize.cc -fPIC -DPIC -o .libs/libglog_la-symbolize.o libtool: compile: x86_64-pc-linux-gnu-g++ -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3 -I./src -I/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNDEBUG -march=corei7 -O2 -pipe -c /var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/src/logging.cc -fPIC -DPIC -o .libs/libglog_la-logging.o libtool: compile: x86_64-pc-linux-gnu-g++ -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3 -I./src -I/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNDEBUG -march=corei7 -O2 -pipe -c /var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/src/demangle.cc -fPIC -DPIC -o .libs/libglog_la-demangle.o libtool: compile: x86_64-pc-linux-gnu-g++ -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3 -I./src -I/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNDEBUG -march=corei7 -O2 -pipe -c /var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/src/signalhandler.cc -fPIC -DPIC -o .libs/libglog_la-signalhandler.o libtool: compile: x86_64-pc-linux-gnu-g++ -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3 -I./src -I/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNDEBUG -march=corei7 -O2 -pipe -c /var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/src/raw_logging.cc -fPIC -DPIC -o .libs/libglog_la-raw_logging.o /bin/sh ./libtool --tag=CXX --mode=link x86_64-pc-linux-gnu-g++ -m32 -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNDEBUG -march=corei7 -O2 -pipe -Wl,-O1 -Wl,--as-needed -o libglog.la -rpath /usr/lib32 libglog_la-logging.lo libglog_la-raw_logging.lo libglog_la-vlog_is_on.lo libglog_la-utilities.lo libglog_la-demangle.lo libglog_la-symbolize.lo libglog_la-signalhandler.lo -lgflags -lpthread libtool: link: x86_64-pc-linux-gnu-g++ -m32 -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/32/crtbeginS.o .libs/libglog_la-logging.o .libs/libglog_la-raw_logging.o .libs/libglog_la-vlog_is_on.o .libs/libglog_la-utilities.o .libs/libglog_la-demangle.o .libs/libglog_la-symbolize.o .libs/libglog_la-signalhandler.o -lgflags -lpthread -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/32 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32 -L/lib/../lib32 -L/usr/lib/../lib32 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/32/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/crtn.o -m32 -march=corei7 -O2 -Wl,-O1 -Wl,--as-needed -Wl,-soname -Wl,libglog.so.0 -o .libs/libglog.so.0.0.0 /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../libgflags.a when searching for -lgflags /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../libgflags.a when searching for -lgflags /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libgflags.a when searching for -lgflags /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgflags collect2: error: ld returned 1 exit status Makefile:728: recipe for target 'libglog.la' failed make: *** [libglog.la] Error 1 * ERROR: dev-cpp/glog-0.3.3-r1::gentoo failed (compile phase): * emake failed Reproducible: Always Portage 2.2.10 (default/linux/amd64/13.0/desktop, gcc-4.8.3, glibc-2.19-r1, 3.15.5-gentoo x86_64) ================================================================= System uname: Linux-3.15.5-gentoo-x86_64-Intel-R-_Core-TM-_i7-3740QM_CPU_@_2.70GHz-with-gentoo-2.2 KiB Mem: 24627364 total, 21527368 free KiB Swap: 25461756 total, 25461756 free Timestamp of tree: Mon, 14 Jul 2014 07:00:01 +0000 ld GNU ld (Gentoo 2.24 p1.4) 2.24 app-shells/bash: 4.2_p47 dev-java/java-config: 2.2.0 dev-lang/python: 2.7.7, 3.3.5, 3.4.1 dev-util/cmake: 2.8.12.2-r1 dev-util/pkgconfig: 0.28-r1 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.11.6, 1.14.1 sys-devel/binutils: 2.24-r3 sys-devel/gcc: 4.8.3 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.2-r1 sys-devel/make: 4.0-r1 sys-kernel/linux-headers: 3.15 (virtual/os-headers) sys-libs/glibc: 2.19-r1 Repositories: gentoo bitcoin steam-overlay bumblebee printer-drivers lokal ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=corei7 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/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=corei7 -O2 -pipe" DISTDIR="/mnt/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified 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" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="de_DE.UTF-8" LC_ALL="" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j9" PKGDIR="/mnt/portage/packages" PORTAGE_CONFIGROOT="/" 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" PORTDIR="/mnt/portage"
Created attachment 380694 [details] build.log
eix dev-cpp/glog [I] dev-cpp/glog Available versions: (~)0.3.1 (~)0.3.1[1] (~)0.3.2 (~)0.3.2[1] 0.3.3 0.3.3[1] (~)0.3.3-r1 (~)0.3.3-r1[1] {gflags static-libs test unwind ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"} Installed versions: 0.3.3-r1(22:41:56 13.07.2014)(gflags -static-libs -test -unwind ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32") Homepage: http://code.google.com/p/google-glog/ Description: Google's C++ logging library [1] "gentoo" /usr/portage
the workaround: downgrading to version dev-cpp/gflags-2.0-r1. so please fix the incompatibility please
gflags-2.1.1 switched build systems and no longer installs libgflags.so (just libgflags.a, libgflags.so.2.1.0 and libgflags.so.2). This looks like a bug in the gflags ebuild and/or build system rather than in glog.
*** This bug has been marked as a duplicate of bug 517114 ***
*** Bug 517114 has been marked as a duplicate of this bug. ***
This should be reopened, the libgflags shared lib being produced exports zero symbols: adam@eggsbenedict ~ $ nm -gC /usr/lib64/libgflags.so.2.1.1 nm: /usr/lib64/libgflags.so.2.1.1: no symbols The ebuild should be modified to use the cmake-utils in portage and pass the -DBUILD_SHARED_LIBS=ON flag to cmake. Doing the gflags build locally with cmake on my machine with this use flag produces a proper shared lib (and doing it without it produces a static one). adam@eggsbenedict ~/scratch/gflags-2.1.1 $ nm -gC lib/libgflags.so | wc -l 226
(In reply to Adam Stylinski from comment #7) > This should be reopened, the libgflags shared lib being produced exports > zero symbols: > > adam@eggsbenedict ~ $ nm -gC /usr/lib64/libgflags.so.2.1.1 > nm: /usr/lib64/libgflags.so.2.1.1: no symbols > > The ebuild should be modified to use the cmake-utils in portage and pass the > -DBUILD_SHARED_LIBS=ON flag to cmake. Doing the gflags build locally with > cmake on my machine with this use flag produces a proper shared lib (and > doing it without it produces a static one). > > adam@eggsbenedict ~/scratch/gflags-2.1.1 $ nm -gC lib/libgflags.so | wc -l > 226 Ahh it turns out this is not very indicative of anything considering nm doesn't work on stripped binaries. There is a linking error with blender and the SetCommandLineOption(char const*, char const*) function call, I'm tracking it down right now.
So as it turns out the issue is related to the fact that gflags recently switched to cmake and doesn't maintain pkg-config .pc files anymore. I'm messing with the blender ebuild to fix this, but this is not currently an issue with libgflags.
not really a dupe, but that one has more information. *** This bug has been marked as a duplicate of bug 517134 ***