Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Re: Ruby & gprof and thread.so undefined reference torb_thread_critical
John Carter
3/28/2007 3:38:00 AM
1 Answer
M. Edward (Ed) Borasky
3/28/2007 4:35:00 AM
0
John Carter wrote:
> Thanks for your suggestions, alas, it didn't resolve the issue.
>
> On Wed, 28 Mar 2007, M. Edward (Ed) Borasky wrote:
>
>> 1. Recompile without the -O2 and see if it goes away.
>
> Alas not.
>
>> 2. If the recompiled (and stock Ruby) work, it's a GCC problem. If
>> the recompiled doesn't work and the stock Ruby does, check your
>> configuration parameters on your profiling build.
>
> Compiling without -pg works fine. Compiling with -pg and
> --disable-shared fails.
I'm not familiar with "disable-shared", but I suspect it builds static
libraries instead of shared ones. I think you *want* shared libraries.
But if "-pg" is the problem, it's probably GCC. I've got 4.1.2 on my
(Gentoo) systems and I've never seen a problem like this with "-pg". The
only issue I've had at all is that both Ruby and Tcl/Tk have to be built
either with threads or without threads -- you can't mix them.
This works on my box:
# build profiling Ruby
mkdir profiling-ruby-build
cd profiling-ruby-build
CFLAGS='-g -pg' ../ruby/configure --disable-install-doc --enable-pthread
--prefix=/home/test/profiling-ruby
make; make install
>
>> By the way, what version of GCC are you using?
> gcc-4.1.2 ubuntu edgy eft
>
>> And are you building the non-profiling Ruby from source too?
> Yip, works fine.
>
>> If God had meant for carrots to be eaten cooked, He would have given
>> rabbits fire.
>
> He gave us fire so we can eat carrots in the form of cooked rabbits?
>
> Thanks!
>
> John Carter Phone : (64)(3) 358 6639
> Tait Electronics Fax : (64)(3) 359 4632
> PO Box 1645 Christchurch Email : john.carter@tait.co.nz
> New Zealand
>
>
>
--
M. Edward (Ed) Borasky, FBG, AB, PTA, PGS, MS, MNLP, NST, ACMC(P)
http://borasky-research.blo...
If God had meant for carrots to be eaten cooked, He would have given rabbits fire.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Ruby & gprof and thread.so undefined reference torb_thread_critical
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password