From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 26 Sep 2006 15:34:20 +0100 (BST) Received: from smtp-out.sigp.net ([63.237.78.44]:45820 "EHLO smtp-out.sigp.net") by ftp.linux-mips.org with ESMTP id S20037584AbWIZOeQ (ORCPT ); Tue, 26 Sep 2006 15:34:16 +0100 Received: from gamd-ex-001.ss.drs.master (gamd-ex-001.ss.drs.master [172.22.132.94]) by smtp-out.sigp.net (8.13.1/8.13.6) with ESMTP id k8QEYCOH011947 for ; Tue, 26 Sep 2006 10:34:15 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6E178.D5788177" Subject: oprofile configure? Date: Tue, 26 Sep 2006 10:34:12 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: oprofile configure? Thread-Index: AcbheNVzisvHJh+ZQrC/gpAimQjepw== From: "Azer, William" To: Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 12672 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: Bill.Azer@drs-ss.com Precedence: bulk X-list: linux-mips This is a multi-part message in MIME format. ------_=_NextPart_001_01C6E178.D5788177 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, i have natively built oprofile for sb1 platform and i get a lot of = warnings from the compiler. i had to use --disable-werror in order to = build. has anyone encountered this? am i doing something wrong? i did compile, install and run. thx, Bill Azer if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I ../libutil -I ../libop -W -Wall = -fno-common -ftemplate-depth-50 -g -O2 -MT op_exception.o -MD -MP -MF = ".deps/op_exception.Tpo" -c -o op_exception.o op_exception.cpp; \ then mv -f ".deps/op_exception.Tpo" ".deps/op_exception.Po"; else rm -f = ".deps/op_exception.Tpo"; exit 1; fi /usr/lib32/gcc/mips64-montavista-linux/3.4.3/../../../../include/c++/3.4.= 3/bits/basic_string.h: In static member function `static = std::basic_string<_CharT, _Traits, _Alloc>::_Rep& = std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_empty_rep() [with = _CharT =3D char, _Traits =3D std::char_traits, _Alloc =3D = std::allocator]': /usr/lib32/gcc/mips64-montavista-linux/3.4.3/../../../../include/c++/3.4.= 3/bits/basic_string.h:215: instantiated from `void = std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_dispose(const = _Alloc&) [with _CharT =3D char, _Traits =3D std::char_traits, = _Alloc =3D std::allocator]' /usr/lib32/gcc/mips64-montavista-linux/3.4.3/../../../../include/c++/3.4.= 3/bits/basic_string.h:418: instantiated from = `std::basic_string<_CharT, _Traits, _Alloc>::~basic_string() [with = _CharT =3D char, _Traits =3D std::char_traits, _Alloc =3D = std::allocator]' op_exception.cpp:21: instantiated from here /usr/lib32/gcc/mips64-montavista-linux/3.4.3/../../../../include/c++/3.4.= 3/bits/basic_string.h:178: warning: dereferencing type-punned pointer = will break strict-aliasing rules ------_=_NextPart_001_01C6E178.D5788177 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable oprofile configure?

Hi,

i have natively built oprofile for sb1 platform and i get a lot of = warnings from the compiler.  i had to use --disable-werror in order = to build.  has anyone encountered this?  am i doing something = wrong?

i did compile, install and run.

thx,

Bill Azer


