LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-18-2013, 03:10 AM   #1
xtophertaito
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Rep: Reputation: Disabled
valgrind cannot build in lion(10.8)


I am install valgrind and got this with make command:


m_ume/macho.c: In function ‘load_thin_file’:
m_ume/macho.c:562: error: ‘LC_MAIN’ undeclared (first use in this function)
m_ume/macho.c:562: error: (Each undeclared identifier is reported only once
m_ume/macho.c:562: error: for each function it appears in.)
m_ume/macho.c:569: error: dereferencing pointer to incomplete type
make[3]: *** [libcoregrind_amd64_darwin_a-macho.o] Error 1
make[2]: *** [install] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2
Thx
 
Old 04-18-2013, 09:43 AM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,862
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
Exactly what did you download, from where, how did you run ./configure, what platform do you have... Not everyone here is mind-reader.

Just for the record: valgind-3.8.1 doesn't compile for me either (x86_64, Debian-6.0.5, gcc 4.4.5)
Code:
gcc -Wno-long-long  -Wno-pointer-sign -fno-stack-protector \
              -Wbad-function-cast -Wcast-qual -Wcast-align -fstrict-aliasing \
              -m64 -mpreferred-stack-boundary=2 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -fno-builtin -fomit-frame-pointer \
                                -O -S -o auxprogs/genoffsets.s \
                                         auxprogs/genoffsets.c
auxprogs/genoffsets.c:1: error: -mpreferred-stack-boundary=2 is not between 4 and 12

Last edited by NevemTeve; 04-18-2013 at 10:13 AM.
 
1 members found this post helpful.
Old 04-18-2013, 12:13 PM   #3
xtophertaito
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
here is website i use:http://prateekvjoshi.wordpress.com
How to install valgrind on mac.
I kick-start:
>> cd valgrind
>> ./autogen.sh
>> ./configure
>> make
>> sudo make install

My os is 10.8,x86/64 bit.I installed gcc and Xcode with CLT.The are all fine.
Every step was cool until make command.I wasted all time searching internet
without success.
Please can you suggest the way forward.
thx
 
Old 04-18-2013, 12:51 PM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,862
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
It is not clear to me where LC_MAIN should come from (not from valgrind itself).
If I were you, I'd change line 561 in the mentioned file:

Code:
old:#if   DARWIN_VERS == DARWIN_10_8
new:#if   DARWIN_VERS == DARWIN_10_8 && defined(LC_MAIN)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing linux on MAC OS X - Lion lex1367 Linux - Newbie 2 11-01-2012 09:21 AM
OpenGL (non-GLUT) on OSX Lion using C++ fcdev Programming 2 11-03-2011 06:50 PM
Apple goes download only for Lion Jeebizz Linux - News 0 07-20-2011 11:10 AM
LXer: The Lion has Lost the Magic LXer Syndicated Linux News 0 10-23-2010 01:40 PM
about lion's commentary on the 6th unix mayuhao Linux - General 4 11-07-2006 07:01 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration