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

From: Paulo Moura <pmoura_at_...342...>
Date: Tue, 9 Oct 2012 17:27:42 +0100
On 09/10/2012, at 02:17, Paulo Moura <pmoura_at_...342...> wrote:

> Hi Joachim,
> 
> Some progress...
> 
> On 09/10/2012, at 01:40, Joachim Schimpf <jschimpf_at_...311...> wrote:
> 
>> On 08/10/2012 20:31, David Dreisigmeyer wrote:
>>> This seems to work for x86_64_macosx:
>>> 
>>> if [ -z $GCCLIBDIR ]; then
>>> GCCLIBDIR="."
>>> fi
>>> 
>>> I get many errors along the lines of:
>>> 
>>> Eplex error: Could not find any of the solver interfaces:
>>> [ list, of, things, that, were, not, found ]
>>> 
>>> How can I avoid these?
>> 
>> You can ignore these, they occur as a side effect of the makefile
>> trying to precompile libraries that are using library(eplex), and
>> the latter doesn't load because no LP/MIP solvers are available.
>> 
>> If you are building Eclipse 6.1, you could disable the Makefile.in
>> in the Eplex subdirectory by changing the install-rule to empty:
>> install:
>> 
>> If you are building 6.0, it's not so easy - the Eplex stuff shares
>> a makefile with other libraries that you probably want.  In this
>> case, just ignore the messages.
> 
> 
> I was able to avoid the error:
> 
> gcc -dynamiclib -single_module -flat_namespace -search_paths_first -m64 -mmacosx-version-min=10.4 -L  -o libeclipse.dylib \
> 			dict.o read.o lex.o emu.o proc_desc.o bip_tconv.o io.o write.o bip_comp.o mem.o operator.o bip_record.o bip_bag.o bip_heapevents.o bip_shelf.o bip_store.o bip_array.o bip_strings.o bip_db.o property.o bip_io.o procedure.o handle.o intervals.o bip_arith.o bigrat.o bip_module.o bip_control.o bip_delay.o bip_domain.o bip_misc.o elipsys_fd.o bip_load.o code.o init.o emu_c_env.o emu_util.o error.o external.o gc_stacks.o handlers.o printam.o addrmap.o eclipsedir.o embed.o os_support.o lib1.o lib2.o lib3.o lib4.o lib5.o lib6.o lib7.o dummy_mps.o dummy_par.o dummy_upcalls.o dummy_wm.o whereami_default.o \
> 			-L../../lib/x86_64_macosx -L../../sys_lib/x86_64_macosx \
> 			-lshm -L.  -lpthread -ldl -lm 
> i686-apple-darwin11-llvm-gcc-4.2: libeclipse.dylib: No such file or directory
> make[1]: *** [libeclipse.dylib] Error 1
> rm ../../doc/examples/.stamp
> make: *** [make_kernel] Error 2
> 
> by doing:
> 
> pmmbp:Eclipse_6.1_125 pmoura$ cd Kernel/x86_64_macosx/
> pmmbp:x86_64_macosx pmoura$ gcc -dynamiclib -single_module -flat_namespace -search_paths_first -m64 -mmacosx-version-min=10.4 -o libeclipse.dylib dict.o read.o lex.o emu.o proc_desc.o bip_tconv.o io.o write.o bip_comp.o mem.o operator.o bip_record.o bip_bag.o bip_heapevents.o bip_shelf.o bip_store.o bip_array.o bip_strings.o bip_db.o property.o bip_io.o procedure.o handle.o intervals.o bip_arith.o bigrat.o bip_module.o bip_control.o bip_delay.o bip_domain.o bip_misc.o elipsys_fd.o bip_load.o code.o init.o emu_c_env.o emu_util.o error.o external.o gc_stacks.o handlers.o printam.o addrmap.o eclipsedir.o embed.o os_support.o lib1.o lib2.o lib3.o lib4.o lib5.o lib6.o lib7.o dummy_mps.o dummy_par.o dummy_upcalls.o dummy_wm.o whereami_default.o -L../../lib/x86_64_macosx -L../../sys_lib/x86_64_macosx -lshm -L.  -lpthread -ldl -lm 
> 
> I.e. by removing the "-L" before the "-o libeclipse.dylib". After, I did:
> 
> pmmbp:x86_64_macosx pmoura$ cd ../..
> pmmbp:Eclipse_6.1_125 pmoura$ make -f Makefile.$ARCH
> 
> Running the RUNME I installed the binaries and I'm able to start ECLiPSe and run Logtalk 3.x with it. Still testing. The first observation is that ECLiPSe seems to run very slow when compiled with default C compiler on MacOS X 10.8:
> 
> $ 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 will try again using GCC 4.4. More later.


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.

Cheers,

Paulo


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

Email: <mailto:pmoura_at_...342...>
Web:   <http://logtalk.org/>
-----------------------------------------------------------------
Received on Tue Oct 09 2012 - 16:27:56 CEST

This archive was generated by hypermail 2.3.0 : Thu Feb 22 2024 - 18:13:20 CET