if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I ../libutil -I = ../libop  -W -Wall -fno-common -ftemplate-depth-50 -g -O2 -MT = op_exception.o -MD -MP -MF ".deps/op_exception.Tpo" -c -o = op_exception.o op_exception.cpp; \
then mv -f ".deps/op_exception.Tpo" = ".deps/op_exception.Po"; else rm -f = ".deps/op_exception.Tpo"; exit 1; fi
/usr/lib32/gcc/mips64-montavista-linux/3.4.3/../../../../include/c++/3.4.= 3/bits/basic_string.h: In static member function `static = std::basic_string<_CharT, _Traits, _Alloc>::_Rep& = std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_empty_rep() = [with _CharT =3D char, _Traits =3D std::char_traits<char>, _Alloc = =3D std::allocator<char>]':
/usr/lib32/gcc/mips64-montavista-linux/3.4.3/../../../../include/c++/3.4.= 3/bits/basic_string.h:215:   instantiated from `void = std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_dispose(const = _Alloc&) [with _CharT =3D char, _Traits =3D = std::char_traits<char>, _Alloc =3D = std::allocator<char>]'
/usr/lib32/gcc/mips64-montavista-linux/3.4.3/../../../../include/c++/3.4.= 3/bits/basic_string.h:418:   instantiated from = `std::basic_string<_CharT, _Traits, _Alloc>::~basic_string() [with = _CharT =3D char, _Traits =3D std::char_traits<char>, _Alloc =3D = std::allocator<char>]'
op_exception.cpp:21:   instantiated from here
/usr/lib32/gcc/mips64-montavista-linux/3.4.3/../../../../include/c++/3.4.= 3/bits/basic_string.h:178: warning: dereferencing type-punned pointer = will break strict-aliasing rules

------_=_NextPart_001_01C6E178.D5788177-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 27 Sep 2006 22:49:50 +0100 (BST) Received: from w099.z064220152.sjc-ca.dsl.cnc.net ([64.220.152.99]:46288 "EHLO bluesmobile.corp.specifix.com") by ftp.linux-mips.org with ESMTP id S20039031AbWI0Vtt (ORCPT ); Wed, 27 Sep 2006 22:49:49 +0100 Received: from localhost.localdomain (bluesmobile.specifix.com [64.220.152.99]) by bluesmobile.corp.specifix.com (Postfix) with ESMTP id 5791B3B82F; Wed, 27 Sep 2006 14:44:41 -0700 (PDT) Subject: Re: oprofile configure? From: Jim Wilson To: "Azer, William" Cc: linux-mips@linux-mips.org In-Reply-To: References: Content-Type: text/plain Date: Wed, 27 Sep 2006 14:49:18 -0700 Message-Id: <1159393758.3181.26.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 (2.6.3-1.fc5.5) Content-Transfer-Encoding: 7bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 12701 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: wilson@specifix.com Precedence: bulk X-list: linux-mips On Tue, 2006-09-26 at 10:34 -0400, Azer, William wrote: > i have natively built oprofile for sb1 platform and i get a lot of > warnings from the compiler. i had to use --disable-werror in order to > build. has anyone encountered this? am i doing something wrong? You didn't mention the oprofile version, the gcc version, or the kernel version, which are the important bits here. I can see from the error messages that you have gcc-3.4.3, and a montavista kernel. > I tried oprofile-0.9.2. I was unable to get -Werror used in the compiler. Looking at the configure script, I see that -Werror is disabled unless you have a snapshot from the cvs tree. Not even --enable-werror can turn it on. I'm guessing that you are using the cvs tree. This looks like a bug in the gcc that you are using. I can't reproduce it on other systems, but I can reproduce it on a similar MontaVista system. I can't reproduce it with later FSF gcc releases on the same MontaVista system. It isn't immediately obvious what changed to fix this. -- Jim Wilson, GNU Tools Support, http://www.specifix.com From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 27 Sep 2006 23:05:54 +0100 (BST) Received: from smtp-out.sigp.net ([63.237.78.44]:63460 "EHLO smtp-out.sigp.net") by ftp.linux-mips.org with ESMTP id S20039046AbWI0WFw (ORCPT ); Wed, 27 Sep 2006 23:05:52 +0100 Received: from gamd-ex-001.ss.drs.master (gamd-ex-001.ss.drs.master [172.22.132.94]) by smtp-out.sigp.net (8.13.1/8.13.6) with ESMTP id k8RM5l5q010195; Wed, 27 Sep 2006 18:05:51 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6E281.15D85B6E" Subject: RE: oprofile configure? Date: Wed, 27 Sep 2006 18:05:47 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: oprofile configure? Thread-Index: AcbifuGZyBwxKkIkQiGCYi9rFx48QQAAClmb References: <1159393758.3181.26.camel@localhost.localdomain> From: "Azer, William" To: "Jim Wilson" Cc: Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 12702 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: Bill.Azer@drs-ss.com Precedence: bulk X-list: linux-mips This is a multi-part message in MIME format. ------_=_NextPart_001_01C6E281.15D85B6E Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Yes, i was using oprofile 0.9.2cvs. I can provide the code. The = -Werror is enabled by default. i have also been having trouble running it with trying to debug a = executable program. i used the opcontrol to tell it the = image,start,dump,stop then i used opreport -l . i couldn't get = the sample data. i tried opannotate and that didn't work either. i have had better luck with gprof. # Define the identity of the package. PACKAGE=3Doprofile VERSION=3D0.9.2cvs i am using 2.6.17.7 from linux-mips.org with gcc 3.4.3 thx, Bill Azer -----Original Message----- From: Jim Wilson [mailto:wilson@specifix.com] Sent: Wed 9/27/2006 5:49 PM To: Azer, William Cc: linux-mips@linux-mips.org Subject: Re: oprofile configure? =20 On Tue, 2006-09-26 at 10:34 -0400, Azer, William wrote: > i have natively built oprofile for sb1 platform and i get a lot of > warnings from the compiler. i had to use --disable-werror in order to > build. has anyone encountered this? am i doing something wrong? You didn't mention the oprofile version, the gcc version, or the kernel version, which are the important bits here. I can see from the error messages that you have gcc-3.4.3, and a montavista kernel. >=20 I tried oprofile-0.9.2. I was unable to get -Werror used in the compiler. Looking at the configure script, I see that -Werror is disabled unless you have a snapshot from the cvs tree. Not even --enable-werror can turn it on. I'm guessing that you are using the cvs tree. This looks like a bug in the gcc that you are using. I can't reproduce it on other systems, but I can reproduce it on a similar MontaVista system. I can't reproduce it with later FSF gcc releases on the same MontaVista system. It isn't immediately obvious what changed to fix this. --=20 Jim Wilson, GNU Tools Support, http://www.specifix.com ------_=_NextPart_001_01C6E281.15D85B6E Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: oprofile configure?

Yes, i was using oprofile 0.9.2cvs.  I can = provide the code.  The -Werror is enabled by default.

i have also been having trouble running it with trying to debug a = executable program.  i used the opcontrol to tell it the = image,start,dump,stop  then i used opreport -l <image>.  = i couldn't get the sample data.  i tried opannotate and that didn't = work either.

i have had better luck with gprof.

# Define the identity of the package.
 PACKAGE=3Doprofile
 VERSION=3D0.9.2cvs

i am using 2.6.17.7 from linux-mips.org with gcc 3.4.3


thx,

Bill Azer

-----Original Message-----
From: Jim Wilson [mailto:wilson@specifix.com]
Sent: Wed 9/27/2006 5:49 PM
To: Azer, William
Cc: linux-mips@linux-mips.org
Subject: Re: oprofile configure?

On Tue, 2006-09-26 at 10:34 -0400, Azer, William wrote:
> i have natively built oprofile for sb1 platform and i get a lot = of
> warnings from the compiler.  i had to use --disable-werror in = order to
> build.  has anyone encountered this?  am i doing = something wrong?

You didn't mention the oprofile version, the gcc version, or the = kernel
version, which are the important bits here.  I can see from the = error
messages that you have gcc-3.4.3, and a montavista kernel.
>
I tried oprofile-0.9.2.  I was unable to get -Werror used in = the
compiler.  Looking at the configure script, I see that -Werror = is
disabled unless you have a snapshot from the cvs tree.  Not = even
--enable-werror can turn it on.  I'm guessing that you are using = the cvs
tree.

This looks like a bug in the gcc that you are using.  I can't = reproduce
it on other systems, but I can reproduce it on a similar MontaVista
system.  I can't reproduce it with later FSF gcc releases on the = same
MontaVista system.  It isn't immediately obvious what changed to = fix
this.
--
Jim Wilson, GNU Tools Support, http://www.specifix.com


------_=_NextPart_001_01C6E281.15D85B6E-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 27 Sep 2006 23:15:33 +0100 (BST) Received: from w099.z064220152.sjc-ca.dsl.cnc.net ([64.220.152.99]:56528 "EHLO bluesmobile.corp.specifix.com") by ftp.linux-mips.org with ESMTP id S20039030AbWI0WPb (ORCPT ); Wed, 27 Sep 2006 23:15:31 +0100 Received: from localhost.localdomain (bluesmobile.specifix.com [64.220.152.99]) by bluesmobile.corp.specifix.com (Postfix) with ESMTP id 34E883B84A; Wed, 27 Sep 2006 15:10:36 -0700 (PDT) Subject: RE: oprofile configure? From: Jim Wilson To: "Azer, William" Cc: linux-mips@linux-mips.org In-Reply-To: References: <1159393758.3181.26.camel@localhost.localdomain> Content-Type: text/plain Date: Wed, 27 Sep 2006 15:15:13 -0700 Message-Id: <1159395313.3181.29.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 (2.6.3-1.fc5.5) Content-Transfer-Encoding: 7bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 12703 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: wilson@specifix.com Precedence: bulk X-list: linux-mips On Wed, 2006-09-27 at 18:05 -0400, Azer, William wrote: > i have also been having trouble running it with trying to debug a > executable program. oprofile not working is probably not a gcc problem, and hence probably outside my area of expertise. I don't have much experience with oprofile. I was just looking at the gcc issue that you noticed. -- Jim Wilson, GNU Tools Support, http://www.specifix.com From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Thu, 28 Sep 2006 15:53:05 +0100 (BST) Received: from localhost.localdomain ([127.0.0.1]:10724 "EHLO dl5rb.ham-radio-op.net") by ftp.linux-mips.org with ESMTP id S20039073AbWI1OxB (ORCPT ); Thu, 28 Sep 2006 15:53:01 +0100 Received: from denk.linux-mips.net (denk.linux-mips.net [127.0.0.1]) by dl5rb.ham-radio-op.net (8.13.7/8.13.7) with ESMTP id k8SErsoL002265; Thu, 28 Sep 2006 15:53:54 +0100 Received: (from ralf@localhost) by denk.linux-mips.net (8.13.7/8.13.7/Submit) id k8SErqRR002264; Thu, 28 Sep 2006 15:53:52 +0100 Date: Thu, 28 Sep 2006 15:53:52 +0100 From: Ralf Baechle To: "Azer, William" Cc: linux-mips@linux-mips.org Subject: Re: oprofile configure? Message-ID: <20060928145352.GC3394@linux-mips.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 12718 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: ralf@linux-mips.org Precedence: bulk X-list: linux-mips On Tue, Sep 26, 2006 at 10:34:12AM -0400, Azer, William wrote: > i have natively built oprofile for sb1 platform and i get a lot of warnings from the compiler. i had to use --disable-werror in order to build. has anyone encountered this? am i doing something wrong? For a long time there has been no release of oprofile so only versions from CVS did work on MIPS: However there has been a release of 0.9.2 on September 15 which so I hope is the first release of oprofile that will work out of the box for MIPS. I believe -Werror is a remarkably bad idea for any software release no matter how beneficial it may be during development ... Ralf From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-out.sigp.net ([63.237.78.44]:45820 "EHLO smtp-out.sigp.net") by ftp.linux-mips.org with ESMTP id S20037584AbWIZOeQ (ORCPT ); Tue, 26 Sep 2006 15:34:16 +0100 Received: from gamd-ex-001.ss.drs.master (gamd-ex-001.ss.drs.master [172.22.132.94]) by smtp-out.sigp.net (8.13.1/8.13.6) with ESMTP id k8QEYCOH011947 for ; Tue, 26 Sep 2006 10:34:15 -0400 (EDT) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6E178.D5788177" Subject: oprofile configure? Date: Tue, 26 Sep 2006 10:34:12 -0400 Message-ID: From: "Azer, William" Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org To: linux-mips@linux-mips.org Message-ID: <20060926143412.hL1m3fkyJ1ldFYJUeK9Albr5qfOqdcnFLRucmmeml28@z> This is a multi-part message in MIME format. ------_=_NextPart_001_01C6E178.D5788177 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, i have natively built oprofile for sb1 platform and i get a lot of = warnings from the compiler. i had to use --disable-werror in order to = build. has anyone encountered this? am i doing something wrong? i did compile, install and run. thx, Bill Azer if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I ../libutil -I ../libop -W -Wall = -fno-common -ftemplate-depth-50 -g -O2 -MT op_exception.o -MD -MP -MF = ".deps/op_exception.Tpo" -c -o op_exception.o op_exception.cpp; \ then mv -f ".deps/op_exception.Tpo" ".deps/op_exception.Po"; else rm -f = ".deps/op_exception.Tpo"; exit 1; fi /usr/lib32/gcc/mips64-montavista-linux/3.4.3/../../../../include/c++/3.4.= 3/bits/basic_string.h: In static member function `static = std::basic_string<_CharT, _Traits, _Alloc>::_Rep& = std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_empty_rep() [with = _CharT =3D char, _Traits =3D std::char_traits, _Alloc =3D = std::allocator]': /usr/lib32/gcc/mips64-montavista-linux/3.4.3/../../../../include/c++/3.4.= 3/bits/basic_string.h:215: instantiated from `void = std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_dispose(const = _Alloc&) [with _CharT =3D char, _Traits =3D std::char_traits, = _Alloc =3D std::allocator]' /usr/lib32/gcc/mips64-montavista-linux/3.4.3/../../../../include/c++/3.4.= 3/bits/basic_string.h:418: instantiated from = `std::basic_string<_CharT, _Traits, _Alloc>::~basic_string() [with = _CharT =3D char, _Traits =3D std::char_traits, _Alloc =3D = std::allocator]' op_exception.cpp:21: instantiated from here /usr/lib32/gcc/mips64-montavista-linux/3.4.3/../../../../include/c++/3.4.= 3/bits/basic_string.h:178: warning: dereferencing type-punned pointer = will break strict-aliasing rules ------_=_NextPart_001_01C6E178.D5788177 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable oprofile configure?

Hi,

i have natively built oprofile for sb1 platform and i get a lot of = warnings from the compiler.  i had to use --disable-werror in order = to build.  has anyone encountered this?  am i doing something = wrong?

i did compile, install and run.

thx,

Bill Azer


if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I ../libutil -I = ../libop  -W -Wall -fno-common -ftemplate-depth-50 -g -O2 -MT = op_exception.o -MD -MP -MF ".deps/op_exception.Tpo" -c -o = op_exception.o op_exception.cpp; \
then mv -f ".deps/op_exception.Tpo" = ".deps/op_exception.Po"; else rm -f = ".deps/op_exception.Tpo"; exit 1; fi
/usr/lib32/gcc/mips64-montavista-linux/3.4.3/../../../../include/c++/3.4.= 3/bits/basic_string.h: In static member function `static = std::basic_string<_CharT, _Traits, _Alloc>::_Rep& = std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_empty_rep() = [with _CharT =3D char, _Traits =3D std::char_traits<char>, _Alloc = =3D std::allocator<char>]':
/usr/lib32/gcc/mips64-montavista-linux/3.4.3/../../../../include/c++/3.4.= 3/bits/basic_string.h:215:   instantiated from `void = std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_dispose(const = _Alloc&) [with _CharT =3D char, _Traits =3D = std::char_traits<char>, _Alloc =3D = std::allocator<char>]'
/usr/lib32/gcc/mips64-montavista-linux/3.4.3/../../../../include/c++/3.4.= 3/bits/basic_string.h:418:   instantiated from = `std::basic_string<_CharT, _Traits, _Alloc>::~basic_string() [with = _CharT =3D char, _Traits =3D std::char_traits<char>, _Alloc =3D = std::allocator<char>]'
op_exception.cpp:21:   instantiated from here
/usr/lib32/gcc/mips64-montavista-linux/3.4.3/../../../../include/c++/3.4.= 3/bits/basic_string.h:178: warning: dereferencing type-punned pointer = will break strict-aliasing rules

