Welcome to MacForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

compiling gcc 4.2.0, stage 3, /usr/bin/libtool: fatal erro..

 
   Macintosh computer (Home) -> Tools RSS
Related Topics:
Compiling Firefox for Mac OS9 - Hi guys: If I have the Firefox source code, is it possible to compile it for an Apple running on Mac OS 9? Any idea how this can be done? Thank you.

Compiling on 10.4/Tiger for 10.2/Jaguar - I develop a product for Windows and MacOS X. Windows is my primary platform and I only have a single Mac (an iBook). I recently upgraded from 10.2 to 10.4. Hoping not to have problems, I did *not* install the new..

Cross compiling with intel-linux - I have a very powerfull AMD Opteron machine but only a iMacG5 for software Is it possible to compile my files with gcc 3.4 on Intel Linux ? Anybody ever tried this ?

compiling - making unix package w XCode - I am trying to compile poedit using XCode.. I succeeded building the xwWindows library and I only get one error in compiling poedit, (first use this function) this macro should be defined on the command line... where should I..

help ! PEF Executable using XCODE ?? - A poll with this post was created, to vote and see the results, please visit
Next:  Tools: Cross Platform Music Application  
Author Message
dan

External


Since: May 31, 2007
Posts: 3



(Msg. 1) Posted: Thu May 31, 2007 11:01 pm
Post subject: compiling gcc 4.2.0, stage 3, /usr/bin/libtool: fatal error in ld64
Archived from groups: comp>sys>mac>programmer>tools (more info?)

Hi All,

I attempted to compile gcc 4.2.0 on an intel mac.

The OS is 10.4.9, and everything is standard (no fink, no extra
installed software of any kind).

I configured the software with no extra options (except an install
path).

After producing around 30,000 lines of output, the compilation process
errors out in stage 3, with a long command that starts off .......bld/
0/./gcc/xgcc -shared-libgcc........ and ends up .......-
compatibility_version 9 -current_version 9.0, followed by the message
/usr/bin/libtool: fatal error in ld64

This is 5 layers deep in the make (libgcj.la).

Thanks in advance for any clues on how to deal with this.

dan

 >> Stay informed about: compiling gcc 4.2.0, stage 3, /usr/bin/libtool: fatal erro.. 
Back to top
Login to vote
Dave Seaman

External


Since: Jun 25, 2003
Posts: 592



(Msg. 2) Posted: Fri Jun 01, 2007 12:15 pm
Post subject: Re: compiling gcc 4.2.0, stage 3, /usr/bin/libtool: fatal error in ld64 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Thu, 31 May 2007 23:01:11 -0700, dan wrote:
> Hi All,

> I attempted to compile gcc 4.2.0 on an intel mac.

> The OS is 10.4.9, and everything is standard (no fink, no extra
> installed software of any kind).

> I configured the software with no extra options (except an install
> path).

> After producing around 30,000 lines of output, the compilation process
> errors out in stage 3, with a long command that starts off .......bld/
> 0/./gcc/xgcc -shared-libgcc........ and ends up .......-
> compatibility_version 9 -current_version 9.0, followed by the message
> /usr/bin/libtool: fatal error in ld64

> This is 5 layers deep in the make (libgcj.la).

> Thanks in advance for any clues on how to deal with this.

You said you are not using fink, but that seems to be the simplest
solution to the problem. I have gcc 4.2 on my Intel Mac, installed via
fink.

Macports appears to have it also, though I haven't tried that route.


--
Dave Seaman
Oral Arguments in Mumia Abu-Jamal Case heard May 17
U.S. Court of Appeals, Third Circuit
<http://www.abu-jamal-news.com/>

 >> Stay informed about: compiling gcc 4.2.0, stage 3, /usr/bin/libtool: fatal erro.. 
Back to top
Login to vote
dan

External


Since: May 31, 2007
Posts: 3



(Msg. 3) Posted: Fri Jun 01, 2007 3:05 pm
Post subject: Re: compiling gcc 4.2.0, stage 3, /usr/bin/libtool: fatal error in ld64 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Dave,

Thanks for your reply, and particularly the suggestion that i check
out macports, which i intend to do.

Now, i've used fink on a prior mac, and the fink people have indeed
made a huge variety of software available for pretty easy use on
the mac.

But i have two reasons to see how far i can get without using fink
this time around:

(1) The fink packages require admin access to install, so they change
the global nature of the machine. It is not possible for each user
of
the machine to have a different view of /sw (the root of most of
fink).
I understand that the authors may have been more or less forced into
this kind of design, at least partially, because of the nature of x-
windows,
for example. And installing everything in /sw makes the framework
much simpler, and thus much more robust. So, they have good reasons
for doing it the way the way they do, but i want my installation
of gcc to be entirely unprivileged.

