cctools fails to build on Snow Leopard

Christopher Jones jonesc at hep.phy.cam.ac.uk
Sun Sep 2 17:43:14 UTC 2018



> On 2 Sep 2018, at 9:10 pm, Riccardo Mottola via macports-users <macports-users at lists.macports.org> wrote:
> 
> Hi Ken,
> 
> On 09/02/18 16:55, Ken Cunningham wrote:
>>  usr/bin/gcc-4.2 -Os -std=gnu99 -Os -DLTO_SUPPORT -g -I../../include -Wall -D_MACH_I386_THREAD_STATUS_FPSTATE_LEGACY_FIELD_NAMES_ -D_ARCHITECTURE_I386_FPU_FPSTATE_LEGACY_FIELD_NAMES_ -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cctools/cctools/work/cctools-895/../ld64-274.1/src/abstraction -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cctools/cctools/work/cctools-895/../ld64-274.1/src/other -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cctools/cctools/work/cctools-895/include -arch x86_64 -arch i386 -I/opt/local/libexec/llvm-3.9/include -pipe -Os -fPIC -Wall -W -Wno-unused-parameter -Wwrite-strings -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wdelete-non-virtual-dtor -Werror=date-time -DNDEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS   -c -o ./allocate.o ../allocate.c
>> 
>> 
>> I just rebuilt cctools on a vanilla 10.6.8 VM, and it built fine.
>> 
>> Your build error occurred because you're trying to force a build against the llvm-3.9 headers with the ancient gcc-4.2, and it just can't. 
>> 
>> gcc-4.2 can build against the llvm-3.4 headers (as it is set up to do by default), but I don't know if it can build against any other headers. My guess is no, but only Jeremy might have tried others.
>> 
>> If you really want to build cctools against the llvm-3.9 headers on 10.6.8 (not sure why, but just sayin'), you can do that if you force a newer compiler like clang-3.9.
>> 
>> You would type something like this:
>> 
>> sudo port -v install cctools +llvm39 configure.compiler=macports-clang-3.9
>> 
>> Note - you would probably then be the only person on Earth with this configuration of cctools on 10.6.8. Who knows what kind of problems you might run into that nobody could figure out?
> 
> I did not "force" this configuration at all - I am just upgrading, so port selected this heade/compiler combination by itself!

Upgrade just respects any previous options you applied, so at some point you must have selected these options.

Try

> sudo port -f uninstall cctools

> sudo port install cctools

That should reinstall it with the default options. If you have issues you should then look in your global macports config files etc. to see if you have changed anything there from the standard defaults.

Chris

> 
> Riccardo
> <pEpkey.asc>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20180902/3bf8ceab/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1910 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20180902/3bf8ceab/attachment.bin>


More information about the macports-users mailing list