------_=_NextPart_001_01C6E178.D5788177-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-out.sigp.net ([63.237.78.44]:63460 "EHLO smtp-out.sigp.net") by ftp.linux-mips.org with ESMTP id S20039046AbWI0WFw (ORCPT ); Wed, 27 Sep 2006 23:05:52 +0100 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6E281.15D85B6E" Subject: RE: oprofile configure? Date: Wed, 27 Sep 2006 18:05:47 -0400 Message-ID: References: <1159393758.3181.26.camel@localhost.localdomain> From: "Azer, William" Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org To: Jim Wilson Cc: linux-mips@linux-mips.org Message-ID: <20060927220547.kFHu3nD_ftLEw0swrPaU1NqWKagbfx0UXFkqUzmxqz8@z> This is a multi-part message in MIME format. ------_=_NextPart_001_01C6E281.15D85B6E Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Yes, i was using oprofile 0.9.2cvs. I can provide the code. The = -Werror is enabled by default. i have also been having trouble running it with trying to debug a = executable program. i used the opcontrol to tell it the = image,start,dump,stop then i used opreport -l . i couldn't get = the sample data. i tried opannotate and that didn't work either. i have had better luck with gprof. # Define the identity of the package. PACKAGE=3Doprofile VERSION=3D0.9.2cvs i am using 2.6.17.7 from linux-mips.org with gcc 3.4.3 thx, Bill Azer -----Original Message----- From: Jim Wilson [mailto:wilson@specifix.com] Sent: Wed 9/27/2006 5:49 PM To: Azer, William Cc: linux-mips@linux-mips.org Subject: Re: oprofile configure? =20 On Tue, 2006-09-26 at 10:34 -0400, Azer, William wrote: > i have natively built oprofile for sb1 platform and i get a lot of > warnings from the compiler. i had to use --disable-werror in order to > build. has anyone encountered this? am i doing something wrong? You didn't mention the oprofile version, the gcc version, or the kernel version, which are the important bits here. I can see from the error messages that you have gcc-3.4.3, and a montavista kernel. >=20 I tried oprofile-0.9.2. I was unable to get -Werror used in the compiler. Looking at the configure script, I see that -Werror is disabled unless you have a snapshot from the cvs tree. Not even --enable-werror can turn it on. I'm guessing that you are using the cvs tree. This looks like a bug in the gcc that you are using. I can't reproduce it on other systems, but I can reproduce it on a similar MontaVista system. I can't reproduce it with later FSF gcc releases on the same MontaVista system. It isn't immediately obvious what changed to fix this. --=20 Jim Wilson, GNU Tools Support, http://www.specifix.com ------_=_NextPart_001_01C6E281.15D85B6E Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: oprofile configure?

