[MacPorts] #59812: Failed to destroot wcslib: command execution failed

MacPorts noreply at macports.org
Mon Dec 9 05:53:48 UTC 2019

#59812: Failed to destroot wcslib: command execution failed
  Reporter:  erigliaco  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.6.2
Resolution:             |   Keywords:
      Port:  wcslib     |

Comment (by ryandesign):

 I'm not sure why you converted the main.log file to a pdf, but it says:

 :info:build /usr/bin/clang -I/opt/local/include
 -DHAVE_CONFIG_H -I. -I.. -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -arch
 x86_64 -c cel.c
 :info:build ar r libwcs-5.15.a cel.o
 :info:build ar: creating archive libwcs-5.15.a
 :info:build /opt/local/bin/ranlib: object: libwcs-5.15.a(cel.o) malformed
 object (unknown load command 1)
 :info:build ar: internal ranlib command failed
 :info:build make[1]: *** [libwcs-5.15.a(cel.o)] Error 1
 :info:build /usr/bin/clang -DDO_CFITSIO -I/opt/local/include -
 isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -
 DHAVE_CONFIG_H -I.. -I../C -I../pgsbox -I../C -I/usr/local/include \
 :info:build -pipe -Os -isysroot/Library/Developer/
 CommandLineTools/SDKs/MacOSX10.14.sdk -arch x86_64 -c -o wcsware.o
 :info:build /usr/bin/clang -o wcsware wcsware.o  -L/opt/local/lib
 -arch x86_64 -L/usr/local/lib -L/opt/local/lib -lcfitsio
 ../C/libwcs-5.15.a \
 :info:build -lm
 :info:build ld: archive has no table of contents file '../C/libwcs-5.15.a'
 for architecture x86_64
 :info:build clang: error: linker command failed with exit code 1 (use -v
 to see invocation)
 :info:build make[1]: *** [wcsware] Error 1

 I see that you are on macOS 10.14 without Xcode. You probably have the
 command line tools, and for 10.14 it would have to be at least the Xcode
 10.0 version of the CLT. /opt/local/bin/ranlib is provided by the cctools
 port but the version of the software in that port is the Xcode 10.0
 version, so if you have a later version of the CLT, especially an Xcode
 11.x version, the archives its newer compiler generates might not be
 compatible with the cctools port's older ranlib.

 You should be able to solve this by reinstalling the cctools port with the
 +xcode variant, until such a time as we can update the cctools port to a
 newer version.

Ticket URL: <https://trac.macports.org/ticket/59812#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS

More information about the macports-tickets mailing list