Re: [eclipse-clp-users] ECLiPSe on Mountain Lion (OS X 10.8)

From: Paulo Moura <pmoura_at_...342...>
Date: Tue, 9 Oct 2012 21:54:29 +0100
Hi Kish,

On 09/10/2012, at 18:29, Kish Shen <kisshen@...5...> wrote:

> Hi Paulo,
> 
>> Compiling with GCC 4.4.7 (installed using MacPorts) solves the very slow performance issue. Btw, you can also use MacPorts to install "rlwrap" so that typing "rlwrap eclipse" gives you command-line editing and history.
> 
> I am not quite sure of your exact meaning: are you seeing the slow performance with gcc 4.2, or are you comparing it with some other version of gcc that you tried previously?

Not slow. *Very* slow. Of course, given the issues in compiling ECLiPSe in the first palce, the problem may be somewhere else. In MacOS X 10.8.2 with Xcode 4.5.1 you get:

$ gcc -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)

I.e. a *LLVM* back-end. This have been problematic for other Prolog compilers as well. But it's really bad for ECLiPSe 6.1. Don't ask me why :-)

> If I remember correctly, the slow performance issue occurred with gcc 4.3 and 4.4, but not 4.2. I think I only tried an early version of 4.2, so they could have fixed the bug during 4.4.


As I wrote, using "traditional" GCC 4.4.7 solved the problem for me.

Regarding the third-party software dependencies, specially GMP/LPIR, a possible solution would be to add a shell script to the ECLiPSe distribution that downloads and builds the necessary libraries to a directory local to where the user uncompress the sources.

Cheers,

Paulo
 

-----------------------------------------------------------------
Paulo Moura
Logtalk developer

Email: <mailto:pmoura@...342...>
Web:   <http://logtalk.org/>
-----------------------------------------------------------------
Received on Tue Oct 09 2012 - 20:54:41 CEST

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