Yes, i was using oprofile 0.9.2cvs.  I can = provide the code.  The -Werror is enabled by default.

i have also been having trouble running it with trying to debug a = executable program.  i used the opcontrol to tell it the = image,start,dump,stop  then i used opreport -l <image>.  = i couldn't get the sample data.  i tried opannotate and that didn't = work either.

i have had better luck with gprof.

# Define the identity of the package.
 PACKAGE=3Doprofile
 VERSION=3D0.9.2cvs

i am using 2.6.17.7 from linux-mips.org with gcc 3.4.3


thx,

Bill Azer

-----Original Message-----
From: Jim Wilson [mailto:wilson@specifix.com]
Sent: Wed 9/27/2006 5:49 PM
To: Azer, William
Cc: linux-mips@linux-mips.org
Subject: Re: oprofile configure?

On Tue, 2006-09-26 at 10:34 -0400, Azer, William wrote:
> i have natively built oprofile for sb1 platform and i get a lot = of
> warnings from the compiler.  i had to use --disable-werror in = order to
> build.  has anyone encountered this?  am i doing = something wrong?

You didn't mention the oprofile version, the gcc version, or the = kernel
version, which are the important bits here.  I can see from the = error
messages that you have gcc-3.4.3, and a montavista kernel.
>
I tried oprofile-0.9.2.  I was unable to get -Werror used in = the
compiler.  Looking at the configure script, I see that -Werror = is
disabled unless you have a snapshot from the cvs tree.  Not = even
--enable-werror can turn it on.  I'm guessing that you are using = the cvs
tree.

This looks like a bug in the gcc that you are using.  I can't = reproduce
it on other systems, but I can reproduce it on a similar MontaVista
system.  I can't reproduce it with later FSF gcc releases on the = same
MontaVista system.  It isn't immediately obvious what changed to = fix
this.
--
Jim Wilson, GNU Tools Support, http://www.specifix.com


------_=_NextPart_001_01C6E281.15D85B6E--