cctools fails to build on Snow Leopard

Ken Cunningham ken.cunningham.webuse at gmail.com
Sun Sep 2 20:47:04 UTC 2018


On 2018-09-02, at 2:49 PM, Riccardo Mottola wrote:

> Hi,
> 
> 
> On 09/02/18 17:08, Ken Cunningham wrote:
>> As part of the LibcxxOnOlderSystems instructions, you can (must) build
>> cctools against newer llvm headers, but forcing the build with clang-3.4:
>> 
>> cctools @895_7+llvm39+universal-llvm34 (active) platform='darwin 10'
>> archs='i386 x86_64' date='2018-08-19T19:49:33-0700'
> 
> I tried thus
> 
> sudo port -v install cctools +llvm39 configure.compiler=macports-clang-3.4
> 
> but this can't because llvm39 variant conflicts with llvm34.

Right. To see what you have installed already, do this:

port -v installed cctools

It probably will come back as:

cctools +llvm34

but you never know what it might be by now. Somehow it was +llvm39 before, which failed to build with gcc-4.2 (your original question).

To see what the defaults for the port might be, do this:

port info cctools

and it will show you the default variants with "+" signs that it plans to install.

To FORCE something, you add the variant you want, and you may have to turn off the default variant if it conflicts.

so you would do:

sudo port -v install cctools +llvm39 -llvm34 configure.compiler=macports-clang-3.4

or perhaps clang-3.7 or newer might be needed.


Ken






More information about the macports-users mailing list