* oprofile configure?
@ 2006-09-26 14:34 ` Azer, William
0 siblings, 0 replies; 7+ messages in thread
From: Azer, William @ 2006-09-26 14:34 UTC (permalink / raw)
To: linux-mips
[-- Attachment #1: Type: text/plain, Size: 1709 bytes --]
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 = char, _Traits = std::char_traits<char>, _Alloc = 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 = char, _Traits = std::char_traits<char>, _Alloc = 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 = char, _Traits = std::char_traits<char>, _Alloc = 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
[-- Attachment #2: Type: text/html, Size: 2306 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* oprofile configure?
@ 2006-09-26 14:34 ` Azer, William
0 siblings, 0 replies; 7+ messages in thread
From: Azer, William @ 2006-09-26 14:34 UTC (permalink / raw)
To: linux-mips
[-- Attachment #1: Type: text/plain, Size: 1709 bytes --]
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 = char, _Traits = std::char_traits<char>, _Alloc = 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 = char, _Traits = std::char_traits<char>, _Alloc = 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 = char, _Traits = std::char_traits<char>, _Alloc = 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
[-- Attachment #2: Type: text/html, Size: 2306 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: oprofile configure?
2006-09-26 14:34 ` Azer, William
(?)
@ 2006-09-27 21:49 ` Jim Wilson
2006-09-27 22:05 ` Azer, William
-1 siblings, 1 reply; 7+ messages in thread
From: Jim Wilson @ 2006-09-27 21:49 UTC (permalink / raw)
To: Azer, William; +Cc: 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: oprofile configure?
@ 2006-09-27 22:05 ` Azer, William
0 siblings, 0 replies; 7+ messages in thread
From: Azer, William @ 2006-09-27 22:05 UTC (permalink / raw)
To: Jim Wilson; +Cc: linux-mips
[-- Attachment #1: Type: text/plain, Size: 1870 bytes --]
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=oprofile
VERSION=0.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
[-- Attachment #2: Type: text/html, Size: 2617 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: oprofile configure?
@ 2006-09-27 22:05 ` Azer, William
0 siblings, 0 replies; 7+ messages in thread
From: Azer, William @ 2006-09-27 22:05 UTC (permalink / raw)
To: Jim Wilson; +Cc: linux-mips
[-- Attachment #1: Type: text/plain, Size: 1870 bytes --]
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=oprofile
VERSION=0.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
[-- Attachment #2: Type: text/html, Size: 2617 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: oprofile configure?
2006-09-27 22:05 ` Azer, William
(?)
@ 2006-09-27 22:15 ` Jim Wilson
-1 siblings, 0 replies; 7+ messages in thread
From: Jim Wilson @ 2006-09-27 22:15 UTC (permalink / raw)
To: Azer, William; +Cc: 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: oprofile configure?
2006-09-26 14:34 ` Azer, William
(?)
(?)
@ 2006-09-28 14:53 ` Ralf Baechle
-1 siblings, 0 replies; 7+ messages in thread
From: Ralf Baechle @ 2006-09-28 14:53 UTC (permalink / raw)
To: Azer, William; +Cc: 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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-09-28 14:53 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-26 14:34 oprofile configure? Azer, William
2006-09-26 14:34 ` Azer, William
2006-09-27 21:49 ` Jim Wilson
2006-09-27 22:05 ` Azer, William
2006-09-27 22:05 ` Azer, William
2006-09-27 22:15 ` Jim Wilson
2006-09-28 14:53 ` Ralf Baechle
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.