(2) gcc has an elaborate configuration process that accommodates a
vast range of hardware and operating systems. It should be possible
to build anywhere, with the configuration phase catching any
potential problems. Now the reality may not be so good, but i
would at least like to find out how far it is from the ideal.

Thanks again for your mail and advice, and if you are anybody
else has any further suggestions, i'm all ears.

dan


On Jun 1, 5:15 am, Dave Seaman <dsea... DeleteThis @no.such.host> wrote:
> On Thu, 31 May 2007 23:01:11 -0700, dan wrote:
> > Hi All,
> > I attempted to compile gcc 4.2.0 on an intel mac.
> > The OS is 10.4.9, and everything is standard (no fink, no extra
> > installed software of any kind).
> > I configured the software with no extra options (except an install
> > path).
> > After producing around 30,000 lines of output, the compilation process
> > errors out in stage 3, with a long command that starts off .......bld/
> > 0/./gcc/xgcc -shared-libgcc........ and ends up .......-
> > compatibility_version 9 -current_version 9.0, followed by the message
> > /usr/bin/libtool: fatal error in ld64
> > This is 5 layers deep in the make (libgcj.la).
> > Thanks in advance for any clues on how to deal with this.
>
> You said you are not using fink, but that seems to be the simplest
> solution to the problem. I have gcc 4.2 on my Intel Mac, installed via
> fink.
>
> Macports appears to have it also, though I haven't tried that route.
>
> --
> Dave Seaman
> Oral Arguments in Mumia Abu-Jamal Case heard May 17
> U.S. Court of Appeals, Third Circuit
> <http://www.abu-jamal-news.com/>
 >> Stay informed about: compiling gcc 4.2.0, stage 3, /usr/bin/libtool: fatal erro.. 
Back to top
Login to vote
Dave Seaman

External


Since: Jun 25, 2003
Posts: 592



(Msg. 4) Posted: Fri Jun 01, 2007 11:11 pm
Post subject: Re: compiling gcc 4.2.0, stage 3, /usr/bin/libtool: fatal error in ld64 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Fri, 01 Jun 2007 15:05:31 -0700, dan wrote:
> Hi Dave,

> Thanks for your reply, and particularly the suggestion that i check
> out macports, which i intend to do.

> Now, i've used fink on a prior mac, and the fink people have indeed
> made a huge variety of software available for pretty easy use on
> the mac.

> But i have two reasons to see how far i can get without using fink
> this time around:

> (1) The fink packages require admin access to install, so they change
> the global nature of the machine. It is not possible for each user
> of
> the machine to have a different view of /sw (the root of most of
> fink).
> I understand that the authors may have been more or less forced into
> this kind of design, at least partially, because of the nature of x-
> windows,
> for example. And installing everything in /sw makes the framework
> much simpler, and thus much more robust. So, they have good reasons
> for doing it the way the way they do, but i want my installation
> of gcc to be entirely unprivileged.

> (2) gcc has an elaborate configuration process that accommodates a
> vast range of hardware and operating systems. It should be possible
> to build anywhere, with the configuration phase catching any
> potential problems. Now the reality may not be so good, but i
> would at least like to find out how far it is from the ideal.

> Thanks again for your mail and advice, and if you are anybody
> else has any further suggestions, i'm all ears.

Your comments about fink also apply to macports, which installs in
/opt/local. I haven't used it enough to know whether that is
configurable.

FWIW, here's how the fink version of gcc-4.2.0 was configured on a Mac
Pro. Notice that there are some dependencies on other fink-installed
products, which you will presumably want to replace with your own
installations.

$ gcc-4 -v
Using built-in specs.
Target: i686-apple-darwin8
Configured with: ../gcc-4.2.0/configure --prefix=/sw --prefix=/sw/lib/gcc4.2 --mandir=/sw/share/man --infodir=/sw/share/info --enable-languages=c,c++,fortran,objc,java --with-arch=nocona --with-tune=generic --host=i686-apple-darwin8 --with-gmp=/sw --with-libiconv-prefix=/sw --with-system-zlib --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib
Thread model: posix
gcc version 4.2.0



--
Dave Seaman
Oral Arguments in Mumia Abu-Jamal Case heard May 17
U.S. Court of Appeals, Third Circuit
<http://www.abu-jamal-news.com/>
 >> Stay informed about: compiling gcc 4.2.0, stage 3, /usr/bin/libtool: fatal erro.. 
Back to top
Login to vote
Display posts from previous:   
   Macintosh computer (Home) -> Tools All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]