2009-04-15 00:49:08     oprofile compillation error in svn trunk

Document created by Aaronwu Employee on Aug 15, 2013
Version 1Show Document
  • View in full screen mode

2009-04-15 00:49:08     oprofile compillation error in svn trunk

svs k (INDIA)

Message: 72658   

 

Hi all,

 

I m using svn trunk distribution and corresponding toolchain. I tried to enable Kernel space and user space options for oprofile. I  m getting the following compilation error.  Can anyone help me why i m getting problem with cpp files compilation?

 

 

 

bfin-uclinux-g++ -DHAVE_CONFIG_H -I. -I.. -I../../oprofile-0.9.1/libutil++  -I ../../oprofile-0.9.1/libutil -I ../../oprofile-0.9.1/libop -DEMBED -D__uClinux__ -I/home/svnsankari/DISTRIBUTION/uclinux-dist-trunk-svn-7856-sreedhar  -mcpu=bf527-0.2 -I../../oprofile-0.9.1/include -W -Wall -fno-common -ftemplate-depth-50 -pipe -Wall -g -O2  -mcpu=bf527-0.2 -c -o bfd_support.o ../../oprofile-0.9.1/libutil++/bfd_support.cpp

../../oprofile-0.9.1/libutil++/op_bfd.cpp:19:19: error: cstdlib: No such file or directory

../../oprofile-0.9.1/libutil++/op_bfd.cpp:21:21: error: algorithm: No such file or directory

../../oprofile-0.9.1/libutil++/op_bfd.cpp:22:20: error: iostream: No such file or directory

../../oprofile-0.9.1/libutil++/op_bfd.cpp:23:19: error: iomanip: No such file or directory

In file included from ../../oprofile-0.9.1/libutil++/op_bfd.cpp:24:

../../oprofile-0.9.1/include/sstream:31:22: error: iostream.h: No such file or directory

../../oprofile-0.9.1/include/sstream:32:23: error: streambuf.h: No such file or directory

../../oprofile-0.9.1/include/sstream:33:18: error: string: No such file or directory

In file included from ../../oprofile-0.9.1/libutil++/op_bfd.cpp:26:

../../oprofile-0.9.1/libutil++/op_bfd.h:17:18: error: vector: No such file or directory

../../oprofile-0.9.1/libutil++/op_bfd.h:19:16: error: list: No such file or directory

../../oprofile-0.9.1/libutil++/op_bfd.h:20:15: error: map: No such file or directory

In file included from ../../oprofile-0.9.1/libutil++/bfd_support.h:14,

                 from ../../oprofile-0.9.1/libutil++/op_bfd.h:22,

                 from ../../oprofile-0.9.1/libutil++/op_bfd.cpp:26:

../../oprofile-0.9.1/libutil++/utility.h:15:19: error: cstddef: No such file or directory

In file included from ../../oprofile-0.9.1/libutil++/cached_value.h:14,

                 from ../../oprofile-0.9.1/libutil++/op_bfd.h:24,

                 from ../../oprofile-0.9.1/libutil++/op_bfd.cpp:26:

../../oprofile-0.9.1/libutil++/op_exception.h:21:21: error: stdexcept: No such file or directory

In file included from ../../oprofile-0.9.1/libutil++/op_bfd.cpp:29:

 

QuoteReplyEditDelete

 

 

2009-04-15 06:04:53     Re: oprofile compillation error in svn trunk

Graf Yang (CHINA)

Message: 72681   

 

My build is successful.

 

$ bfin-uclinux-g++  -v

Using built-in specs.

Target: bfin-uclinux

Configured with: /usr/src/packages/BUILD/blackfin-toolchain-09r1/../gcc-4.1/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=bfin-uclinux --prefix=/opt/uClinux/bfin-uclinux --enable-threads=posix --with-sysroot=/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime --disable-libstdcxx-pch --disable-symvers --disable-libssp --disable-libffi --enable-clocale=generic --enable-version-specific-runtime-libs --enable-__cxa_atexit --with-bugurl=URL:  blackfin.uclinux.org/gf/project/toolchain/tracker --with-pkgversion=ADI-09r1-5

Thread model: posix

gcc version 4.1.2 (ADI svn)

 

$ svn info

Path: .

URL: svn://10.99.22.20/uclinux-dist/trunk

Repository Root: svn://10.99.22.20/uclinux-dist

Repository UUID: 3e2a5524-39e8-4cb9-84a9-c49da69cba3a

