oProfile building trouble

<[email protected]>
Newsgroups gmane.linux.oprofile
Message-ID <000b01d287f7$3f970760$bec51620$@com>
Hi all,

 

I met some trouble when I build oprofile.  It shows me "kernel supports
perf_events... no“. 

 

I have tried oprofile-1.0.0, oprofile-1.1.0, oprofile-0.9.6. 

 

My building environment is kernel3.3.8, binutils-2.26 and popt-1.14.

 

I enclosed building log. Any help would be appreciated.

 

BestRegards,

Ryan 

Date:10/10/2015

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot

_______________________________________________
oprofile-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oprofile-list
buildlog.txt (text/plain, 7.1 KB)
./configure  --host=mipsel-linux --with-kernel=/home/ryan/workdir/platform/linux_h5/platform/kernel/linux  --with-extra-libs=/home/ryan/workdir/platform/linux_h5/target/external/popt/usr/lib/:/home/ryan/workdir/platform/linux_h5/target/external/zlib/usr/lib/:/home/ryan/workdir/platform/linux_h5/target/external/binutils/usr/lib/  --with-extra-includes=/home/ryan/workdir/platform/linux_h5/target/include --with-binutils=/home/ryan/workdir/platform/linux_h5/external/oprofile/../binutils/binutils-2.26 --prefix=/usr 
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mipsel-linux-strip... mipsel-linux-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for mipsel-linux-gcc... mipsel-linux-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mipsel-linux-gcc accepts -g... yes
checking for mipsel-linux-gcc option to accept ISO C89... none needed
checking dependency style of mipsel-linux-gcc... gcc3
checking whether basename is declared... yes
checking for mipsel-linux-ranlib... mipsel-linux-ranlib
checking build system type... x86_64-unknown-linux-gnu
checking host system type... mipsel-unknown-linux-gnu
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 fgrep... /bin/grep -F
checking for ld used by mipsel-linux-gcc... mipsel-linux-ld
checking if the linker (mipsel-linux-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... mipsel-linux-nm
checking the name lister (mipsel-linux-nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 3458764513820540925
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for mipsel-linux-ld option to reload object files... -r
checking for mipsel-linux-objdump... mipsel-linux-objdump
checking how to recognize dependent libraries... pass_all
checking for mipsel-linux-ar... mipsel-linux-ar
checking for mipsel-linux-strip... (cached) mipsel-linux-strip
checking for mipsel-linux-ranlib... (cached) mipsel-linux-ranlib
checking command to parse mipsel-linux-nm output from mipsel-linux-gcc object... ok
checking how to run the C preprocessor... mipsel-linux-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 for dlfcn.h... yes
checking for objdir... .libs
checking if mipsel-linux-gcc supports -fno-rtti -fno-exceptions... no
checking for mipsel-linux-gcc option to produce PIC... -fPIC -DPIC
checking if mipsel-linux-gcc PIC flag -fPIC -DPIC works... yes
checking if mipsel-linux-gcc static flag -static works... yes
checking if mipsel-linux-gcc supports -c -o file.o... yes
checking if mipsel-linux-gcc supports -c -o file.o... (cached) yes
checking whether the mipsel-linux-gcc linker (mipsel-linux-ld) 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
checking for mipsel-linux-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
configure: WARNING: using cross tools not prefixed with host triplet
checking pkg-config is at least version 0.9.0... yes
checking for mipsel-linux-gcc... (cached) mipsel-linux-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether mipsel-linux-gcc accepts -g... (cached) yes
checking for mipsel-linux-gcc option to accept ISO C89... (cached) none needed
checking dependency style of mipsel-linux-gcc... (cached) gcc3
checking how to run the C preprocessor... mipsel-linux-gcc -E
checking whether we are using the GNU C++ compiler... yes
checking whether mipsel-linux-g++ accepts -g... yes
checking dependency style of mipsel-linux-g++... gcc3
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether mipsel-linux-g++ accepts -g... (cached) yes
checking dependency style of mipsel-linux-g++... (cached) gcc3
checking how to run the C++ preprocessor... mipsel-linux-g++ -E
checking for ld used by mipsel-linux-g++... /home/ryan/workdir/platform/linux_h5/external/oprofile/../binutils/binutils-2.26/ld
checking if the linker (/home/ryan/workdir/platform/linux_h5/external/oprofile/../binutils/binutils-2.26/ld) is GNU ld... no
checking whether the mipsel-linux-g++ linker (/home/ryan/workdir/platform/linux_h5/external/oprofile/../binutils/binutils-2.26/ld) supports shared libraries... yes
checking for mipsel-linux-g++ option to produce PIC... -fPIC -DPIC
checking if mipsel-linux-g++ PIC flag -fPIC -DPIC works... yes
checking if mipsel-linux-g++ static flag -static works... yes
checking if mipsel-linux-g++ supports -c -o file.o... yes
checking if mipsel-linux-g++ supports -c -o file.o... (cached) yes
checking whether the mipsel-linux-g++ linker (/home/ryan/workdir/platform/linux_h5/external/oprofile/../binutils/binutils-2.26/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... unsupported
checking for ld... /home/ryan/workdir/platform/linux_h5/external/oprofile/../binutils/binutils-2.26/ld
checking /home/ryan/workdir/platform/linux_h5/platform/kernel/linux/include/linux/perf_event.h usability... yes
checking /home/ryan/workdir/platform/linux_h5/platform/kernel/linux/include/linux/perf_event.h presence... yes
checking for /home/ryan/workdir/platform/linux_h5/platform/kernel/linux/include/linux/perf_event.h... yes
checking kernel supports perf_events... no
No perf_events support available; falling back to legacy oprofile
checking host system type... (cached) mipsel-unknown-linux-gnu
checking whether malloc attribute is understood... no
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... no
configure: error: liberty library not found
make: *** [/home/ryan/workdir/platform/linux_h5/external/oprofile/.oprofile] Error 1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.