* Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.29-gentoo-r4 >>> Unpacking source... >>> Unpacking oprofile-0.9.4.tar.gz to /var/tmp/portage/dev-util/oprofile-0.9.4/work * Applying oprofile-0.9.4-gcc43.patch ...  [ ok ] * Applying oprofile-0.9.4-open.patch ...  [ ok ] >>> Source unpacked in /var/tmp/portage/dev-util/oprofile-0.9.4/work /var/tmp/portage/dev-util/oprofile-0.9.4/work/oprofile-0.9.4 /var/tmp/portage/dev-util/oprofile-0.9.4/work/oprofile-0.9.4 /var/tmp/portage/dev-util/oprofile-0.9.4/work/oprofile-0.9.4 >>> Compiling source in /var/tmp/portage/dev-util/oprofile-0.9.4/work/oprofile-0.9.4 ... * econf: updating oprofile-0.9.4/config.sub with /usr/share/gnuconfig/config.sub * econf: updating oprofile-0.9.4/config.guess with /usr/share/gnuconfig/config.guess ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --with-qt-dir=/void --with-x --with-kernel-support configure: loading site script /usr/share/config.site configure: loading site script /usr/share/crossdev/include/site/linux checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for style of include used by make... GNU checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed checking dependency style of x86_64-pc-linux-gnu-gcc... gcc3 checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ld used by x86_64-pc-linux-gnu-gcc... /usr/x86_64-pc-linux-gnu/bin/ld checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++ checking whether we are using the GNU C++ compiler... yes checking whether x86_64-pc-linux-gnu-g++ accepts -g... yes checking dependency style of x86_64-pc-linux-gnu-g++... gcc3 checking how to run the C++ preprocessor... x86_64-pc-linux-gnu-g++ -E checking for x86_64-pc-linux-gnu-g77... no checking for x86_64-pc-linux-gnu-xlf... no checking for x86_64-pc-linux-gnu-f77... no checking for x86_64-pc-linux-gnu-frt... no checking for x86_64-pc-linux-gnu-pgf77... no checking for x86_64-pc-linux-gnu-cf77... no checking for x86_64-pc-linux-gnu-fort77... no checking for x86_64-pc-linux-gnu-fl32... no checking for x86_64-pc-linux-gnu-af77... no checking for x86_64-pc-linux-gnu-xlf90... no checking for x86_64-pc-linux-gnu-f90... no checking for x86_64-pc-linux-gnu-pgf90... no checking for x86_64-pc-linux-gnu-pghpf... no checking for x86_64-pc-linux-gnu-epcf90... no checking for x86_64-pc-linux-gnu-gfortran... x86_64-pc-linux-gnu-gfortran checking whether we are using the GNU Fortran 77 compiler... yes checking whether x86_64-pc-linux-gnu-gfortran accepts -g... yes checking the maximum length of command line arguments... 32768 checking command to parse /usr/bin/nm -B output from x86_64-pc-linux-gnu-gcc object... ok checking for objdir... .libs checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar checking for x86_64-pc-linux-gnu-ranlib... (cached) x86_64-pc-linux-gnu-ranlib checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip checking if x86_64-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no checking for x86_64-pc-linux-gnu-gcc option to produce PIC... -fPIC checking if x86_64-pc-linux-gnu-gcc PIC flag -fPIC works... yes checking if x86_64-pc-linux-gnu-gcc static flag -static works... yes checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... yes checking whether the x86_64-pc-linux-gnu-gcc linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by x86_64-pc-linux-gnu-g++... /usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64 checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) is GNU ld... yes checking whether the x86_64-pc-linux-gnu-g++ linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes checking for x86_64-pc-linux-gnu-g++ option to produce PIC... -fPIC checking if x86_64-pc-linux-gnu-g++ PIC flag -fPIC works... yes checking if x86_64-pc-linux-gnu-g++ static flag -static works... yes checking if x86_64-pc-linux-gnu-g++ supports -c -o file.o... yes checking whether the x86_64-pc-linux-gnu-g++ linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate appending configuration tag "F77" to libtool checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for x86_64-pc-linux-gnu-gfortran option to produce PIC... -fPIC checking if x86_64-pc-linux-gnu-gfortran PIC flag -fPIC works... yes checking if x86_64-pc-linux-gnu-gfortran static flag -static works... yes checking if x86_64-pc-linux-gnu-gfortran supports -c -o file.o... yes checking whether the x86_64-pc-linux-gnu-gfortran linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... (cached) yes checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... (cached) none needed checking dependency style of x86_64-pc-linux-gnu-gcc... (cached) gcc3 checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E checking whether we are using the GNU C++ compiler... (cached) yes checking whether x86_64-pc-linux-gnu-g++ accepts -g... (cached) yes checking dependency style of x86_64-pc-linux-gnu-g++... (cached) gcc3 checking for ld... /usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64 checking for kernel OProfile support... yes checking whether malloc attribute is understood... yes checking whether __builtin_expect is understood... yes checking for sched_setaffinity... yes checking for perfmonctl... no checking for poptGetContext in -lpopt... yes checking libiberty.h usability... yes checking libiberty.h presence... yes checking for libiberty.h... yes checking for cplus_demangle in -liberty... yes checking for xcalloc... yes checking for xmemdup... yes checking for dlopen in -ldl... yes checking for main in -lintl... no checking for bfd_openr in -lbfd... yes checking whether bfd_get_synthetic_symtab() exists in BFD library... no checking popt prototype... takes const char ** checking whether to use included sstream... no checking whether bfd defines bool... no checking type of size_t... unsigned checking type of ptrdiff_t... int checking for X... libraries /usr/lib64, headers checking whether -R must be followed by a space... neither works checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for moc2... not found checking for moc... /usr/bin/moc checking for uic... /usr/bin/uic checking for Qt library name... failed checking for xsltproc... xsltproc checking whether xsltproc works... yes checking whether x86_64-pc-linux-gnu-gcc -W is understood... yes checking whether x86_64-pc-linux-gnu-g++ -W is understood... yes checking whether x86_64-pc-linux-gnu-gcc -Wall is understood... yes checking whether x86_64-pc-linux-gnu-g++ -Wall is understood... yes checking whether x86_64-pc-linux-gnu-gcc -fno-common is understood... yes checking whether x86_64-pc-linux-gnu-g++ -fno-common is understood... yes checking whether x86_64-pc-linux-gnu-g++ -ftemplate-depth-50 is understood... yes checking whether x86_64-pc-linux-gnu-gcc -Wdeclaration-after-statement is understood... yes checking for bfd_openr_iovec in -lbfd... yes checking whether bfd_openr_iovec has seven parameters... yes configure: creating ./config.status config.status: creating Makefile config.status: creating m4/Makefile config.status: creating libutil/Makefile config.status: creating libutil/tests/Makefile config.status: creating libutil++/Makefile config.status: creating libutil++/tests/Makefile config.status: creating libop/Makefile config.status: creating libop/tests/Makefile config.status: creating libopagent/Makefile config.status: creating libopt++/Makefile config.status: creating libdb/Makefile config.status: creating libdb/tests/Makefile config.status: creating libabi/Makefile config.status: creating libabi/tests/Makefile config.status: creating libregex/Makefile config.status: creating libregex/tests/Makefile config.status: creating libregex/stl.pat config.status: creating libregex/tests/mangled-name config.status: creating daemon/Makefile config.status: creating daemon/liblegacy/Makefile config.status: creating events/Makefile config.status: creating utils/Makefile config.status: creating doc/Makefile config.status: creating doc/xsl/catalog-1.xml config.status: creating doc/oprofile.1 config.status: creating doc/opcontrol.1 config.status: creating doc/ophelp.1 config.status: creating doc/opreport.1 config.status: creating doc/opannotate.1 config.status: creating doc/opgprof.1 config.status: creating doc/oparchive.1 config.status: creating doc/opimport.1 config.status: creating doc/srcdoc/Doxyfile config.status: creating libpp/Makefile config.status: creating opjitconv/Makefile config.status: creating pp/Makefile config.status: creating gui/Makefile config.status: creating gui/ui/Makefile config.status: creating module/Makefile config.status: creating module/x86/Makefile config.status: creating module/ia64/Makefile config.status: creating agents/Makefile config.status: creating agents/jvmti/Makefile config.status: creating agents/jvmpi/Makefile config.status: creating config.h config.status: executing depfiles commands Warning: a working Qt not found; no GUI will be built Warning: The user account 'oprofile:oprofile' does not exist on the system. To profile JITed code, this special user account must exist. Please ask your system administrator to add the following user and group: user name : 'oprofile' group name: 'oprofile' The 'oprofile' group must be the default group for the 'oprofile' user. make -j12 -s Making all in . Making all in m4 Making all in libutil Making all in . Making all in tests Making all in libop Making all in . Making all in tests Making all in libopagent mkdir .libs x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -fPIC -I ../libop -I ../libutil -march=barcelona -O2 -ftracer -pipe -ftree-vectorize -g -ggdb -Wstrict-aliasing=2 -Wno-format-zero-length -Wformat=2 -Wno-error -Wno-pointer-sign -MT libopagent_la-opagent.lo -MD -MP -MF .deps/libopagent_la-opagent.Tpo -c opagent.c -fPIC -DPIC -o .libs/libopagent_la-opagent.o x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -fPIC -I ../libop -I ../libutil -march=barcelona -O2 -ftracer -pipe -ftree-vectorize -g -ggdb -Wstrict-aliasing=2 -Wno-format-zero-length -Wformat=2 -Wno-error -Wno-pointer-sign -MT libopagent_la-opagent.lo -MD -MP -MF .deps/libopagent_la-opagent.Tpo -c opagent.c -o libopagent_la-opagent.o >/dev/null 2>&1 x86_64-pc-linux-gnu-gcc -shared .libs/libopagent_la-opagent.o -Wl,--rpath -Wl,/usr/lib64/binutils/x86_64-pc-linux-gnu/2.19.51.0.4 -Wl,--rpath -Wl,/usr/lib64/binutils/x86_64-pc-linux-gnu/2.19.51.0.4 /usr/lib64/binutils/x86_64-pc-linux-gnu/2.19.51.0.4/libbfd.so -liberty -ldl -march=barcelona -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--version-script=../libopagent/opagent_symbols.ver -Wl,-soname -Wl,libopagent.so.1 -o .libs/libopagent.so.1.0.0 (cd .libs && rm -f libopagent.so.1 && ln -s libopagent.so.1.0.0 libopagent.so.1) (cd .libs && rm -f libopagent.so && ln -s libopagent.so.1.0.0 libopagent.so) x86_64-pc-linux-gnu-ar cru .libs/libopagent.a libopagent_la-opagent.o x86_64-pc-linux-gnu-ranlib .libs/libopagent.a creating libopagent.la (cd .libs && rm -f libopagent.la && ln -s ../libopagent.la libopagent.la) Making all in libdb Making all in . Making all in tests Making all in libutil++ Making all in . In file included from ../libutil/op_libiberty.h:27, from child_reader.cpp:22: /usr/include/libiberty.h:105: error: new declaration ‘char* basename(const char*)’ /usr/include/string.h:601: error: ambiguates old declaration ‘const char* basename(const char*)’ make[3]: *** [child_reader.o] Error 1 make[3]: *** Waiting for unfinished jobs.... In file included from ../libutil/op_libiberty.h:27, from op_spu_bfd.cpp:24: /usr/include/libiberty.h:105: error: new declaration ‘char* basename(const char*)’ /usr/include/string.h:601: error: ambiguates old declaration ‘const char* basename(const char*)’ make[3]: *** [op_spu_bfd.o] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 * * ERROR: dev-util/oprofile-0.9.4 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3148: Called die * The specific snippet of code: * emake ${mymake} || die "emake failed" * The die message: * emake failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/log/portage/dev-util:oprofile-0.9.4:20090520-231119.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-util/oprofile-0.9.4/temp/environment'. *