Revision: 7972

Node Kind: directory

Schedule: normal

Last Changed Author: rgetz

Last Changed Rev: 7972

Last Changed Date: 2009-04-14 03:37:06 +0800 (Tue, 14 Apr 2009)

 

 

 

Making install in libutil++

make[5]: Entering directory `/opt/bfin/trunk/user/oprofile/build-oprofile-0.9.1/libutil++'

Making install in .

make[6]: Entering directory `/opt/bfin/trunk/user/oprofile/build-oprofile-0.9.1/libutil++'

bfin-uclinux-g++ -DHAVE_CONFIG_H -I. -I.. -I../../oprofile-0.9.1/libutil++  -I ../../oprofile-0.9.1/libutil -I ../../oprofile-0.9.1/libop -DEMBED -D__uClinux__ -I/opt/bfin/trunk  -mcpu=bf533-0.3 -W -Wall -fno-common -ftemplate-depth-50 -pipe -Wall -g -O2  -mcpu=bf533-0.3 -c -o op_bfd.o ../../oprofile-0.9.1/libutil++/op_bfd.cpp

bfin-uclinux-g++ -DHAVE_CONFIG_H -I. -I.. -I../../oprofile-0.9.1/libutil++  -I ../../oprofile-0.9.1/libutil -I ../../oprofile-0.9.1/libop -DEMBED -D__uClinux__ -I/opt/bfin/trunk  -mcpu=bf533-0.3 -W -Wall -fno-common -ftemplate-depth-50 -pipe -Wall -g -O2  -mcpu=bf533-0.3 -c -o bfd_support.o ../../oprofile-0.9.1/libutil++/bfd_support.cpp

bfin-uclinux-g++ -DHAVE_CONFIG_H -I. -I.. -I../../oprofile-0.9.1/libutil++  -I ../../oprofile-0.9.1/libutil -I ../../oprofile-0.9.1/libop -DEMBED -D__uClinux__ -I/opt/bfin/trunk  -mcpu=bf533-0.3 -W -Wall -fno-common -ftemplate-depth-50 -pipe -Wall -g -O2  -mcpu=bf533-0.3 -c -o string_filter.o ../../oprofile-0.9.1/libutil++/string_filter.cpp

bfin-uclinux-g++ -DHAVE_CONFIG_H -I. -I.. -I../../oprofile-0.9.1/libutil++  -I ../../oprofile-0.9.1/libutil -I ../../oprofile-0.9.1/libop -DEMBED -D__uClinux__ -I/opt/bfin/trunk  -mcpu=bf533-0.3 -W -Wall -fno-common -ftemplate-depth-50 -pipe -Wall -g -O2  -mcpu=bf533-0.3 -c -o glob_filter.o ../../oprofile-0.9.1/libutil++/glob_filter.cpp

 

Are you usig gcc 4.3?

 

 

QuoteReplyEditDelete

 

 

2009-04-20 15:48:05     Re: oprofile compillation error in svn trunk

Mike Frysinger (UNITED STATES)

Message: 72906   

 

did you install all the toolchain packages according to the documentation ?

 

i just tested trunk with gcc 4.1 and 4.3 and it worked for me

QuoteReplyEditDelete

 

 

2009-04-21 01:52:11     Re: oprofile compillation error in svn trunk

svs k (INDIA)

Message: 72921   

 

Hi Mike,

 

I compiled previously with GCC 4.1 alone and i was able to compile toolchain successfully. But when i tried to build with gcc 4.3 i got the following error during compilation of toolchain. I have also attached the log file with this.

 

./BuildToolChain -s /home/svnsankari/TOOLCHAIN/toolchain/  -k /home/svnsankari/DISTRIBUTION/uclinux-dist-trunk-svn-7856-sreedhar/linux-2.6.x/ -u /home/svnsankari/U-BOOT/u-boot-trunk-svn-1696/u-boot-1.1.6/ -b /usr/src/packages/BUILD/blackfin-toolchain-09r1/ -o /opt/uClinux-SVN/bfin -c 4.3 -c 4.1 -j 1

 

 

Checking for development packages (skip checks with the -D option)

Found multiple versions of awk, using the one at /usr/bin/awk

Found multiple versions of grep, using the one at /usr/bin/grep

Found multiple versions of sed, using the one at /usr/bin/sed

Building gcc versions  4.3 4.1

Utilizing make: make -j1

