Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
linker warnings with google perftools in MAC
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Kevin Ma  
View profile  
 More options May 3 2012, 2:22 am
From: Kevin Ma <k...@webrtc.org>
Date: Wed, 2 May 2012 23:22:21 -0700 (PDT)
Local: Thurs, May 3 2012 2:22 am
Subject: linker warnings with google perftools in MAC
I built google perftools 2.0 in Macbook pro (OS X 10.6.8), and tried
to build my application with -lprofile as a linker option. There's a
warning message saying "ld: warning: ignoring file /Developer/SDKs/
MacOSX10.5.sdk/usr/local/lib/libprofiler.dylib, file was built for
unsupported file format which is not the architecture being linked
(i386)
".
I checked the perftools configure.log, and saw the line "uname -m =
i386". Seems it configured the system right.

In my linux machine, I saw no problem like this.
Any insights?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Chappelle  
View profile  
 More options May 3 2012, 8:04 am
From: David Chappelle <chapp...@gmail.com>
Date: Thu, 3 May 2012 08:04:15 -0400
Local: Thurs, May 3 2012 8:04 am
Subject: Re: linker warnings with google perftools in MAC
Are you sure that the linker is finding the right library? The file it
is complaining about seems to be in a non-standard location.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Ma  
View profile  
 More options May 3 2012, 1:06 pm
From: Kevin Ma <k...@webrtc.org>
Date: Thu, 3 May 2012 10:06:05 -0700 (PDT)
Local: Thurs, May 3 2012 1:06 pm
Subject: Re: linker warnings with google perftools in MAC
I think so. The library at that location is the same binary as what I
built from the source (/opt/gperftools-2.0/.libs/libprofiler.0.dylib).
I also tried to replace the link option "-lprofiler" with "/opt/
gperftools-2.0/.libs/libprofiler.dylib" directly and got the same
warning.

On May 3, 5:04 am, David Chappelle <chapp...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Chappelle  
View profile  
 More options May 3 2012, 1:23 pm
From: David Chappelle <chapp...@gmail.com>
Date: Thu, 3 May 2012 13:23:21 -0400
Local: Thurs, May 3 2012 1:23 pm
Subject: Re: linker warnings with google perftools in MAC
The only other thing I can think of is to make sure that the same
compiler is being used to build both gperftools and the executable
that you are building. Other than that you can try statically linking.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Chappelle  
View profile  
 More options May 3 2012, 1:25 pm
From: David Chappelle <chapp...@gmail.com>
Date: Thu, 3 May 2012 13:25:56 -0400
Local: Thurs, May 3 2012 1:25 pm
Subject: Re: linker warnings with google perftools in MAC
Also wanted to point out this article which seems to implicate that
the target architecture that gperftools is selecting is incorrect. You
can control this with extra arguments to configure.

http://www.qtcentre.org/threads/30670-On-Mac-quot-file-was-built-for-...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Ma  
View profile  
 More options May 3 2012, 4:36 pm
From: Kevin Ma <k...@webrtc.org>
Date: Thu, 3 May 2012 13:36:42 -0700 (PDT)
Local: Thurs, May 3 2012 4:36 pm
Subject: Re: linker warnings with google perftools in MAC
Yes it helps. I set extra arguments to the configure (CXXFLAGS and
CFLAGS with -arch i386) and the problem was gone.
Thank you!

On May 3, 10:25 am, David Chappelle <chapp...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »