2009-01-05 03:59:36 Compilation error with Oprofile support enable
Appalayagari Sreedhar (INDIA)
Message: 67351
Hi,
I am working with custom board with BF533, uClinux distribution 2007 R1-RC3 tar ball vesrion.
I want to make use of Oprofile support, I have followed the steps mentioned in the beow link
docs.blackfin.uclinux.org/doku.php?id=linux-kernel:oprofile
When i compile the distribution, I am getting the follwing error.
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for bfin-linux-uclibc-ranlib... bfin-linux-uclibc-ranlib
checking for bfin-linux-uclibc-strip... (cached) bfin-linux-uclibc-strip
checking for objdir... .libs
checking for bfin-linux-uclibc-gcc option to produce PIC... -fPIC
checking if bfin-linux-uclibc-gcc PIC flag -fPIC works... yes
checking if bfin-linux-uclibc-gcc static flag -static works... yes
checking if bfin-linux-uclibc-gcc supports -c -o file.o... yes
checking if bfin-linux-uclibc-gcc supports -c -o file.lo... yes
checking if bfin-linux-uclibc-gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (bfin-linux-uclibc-ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... no
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
creating libtool
checking for a BSD-compatible install... /usr/bin/install -c
checking alloca.h usability... yes
checking alloca.h presence... yes
checking for alloca.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking libintl.h usability... no
checking libintl.h presence... no
checking for libintl.h... no
checking mcheck.h usability... no
checking mcheck.h presence... no
checking for mcheck.h... no
checking for unistd.h... (cached) yes
checking for /usr/ucblib in LIBS... no
checking for GNU xgettext... configure: error:
*** GNU gettext is required. The latest version
*** is always available from ftp.gnu.org/gnu/gettext/.
make[2]: *** [build/Makefile] Error 1
make[2]: Leaving directory `/home/sreedhar/Work/uClinux-dist-Release4.9.6/lib/popt'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/sreedhar/Work/uClinux-dist-Release4.9.6/lib'
make: *** [subdirs] Error 1
Can you please help me to solve this problem so that i will make use of the profiling support.
Best Regards, Sreedhar.
QuoteReplyEditDelete
2009-01-05 07:52:07 Re: Compilation error with Oprofile support enable
Robin Getz (UNITED STATES)
Message: 67382
Sreedhar:
oprofile was broken in that release - the documentation reflects trunk svn, not any release.
-Robin
QuoteReplyEditDelete
2009-01-06 03:37:43 Re: Compilation error with Oprofile support enable
Appalayagari Sreedhar (INDIA)
Message: 67431
Hi Robin,
When I revert back the options which I have selected in the make menuconfig and do make, I am still getting the compilation error.
please find the details below.
checking mcheck.h presence... no
checking for mcheck.h... no
checking for unistd.h... (cached) yes
checking for /usr/ucblib in LIBS... no
checking for GNU xgettext... configure: error:
*** GNU gettext is required. The latest version
*** is always available from ftp.gnu.org/gnu/gettext/.
make[2]: *** [build/Makefile] Error 1
make[2]: Leaving directory `/home/sreedhar/Work/uClinux-dist-Release4.9.6/lib/popt'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/sreedhar/Work/uClinux-dist-Release4.9.6/lib'
make: *** [subdirs] Error 1
Please help me how to clear these compilation errors?
Thankyou, Sreedhar.
QuoteReplyEditDelete
2009-01-06 03:41:32 Re: Compilation error with Oprofile support enable
Mike Frysinger (UNITED STATES)
Message: 67432
so install gettext on your development system
QuoteReplyEditDelete
2009-01-06 08:42:35 Re: Compilation error with Oprofile support enable
Appalayagari Sreedhar (INDIA)
Message: 67473
Hi,
I got this compilation problem only when i selected the options for Oprofile in kernel as well as in user space menu config.
When i have de-selected the options I am still getting the same error.
Before selecting the oprofile options i am able to work with the distribution without any problem.
Can you please give me a clue why it was not giving the compilation error earlier (before enabling Oprofile) and not giving compilation error after de-selecting the Oprofile options.
Best Regards, Sreedhar.
QuoteReplyEditDelete
2009-01-11 08:48:07 Re: Compilation error with Oprofile support enable
Vivek Vaid (UNITED STATES)
Message: 67763
make clean
(I think this maybe too trivial a suggestion for you, but sometimes it works for me when i compile once with wrong code/module and then recompile, i have perform make clean.)
QuoteReplyEditDelete
2009-04-07 11:15:12 Re: Compilation error with Oprofile support enable
Appalayagari Sreedhar (INDIA)
Message: 72333
Hi Mike and Robin,
I tried with the 2008R1 SVN, still faced the same issue.
*** GNU gettext is required. The latest version
*** is always available from ftp.gnu.org/gnu/gettext/.
make[3]: *** [build-popt-1.13/Makefile] Error 1
make[3]: Leaving directory `/home/sreecha/uClinux-dist-2008R1-SVN-20March/lib/popt'
make[2]: *** [popt] Error 2
make[2]: Leaving directory `/home/sreecha/uClinux-dist-2008R1-SVN-20March/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/sreecha/uClinux-dist-2008R1-SVN-20March/lib'
make: *** [subdirs] Error 1
I think i need to install the gnutext, can you please guide me how to install the gnutext in my distribution. I want to use the oprofile for calculating the mips.
One more thing I tried with trunk version, in that the Oprofile support option is not seen.
Best Regards, Sreedhar
QuoteReplyEditDelete
2009-04-07 15:07:04 Re: Compilation error with Oprofile support enable
Mike Frysinger (UNITED STATES)
Message: 72349
we do not provide distro documentation. if you dont know how to use your distro, then go ask on whatever forums are provided by your distro.
QuoteReplyEditDelete
2009-04-08 03:10:53 Re: Compilation error with Oprofile support enable
Appalayagari Sreedhar (INDIA)
Message: 72384 Hi Mike,
Thankyou.
-Sreedhar
QuoteReplyEditDelete
2009-04-08 05:11:08 Re: Compilation error with Oprofile support enable
Graf Yang (CHINA)
Message: 72393
The oprofile is work for trunk currently.
You only need to turn on "Profiling support" and "OProfile system profiling" in "General setup". The other kernel options is removed. Please refer to,
docs.blackfin.uclinux.org/doku.php?id=linux-kernel:oprofile