Removing /opt/uClinux1/bfin-uclinux/bin/ from the PATH

Removing /opt/uClinux1/bfin-linux-uclibc/bin from the PATH

Removing /opt/uClinux1/bfin-elf/bin from the PATH

Toolchain source is at      /home/svnsankari/TOOLCHAIN/toolchain

Kernel source is at         /home/svnsankari/DISTRIBUTION/uclinux-dist-trunk-svn-7856-sreedhar/linux-2.6.x/

Build will be done in       /usr/src/packages/BUILD/blackfin-toolchain-09r1

Path to elf output dir      /opt/uClinux-SVN/bfin-elf

/opt/uClinux-SVN/bfin-elf already exists - cleaning

Path to binutils dir        /home/svnsankari/TOOLCHAIN/toolchain/binutils-2.17

Path to gcc-4.3 dir         /home/svnsankari/TOOLCHAIN/toolchain/gcc-4.3

Path to gcc-4.1 dir         /home/svnsankari/TOOLCHAIN/toolchain/gcc-4.1

Path to elf2flt dir         /home/svnsankari/TOOLCHAIN/toolchain/elf2flt

Path to uClibc dir          /home/svnsankari/TOOLCHAIN/toolchain/uClibc

    uClibc CFLAGS           -g -O2

Path to ldr-utils           /home/svnsankari/TOOLCHAIN/toolchain/ldr-utils

Path to gdbproxy            /home/svnsankari/TOOLCHAIN/toolchain/gdbproxy

Path to libftdi             /home/svnsankari/TOOLCHAIN/toolchain/libftdi

Path to jtag                /home/svnsankari/TOOLCHAIN/toolchain/jtag

Path to uClinux output dir  /opt/uClinux-SVN/bfin-uclinux

/opt/uClinux-SVN/bfin-uclinux already exists - cleaning

Path to linux-uClibc output dir /opt/uClinux-SVN/bfin-linux-uclibc

/opt/uClinux-SVN/bfin-linux-uclibc already exists - cleaning

Path to kernel output dir   /usr/src/packages/BUILD/blackfin-toolchain-09r1/kernel_build

/usr/src/packages/BUILD/blackfin-toolchain-09r1/kernel_build already exists - cleaning

Path to U-Boot Source       /home/svnsankari/U-BOOT/u-boot-trunk-svn-1696/u-boot-1.1.6/

Path to uClibc Config files /home/svnsankari/TOOLCHAIN/toolchain/uClibc/extra/Configs/

Creating log file           /usr/src/packages/BUILD/blackfin-toolchain-09r1/logs/log

*** Configuring elf Binutils & GDB                  Tue Apr 21 11:10:01 IST 2009

*** Building elf Binutils & GDB                     Tue Apr 21 11:10:05 IST 2009

*** Installing elf Binutils & GDB                   Tue Apr 21 11:18:38 IST 2009

*** Building elf elf2flt                            Tue Apr 21 11:19:01 IST 2009

*** Make elf elf2flt                                Tue Apr 21 11:19:06 IST 2009

*** Installing elf elf2flt                          Tue Apr 21 11:19:07 IST 2009

*** Linking newlib and libgloss                     Tue Apr 21 11:19:07 IST 2009

*** Configuring GCC (4.3)                           Tue Apr 21 11:19:07 IST 2009

Please report an error to   blackfin.uclinux.org/gf/project/toolchain

Build error Tue Apr 21 11:19:09 IST 2009

  occurred 9m9s into script

tar: Removing leading `/' from member names

When reporting issue, we may ask for /usr/src/packages/BUILD/blackfin-toolchain-09r1/logs/config.logs.tbz2

Last logfile entries:

checking how to compare bootstrapped objects... tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2

checking for correct version of gmp.h... no

configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.

Try the --with-gmp and/or --with-mpfr options to specify their locations.

Copies of these libraries' source code can be found at their respective

hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.

See also   gcc.gnu.org/install/prerequisites.html for additional info.

If you obtained GMP and/or MPFR from a vendor distribution package, make

sure that you have installed both the libraries and the header files.

They may be located in separate packages.

 

 

log

QuoteReplyEditDelete

 

 

2009-04-21 08:22:05     Re: oprofile compillation error in svn trunk

Robin Getz (UNITED STATES)

Message: 72980   

 

svs:

 

Did you do like the error indicated?

 

configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.

 

You need to upgrade your host - there isn't anything we can do to change that.

 

-Robin

Attachments

Outcomes