[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Build errors on OSX Mavericks.
From: |
Paulo Moura |
Subject: |
Re: Build errors on OSX Mavericks. |
Date: |
Wed, 6 Nov 2013 22:55:46 +0000 |
On 06/11/2013, at 22:48, Sean Charles <address@hidden> wrote:
> )(*&^%$ Apple! Grrrrrr.
>
> I jut tried to use gplc and got a really odd message!
> Seans-iMac:felt-prolog seancharles$ gplc --no-top-level command_line.prolog
> -o feltweb
> ld: warning: ignoring file command_line.prolog, file was built for
> unsupported file format ( 0x25 0x25 0x3A 0x3A 0x3A 0x3A 0x3A 0x3A 0x3A 0x3A
> 0x3A 0x3A 0x3A 0x3A 0x3A 0x3A ) which is not the architecture being linked
> (x86_64): command_line.prolog
>
> I vaguely remembered reading recently that Apple have done something funky
> with LLVM and gcc,
> Seans-iMac:src seancharles$ gcc -v
> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
> --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1
> Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
> Target: x86_64-apple-darwin13.0.0
> Thread model: posix
> Seans-iMac:src seancharles$
>
> I went back in to my build folder and did a make clean and then a make, files
> compile OK but when it gets to the end of the process it all blows up in my
> face.
> -------------------------------
> --- GNU PROLOG INSTALLATION ---
> -------------------------------
>
> GNU Prolog version: 1.4.4 (Jun 21 2013)
> Operating system : darwin12.4.0
> Processor : x86_64
> Size of a WAM word: 64 bits
> C compiler : gcc
> C flags : -O3 -fomit-frame-pointer
> C flags machine : -march=x86-64 -m64 -fno-strict-aliasing
> Assembler : as
> Assembler flags : -arch x86_64
> Loader flags :
> Loader libraries : -lm
> Use line editor : Yes
> Use piped consult : Yes
> Use sockets : Yes
> Use FD solver : Yes
> Use machine regs. : Yes
> Used register(s) :
>
> ------------------------------
> …loads more cut out...
> gplc -c wam_emit.wam
> [ ! -f pl2wam ] || cp pl2wam pl2wam0
> gplc -o pl2wam --no-fd-lib-warn --no-top-level pl2wam.o read_file.o
> syn_sugar.o internal.o code_gen.o reg_alloc.o inst_codif.o first_arg.o
> indexing.o wam_emit.o
> gplc -c --fast-math fd2c.pl
>
> Fatal Error: Segmentation Violation (bad address: 0x0)
> compilation failed
> make[1]: *** [fd2c.o] Error 1
> make: *** [all] Error 1
>
> I remember reading something also about using “brew” to install an
> alternative version of GCC but is that going to break my Xcode installation
> or can I change it back?!
>
> If anybody has any useful input on how to be able to build GNU Prolog again
> I’d appreciate it! I continue to dig...
I'm also running Mavericks and using MacPorts to install from sources GNU
Prolog 1.4.4 seems to work fine. The portfile sets apple-gcc42 as the C
compiler.
Cheers,
Paulo
-----------------------------------------------------------------
Paulo Moura
Logtalk developer
Email: <mailto:address@hidden>
Web: <http://logtalk.org/>
-----------------------------------------------------------------