Re: Compiling Pike on MacOS X

Matt Hardy <[email protected]>
Newsgroups gmane.comp.lang.pike.user
Message-ID <[email protected]>
And it’s not even friday night!

On 6/10/2014, at 2:43 pm, Olivier Auverlot <[email protected]> wrote:

> YES !!!
> 
> I successfully compiled Pike with the help of MacPorts. I installed GCC 4.9 and updated autoconf and gmake.
> 
> I'm so happy ;-)
> 
> Le 6 oct. 2014 à 12:15, Jonas Walldén a écrit :
> 
>>> I try to compile Pike 7.8.866 on Mac OS X 10.7.5 but I get an error:
>>> 
>>> [...]
>>> 
>>> make: *** [multiset.o] Error 1
>> 
>> Older LLVM compilers have problems with this file. Upgrade to a newer XCode or use the gcc compiler (not the gcc frontend for LLVM) if you have it installed. I don't recall exactly which LLVM version is the minimum but I seem to recall that 5.3 (?) is ok. Current is 6.0 as used on 10.9.
>> 
>> One quick fix is to cd into the build directory, copy the failing compile line but switch "gcc" for "gcc-4.0" (or whatever alias you have for the non-LLVM gcc) to compile multiset.c and then cd back and run "make" to build the remaining parts. I did that frequently when I found that gcc was better on average than LLVM in earlier versions. Both compilers produce .o files that are linker compatible.
>> 
>> -- Jonas
>> 
> 

Matt

Webhaven - "thinking outside the office"
http://www.webhaveninternational.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.