rebuild a package without an update

Ken Cunningham ken.cunningham.webuse at gmail.com
Tue Nov 17 17:46:48 UTC 2020


> MacPorts compiler to break is a pain on systems which have an older 
> toolchain. Probably this goes unnoticed on newer macs where the system 
> clang/gcc is "new enough".
> Here were are in the situation that if, for some upstream reason, 
> libxml2 stops compiling with gcc 4.2, the user has no workaround and is 
> stuck in an endless dependency.
Hi Riccardo,

I have been finishing up the final builds of all these compilers for you.

The only one left is clang/llvm-6.0, which is building now.

I’m sorry you are having troubles. I will try to get your system in tip-top shape for you.

For now, you can download any or all of these from the older systems binary server I sent you the link to:

$ uname -a
Darwin LeopardIntelServerVM.medicalrounds.private 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386


$ port -v installed | grep gcc
  apple-gcc42 @5666.3_16+universal platform='darwin 9' archs='i386 x86_64' date='2020-11-04T16:39:37-0800'
  gcc5 @5.5.0_6 platform='darwin 9' archs='i386' date='2020-11-15T16:48:27-0800'
  gcc6 @6.5.0_6 platform='darwin 9' archs='i386' date='2020-11-15T19:13:27-0800'
  gcc7 @7.5.0_2 platform='darwin 9' archs='i386' date='2020-11-02T19:30:59-0800'
  gcc45 @4.5.4_17 platform='darwin 9' archs='i386' date='2020-11-15T23:16:20-0800'
  gcc46 @4.6.4_15 platform='darwin 9' archs='i386' date='2020-11-16T00:22:09-0800'
  gcc47 @4.7.4_12 platform='darwin 9' archs='i386' date='2020-11-16T01:46:17-0800'
  gcc48 @4.8.5_6 platform='darwin 9' archs='i386' date='2020-11-14T23:36:51-0800'
  gcc49 @4.9.4_6 platform='darwin 9' archs='i386' date='2020-11-16T23:35:27-0800'
  gcc_select @0.1_9 platform='darwin 9' archs='noarch' date='2020-11-01T16:54:09-0800'
  libgcc @3.0_0 (active) platform='darwin 9' archs='i386' date='2020-11-02T01:19:25-0800'
  libgcc6 @6.5.0_4 platform='darwin 9' archs='i386' date='2020-11-14T22:02:23-0800'
  libgcc7 @7.5.0_0 (active) platform='darwin 9' archs='i386' date='2020-11-02T01:18:31-0800'
  libgcc45 @4.5.4_16 platform='darwin 9' archs='i386' date='2020-11-15T21:46:05-0800'


$ port -v installed | grep llvm
  ld64-97 @97.17_9+llvm33 platform='darwin 9' archs='i386' date='2020-11-16T19:52:37-0800'
  ld64-127 @127.2_14+llvm33 (active) platform='darwin 9' archs='i386' date='2020-11-01T13:33:57-0800'
  llvm-3.3 @3.3_11 (active) platform='darwin 9' archs='i386' date='2020-11-01T13:32:13-0800'
  llvm-3.4 @3.4.2_13 platform='darwin 9' archs='i386' date='2020-11-01T13:54:21-0800'
  llvm-3.7 @3.7.1_5 (active) platform='darwin 9' archs='i386' date='2020-11-01T15:25:31-0800'
  llvm-5.0 @5.0.2_2 platform='darwin 9' archs='i386' date='2020-11-02T21:48:31-0800'
  llvm-7.0 @7.1.0_1+emulated_tls platform='darwin 9' archs='i386' date='2020-11-03T12:29:17-0800'
  llvm_select @2_0 (active) platform='darwin 9' archs='noarch' date='2020-10-31T15:16:03-0700'

$ port -v installed | grep clang
  clang-3.4 @3.4.2_14 platform='darwin 9' archs='i386' date='2020-11-01T14:54:54-0800'
  clang-3.7 @3.7.1_7 (active) platform='darwin 9' archs='i386' date='2020-11-01T16:18:42-0800'
  clang-5.0 @5.0.2_4+emulated_tls+libstdcxx platform='darwin 9' archs='i386' date='2020-11-02T23:58:02-0800'
  clang-7.0 @7.1.0_0+emulated_tls+libstdcxx platform='darwin 9' archs='i386' date='2020-11-03T15:01:55-0800'
  clang_select @2.2_0 (active) platform='darwin 9' archs='noarch' date='2020-10-31T15:15:56-0700'

$ port -v installed | grep libcxx
  libcxx @5.0.1_4+universal platform='darwin 9' archs='i386 x86_64' date='2020-11-01T14:57:03-0800'
  libcxx @5.0.1_4+emulated_tls+universal (active) platform='darwin 9' archs='i386 x86_64' date='2020-11-03T10:43:13-0800'

$ port -v installed | grep cctools
  cctools @927.0.2_5 (active) platform='darwin 9' archs='i386' date='2020-10-31T14:32:25-0700'


$ port -v installed | grep ld64   
  ld64 @3_3+ld64_97-ld64_127 platform='darwin 9' archs='i386' date='2020-11-16T21:44:59-0800'
  ld64 @3_3+ld64_127 (active) platform='darwin 9' archs='i386' date='2020-11-01T13:34:00-0800'
  ld64-97 @97.17_9+llvm33 platform='darwin 9' archs='i386' date='2020-11-16T19:52:37-0800'
  ld64-127 @127.2_14+llvm33 (active) platform='darwin 9' archs='i386' date='2020-11-01T13:33:57-0800'


Most of them installed without any intervention. older gcc versions on Leopard i386 can be a bit touchy.  They build best when you deactivate all ports first, and then build them. That is the way upstream builds them, against system tools. They can be touchy, and do a surprising amount of self-configuration depending on exactly which linker and assembler they detect, as well as which compiler is bootstrapping.

The only one I had to do something fancy about was gcc49. It required setting MacPorts ld64 to ld64-97, as that is close to the Leopard system compler which is ld64-85. Then it built.

I’m sorry, but I don’t think I am ever going to build these as 64bit, or universal with PPC, as it’s just too far down the list for me right now. But I think it *could* be done, if you are suitably motivated.

Best, 

Ken
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20201117/39be650d/attachment.htm>


More information about the macports-users mailing list