Re: [eclipse-users] Max OS X install

From: Malcolm Ryan <malcolmr_at_...25...>
Date: Thu, 22 Mar 2007 16:24:16 +1100
I decided to bite the bullet and try to compile Eclipse on my Intel  
Mac. Here's my progress so far:

Step 1) ./configure --build=powerpc-foo-darwin

This seems to be enough to convince 'configure' that I'm building on  
a PPC Mac, which is close enough for starters.

Step 2) Comiling sepia gives:

In file included from ../src/lex.c:54:
../include/rounding_control.h:335: error: parse error before '/' token
../src/lex.c: In function 'lex_an':

There is a stray */ on line 335 on rounding_control.h
Removing this line means sepia will compile, but:

Step 3) Linking sepia objects gives:

/usr/bin/ld: Undefined symbols:
_ec_fpu_round_orig_

This is because intervals.c has multiple definitions for  
ec_fpu_round_orig_ depending on your architecture, and it doesn't  
have one for Intel Macs. I just change line 162 from:

#elif defined(__POWERPC__) && defined(__APPLE__) && defined(__MACH__)
     int ec_fpu_round_orig_;

to:

#elif defined(__APPLE__)
     int ec_fpu_round_orig_;

This seems to do the trick

Step 4) When trying to build libeclipse.dylib there is a libtool error:

libtool: can't locate file for: -lgcc
libtool: file: -lgcc is not an object file (not allowed in a library)

Removed the -lgcc from line 1653 of configure:

     DYNLDFLAGS="-dynamic -single_module -flat_namespace -lgcc"

Step 5) Now libtool gives a different error:

/usr/local/lib/libgmp.a(add_n.o) has local relocation entries in non- 
writable section

This one has me stuck. Poking around the web seems to indicate that  
others have had this problem with libgmp on the Mac, but I cannot  
find any answers yet. It may be a fundamental problem with GMP.

Malcolm

On 07/03/2007, at 12:16 PM, Kish Shen wrote:

> On Wednesday 07 March 2007 00:02, Malcolm Ryan wrote:
>
>> There are OSX binaries? Where? I'm looking at http://
>> eclipse.crosscoreop.com/Distribution/ but I can't see any.
>>
> I should have mentioned that the binaries are for PPC Mac OSX,  
> although we have had
> reports that it will at least start on Intel Macs, probably because  
> the Intel Mac is able to
> emulate the PPC,  but there are apparently problems using it, and  
> in any case it will probably
> run quite slowly.
>
> The PPC Mac OSX binaries are on our Source Forge project page (as  
> Alexander have already
> mentioned in his posting). I compiled this on the Source Forge's  
> compile farm Mac, which
> runs 10.2.
>
>>> If you downloaded the source, then you could try compiling it,
>>> following the instructions in
>>> INSTALL, again in the toplevel directory, although this may be a
>>> little more difficult to do.
>>
>> I've tried compiling it, but it says:
>>
>> configure: error: Unknown architecture: i686-apple-darwin8.8.1
>>
>> Has anyone managed to get eclipse to compile on an intel mac?
>>
> We don't have access to Intel Macs, so we can't compile this  
> ourselves.
>
> The ECLiPSe build uses standard Unix tools, and for a proper build  
> with Intel Macs, you need
> to define a new ARCH type, say x86_macosx. If you are familiar with  
> these Unix tools
> (configure, make, etc.), you could try to make the modifications  
> yourself to get ECLiPSe
> compiled.
>
> However, it is easier to just use the PPC Mac rules  
> (ARCH=ppc_macosx) rules. You should
> set the environment variable ARCH to ppc_macosx, and then do the  
> compilation as described
> in the INSTALL file.
>
> There are still a few small problems with the source when you  
> compile for the Intel Mac OSX
> this way, and I hope to check in the changes that get around this  
> -- I will let you know when I
> have checked in the changes.
>
> Cheers,
>
> Kish
>
>> Malcolm
>>
>> --
>>       "The act of defending any of the cardinal virtues has today all
>>        the exhilaration of a vice."
>>                                      - G.K.Chesterton A Defense of
>> Humility
>>
>>
>>
>>
>> _______________________________________________
>> ECLiPSe-Users mailing list
>> ECLiPSe-Users@...2...
>> http://www.crosscoreop.com/mailman/listinfo/eclipse-users
>>
>
> _______________________________________________
> ECLiPSe-Users mailing list
> ECLiPSe-Users@...2...
> http://www.crosscoreop.com/mailman/listinfo/eclipse-users

--
      "The Christian ideal has not been tried and found wanting;
       it has been found difficult and left untried."
             - G.K.Chesterton, What's Wrong With The World
Received on Thu Mar 22 2007 - 05:24:44 CET

This archive was generated by hypermail 2.2.0 : Mon Jul 09 2018 - 02:05:29 CEST