below is my memo to show the usage of configure parameters:
--host, --build, --target
please note them differents.
./configure --host=powerpc-linux --build=i686-linux CC=/opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc
another configure call method:
./configure --with-kernel-support --target=arm-9tdmi-linux-gnu --host=arm-9tdmi-linux-gnu --build=i686-pc-linux-gnu --prefix=/work/OProfile/myOProfile
============= ok, enter topic ==============
oprofile need binutils & popt, which provide lib & *.h.
download them, configure & compile.
need packages:
binutils-2.22.tar.bz2
popt-1.16.tar.gz
oprofile-0.9.7.tar.gz
my build env:
zhm@oprofile-0.9.7$ uname -a
Linux HWCB 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
zhm@oprofile-0.9.7$ gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
zhm@oprofile-0.9.7$
--------- popt config & compile -----------
zhm@~$ rm popt-1.16 -rf
zhm@~$ tar xzf popt-1.16.tar.gz
zhm@~$ cd popt-1.16
zhm@popt-1.16$ ./configure --host=powerpc-linux --build=i686-linux CC=/opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc
checking build system type... i686-pc-linux-gnu
checking host system type... powerpc-unknown-linux-gnu
checking target system type... powerpc-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for powerpc-linux-strip... no
checking for strip... strip
configure: WARNING: using cross tools not prefixed with host triplet
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for powerpc-linux-gcc... /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-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... 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 /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc accepts -g... yes
checking for /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc option to accept ISO C89... none needed
checking dependency style of /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc... gcc3
checking for /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc option to accept ISO C99... -std=gnu99
checking for /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
checking for powerpc-linux-gcc... (cached) /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc accepts -g... (cached) yes
checking for /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc option to accept ISO C89... (cached) none needed
checking dependency style of /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc... (cached) gcc3
checking for a BSD-compatible install... /usr/bin/install -c
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 /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc... /opt/lumina/toolchains/freescale-2010.09/powerpc-linux-gnu/bin/ld
checking if the linker (/opt/lumina/toolchains/freescale-2010.09/powerpc-linux-gnu/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... no
checking for powerpc-linux-dumpbin... no
checking for powerpc-linux-link... no
checking for dumpbin... no
checking for link... link -dump -symbols
checking the name lister (link -dump -symbols) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 98304
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /opt/lumina/toolchains/freescale-2010.09/powerpc-linux-gnu/bin/ld option to reload object files... -r
checking for powerpc-linux-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for powerpc-linux-ar... no
checking for ar... ar
checking for powerpc-linux-strip... strip
checking for powerpc-linux-ranlib... no
checking for ranlib... ranlib
checking command to parse link -dump -symbols output from /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc object... failed
checking how to run the C preprocessor... /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-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 for dlfcn.h... yes
checking for objdir... .libs
checking if /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc static flag -static works... yes
checking if /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc supports -c -o file.o... yes
checking if /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc linker (/opt/lumina/toolchains/freescale-2010.09/powerpc-linux-gnu/bin/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 whether /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc needs -traditional... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for library containing strerror... none required
checking for function prototypes... yes
checking for string.h... (cached) yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking fnmatch.h usability... yes
checking fnmatch.h presence... yes
checking for fnmatch.h... yes
checking glob.h usability... yes
checking glob.h presence... yes
checking for glob.h... yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking mcheck.h usability... yes
checking mcheck.h presence... yes
checking for mcheck.h... yes
checking for unistd.h... (cached) yes
checking for setreuid... yes
checking for getuid... yes
checking for geteuid... yes
checking for iconv... yes
checking for mtrace... yes
checking for __secure_getenv... yes
checking for setregid... yes
checking for stpcpy... yes
checking for strerror... yes
checking for vasprintf... yes
checking for srandom... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by GCC... /opt/lumina/toolchains/freescale-2010.09/powerpc-linux-gnu/bin/ld
checking if the linker (/opt/lumina/toolchains/freescale-2010.09/powerpc-linux-gnu/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for iconv... yes
checking for working iconv... guessing yes
configure: creating ./config.status
config.status: creating po/Makefile.in
config.status: creating m4/Makefile
config.status: creating Doxyfile
config.status: creating Makefile
config.status: creating popt.pc
config.status: creating popt.spec
config.status: creating test-poptrc
config.status: creating auto/Makefile
config.status: creating auto/desc
config.status: creating auto/types
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
zhm@popt-1.16$
(then, type 'make')
the last output lines of make:
/opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -Wall -W -D_GNU_SOURCE -D_REENTRANT -MT tdict.o -MD -MP -MF .deps/tdict.Tpo -c -o tdict.o tdict.c
mv -f .deps/tdict.Tpo .deps/tdict.Po
/bin/sh ./libtool --tag=CC --mode=link /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc -g -O2 -Wall -W -D_GNU_SOURCE -D_REENTRANT -o tdict tdict.o libpopt.la
libtool: link: /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc -g -O2 -Wall -W -D_GNU_SOURCE -D_REENTRANT -o .libs/tdict tdict.o ./.libs/libpopt.so -Wl,-rpath -Wl,/usr/local/lib
make[2]: Leaving directory `/home/zhm/popt-1.16'
Making all in auto
make[2]: Entering directory `/home/zhm/popt-1.16/auto'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/zhm/popt-1.16/auto'
make[1]: Leaving directory `/home/zhm/popt-1.16'
zhm@popt-1.16$
--------- binutils config & compile -------
zhm@~$ rm binutils-2.22 -rf
zhm@~$ tar xjf binutils-2.22.tar.bz2
zhm@~$ cd binutils-2.22
zhm@binutils-2.22$ ./configure --host=powerpc-linux-gnu --build=i686-linux CC=/opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc AR=/opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-ar AS=/opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-as NM=/opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-nm
checking build system type... i686-pc-linux-gnu
checking host system type... powerpc-unknown-linux-gnu
checking target system type... powerpc-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for powerpc-linux-gnu-gcc... /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-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... 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 /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc accepts -g... yes
checking for /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc option to accept ISO C89... none needed
checking for powerpc-linux-gnu-g++... no
checking for powerpc-linux-gnu-c++... no
checking for powerpc-linux-gnu-gpp... no
checking for powerpc-linux-gnu-aCC... no
checking for powerpc-linux-gnu-CC... no
checking for powerpc-linux-gnu-cxx... no
checking for powerpc-linux-gnu-cc++... no
checking for powerpc-linux-gnu-cl.exe... no
checking for powerpc-linux-gnu-FCC... no
checking for powerpc-linux-gnu-KCC... no
checking for powerpc-linux-gnu-RCC... no
checking for powerpc-linux-gnu-xlC_r... no
checking for powerpc-linux-gnu-xlC... no
checking for g++... g++
configure: WARNING: using cross tools not prefixed with host triplet
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for powerpc-linux-gnu-gnatbind... no
checking for gnatbind... no
checking for powerpc-linux-gnu-gnatmake... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for objdir... .libs
checking for PWL_handle_timeout in -lpwl... no
checking for version 0.11 (revision 0 or later) of PPL... no
checking for default BUILD_CONFIG...
checking for bison... bison -y
checking for bison... bison
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... flex
checking for flex... flex
checking for makeinfo... makeinfo
checking for expect... no
checking for runtest... no
checking for ar... (cached) /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-ar
checking for powerpc-linux-gnu-ar... (cached) /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-ar
checking for as... (cached) /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-as
checking for powerpc-linux-gnu-as... (cached) /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-as
checking for powerpc-linux-gnu-dlltool... no
checking for ld... (cached) /opt/lumina/toolchains/freescale-2010.09/bin/../lib/gcc/powerpc-linux-gnu/4.5.1/../../../../powerpc-linux-gnu/bin/ld
checking for powerpc-linux-gnu-ld... (cached) /opt/lumina/toolchains/freescale-2010.09/bin/../lib/gcc/powerpc-linux-gnu/4.5.1/../../../../powerpc-linux-gnu/bin/ld
checking for powerpc-linux-gnu-lipo... no
checking for nm... (cached) /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-nm
checking for powerpc-linux-gnu-nm... (cached) /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-nm
checking for powerpc-linux-gnu-ranlib... no
checking for powerpc-linux-gnu-strip... no
checking for powerpc-linux-gnu-windres... no
checking for powerpc-linux-gnu-windmc... no
checking for powerpc-linux-gnu-objcopy... no
checking for powerpc-linux-gnu-objdump... no
checking where to find the target ar... pre-installed
checking where to find the target as... pre-installed
checking where to find the target cc... pre-installed
checking where to find the target c++... pre-installed
checking where to find the target c++ for libstdc++... pre-installed
checking where to find the target dlltool... pre-installed
checking where to find the target gcc... pre-installed
checking where to find the target gcj... pre-installed
checking where to find the target gfortran... pre-installed
checking where to find the target gccgo... pre-installed
checking where to find the target ld... pre-installed
checking where to find the target lipo... pre-installed
checking where to find the target nm... pre-installed
checking where to find the target objdump... pre-installed
checking where to find the target ranlib... pre-installed
checking where to find the target strip... pre-installed
checking where to find the target windres... pre-installed
checking where to find the target windmc... pre-installed
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether -fkeep-inline-functions is supported... yes
configure: creating ./config.status
config.status: creating Makefile
zhm@binutils-2.22$
(then, type 'make')
the last output lines of make:
libtool: link: /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -o ld-new ldgram.o ldlex-wrapper.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o plugin.o eelf32ppclinux.o eelf32ppc.o eelf32ppcsim.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -ldl
make[4]: Leaving directory `/home/zhm/binutils-2.22/ld'
make[3]: Leaving directory `/home/zhm/binutils-2.22/ld'
make[2]: Leaving directory `/home/zhm/binutils-2.22/ld'
make[1]: Nothing to be done for `all-target'.
make[1]: Leaving directory `/home/zhm/binutils-2.22'
zhm@binutils-2.22$
--------- config & compile oprofile ----------------
download: oprofile-0.9.7. decompress it.
zhm@~$ rm oprofile-0.9.7 -rf
zhm@~$ tar xzf oprofile-0.9.7.tar.gz
zhm@~$ cd oprofile-0.9.7
zhm@oprofile-0.9.7$ ./configure --with-kernel-support --with-kernel=/home/zhm/lumina_build/lumina/kernel/linux-2.6-cloud/linux-2.6-cloud/ --host=i686-linux --build=powerpc-linux CC=/opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc CXX=/opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-g++ --with-extra-libs=/home/zhm/popt-1.16/.libs/:/home/zhm/binutils-2.22/libiberty/:/home/zhm/binutils-2.22/bfd/ --with-binutils=/home/zhm/binutils-2.22/ --with-extra-includes=/home/zhm/popt-1.16/:/home/zhm/binutils-2.22/bfd/
configure: WARNING: unrecognized options: --with-kernel
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for i686-linux-strip... no
checking for strip... strip
configure: WARNING: using cross tools not prefixed with host triplet
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 i686-linux-gcc... /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc accepts -g... yes
checking for /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc option to accept ISO C89... none needed
checking dependency style of /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc... gcc3
checking whether basename is declared... yes
checking for i686-linux-ranlib... no
checking for ranlib... ranlib
checking build system type... powerpc-unknown-linux-gnu
checking host system type... i686-pc-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 /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc... /opt/lumina/toolchains/freescale-2010.09/powerpc-linux-gnu/bin/ld
checking if the linker (/opt/lumina/toolchains/freescale-2010.09/powerpc-linux-gnu/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... no
checking for i686-linux-dumpbin... no
checking for i686-linux-link... no
checking for dumpbin... no
checking for link... link -dump -symbols
checking the name lister (link -dump -symbols) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 98304
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /opt/lumina/toolchains/freescale-2010.09/powerpc-linux-gnu/bin/ld option to reload object files... -r
checking for i686-linux-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for i686-linux-ar... no
checking for ar... ar
checking for i686-linux-strip... strip
checking for i686-linux-ranlib... ranlib
checking command to parse link -dump -symbols output from /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc object... failed
checking how to run the C preprocessor... /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-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 for dlfcn.h... yes
checking for objdir... .libs
checking if /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc static flag -static works... yes
checking if /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc supports -c -o file.o... yes
checking if /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc linker (/opt/lumina/toolchains/freescale-2010.09/powerpc-linux-gnu/bin/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 i686-linux-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for i686-linux-gcc... (cached) /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc accepts -g... (cached) yes
checking for /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc option to accept ISO C89... (cached) none needed
checking dependency style of /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc... (cached) gcc3
checking how to run the C preprocessor... /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc -E
checking whether we are using the GNU C++ compiler... yes
checking whether /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-g++ accepts -g... yes
checking dependency style of /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-g++... gcc3
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-g++ accepts -g... (cached) yes
checking dependency style of /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-g++... (cached) gcc3
checking how to run the C++ preprocessor... /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-g++ -E
checking for ld used by /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-g++... /home/zhm/binutils-2.22//ld
checking if the linker (/home/zhm/binutils-2.22//ld) is GNU ld... no
checking whether the /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-g++ linker (/home/zhm/binutils-2.22//ld) supports shared libraries... yes
checking for /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-g++ option to produce PIC... -fPIC -DPIC
checking if /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-g++ PIC flag -fPIC -DPIC works... yes
checking if /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-g++ static flag -static works... yes
checking if /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-g++ supports -c -o file.o... yes
checking if /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-g++ supports -c -o file.o... (cached) yes
checking whether the /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-g++ linker (/home/zhm/binutils-2.22//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/zhm/binutils-2.22//ld
checking for kernel OProfile support... yes
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... no
configure: WARNING: libiberty.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: libiberty.h: proceeding with the compiler's result
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 for bfd_openr_iovec in -lbfd... yes
checking whether bfd_openr_iovec has seven parameters... yes
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/lib, headers /usr/include
checking whether -R must be followed by a space... no
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... no
checking for moc2... not found
checking for moc... not found
checking for uic... not found
checking in lib for Qt library name... failed
checking for xsltproc... xsltproc
checking whether xsltproc works... yes
checking whether /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc -W is understood... yes
checking whether /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-g++ -W is understood... yes
checking whether /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc -Wall is understood... yes
checking whether /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-g++ -Wall is understood... yes
checking whether /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc -fno-common is understood... yes
checking whether /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-g++ -fno-common is understood... yes
checking whether /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-g++ -ftemplate-depth-50 is understood... yes
checking whether /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-gcc -Wdeclaration-after-statement is understood... 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
config.status: executing libtool commands
configure: WARNING: unrecognized options: --with-kernel
Warning: QT version 3 was requested but not found. No GUI will be built.
zhm@oprofile-0.9.7$
(then, type 'make')
the last output lines of make:
libtool: link: LD_RUN_PATH="/usr/local/lib:" /opt/lumina/toolchains/freescale-2010.09/bin/powerpc-linux-gnu-g++ -W -Wall -fno-common -ftemplate-depth-50 -g -O2 -I/home/zhm/binutils-2.22//include -Wl,-R -Wl,/home/zhm/binutils-2.22//lib -o .libs/oparchive oparchive.o oparchive_options.o common_option.o -L/home/zhm/binutils-2.22//lib -L/home/zhm/popt-1.16/.libs/ -L/home/zhm/binutils-2.22/libiberty/ -L/home/zhm/binutils-2.22/bfd/ ../libpp/libpp.a ../libopt++/libopt++.a ../libregex/libop_regex.a ../libutil++/libutil++.a ../libop/libop.a ../libutil/libutil.a ../libdb/libodb.a /home/zhm/popt-1.16/.libs//libpopt.so /home/zhm/binutils-2.22/bfd//.libs/libbfd.a -liberty -ldl
make[2]: Leaving directory `/home/zhm/oprofile-0.9.7/pp'
Making all in events
make[2]: Entering directory `/home/zhm/oprofile-0.9.7/events'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/zhm/oprofile-0.9.7/events'
Making all in doc
make[2]: Entering directory `/home/zhm/oprofile-0.9.7/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/zhm/oprofile-0.9.7/doc'
Making all in gui
make[2]: Entering directory `/home/zhm/oprofile-0.9.7/gui'
Making all in ui
make[3]: Entering directory `/home/zhm/oprofile-0.9.7/gui/ui'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/zhm/oprofile-0.9.7/gui/ui'
make[3]: Entering directory `/home/zhm/oprofile-0.9.7/gui'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/zhm/oprofile-0.9.7/gui'
make[2]: Leaving directory `/home/zhm/oprofile-0.9.7/gui'
Making all in agents
make[2]: Entering directory `/home/zhm/oprofile-0.9.7/agents'
make[3]: Entering directory `/home/zhm/oprofile-0.9.7/agents'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/zhm/oprofile-0.9.7/agents'
make[2]: Leaving directory `/home/zhm/oprofile-0.9.7/agents'
make[1]: Leaving directory `/home/zhm/oprofile-0.9.7'
zhm@oprofile-0.9.7$