Opened 5 years ago

Closed 5 years ago

#59812 closed defect (duplicate)

cctools: ranlib: object: ... malformed object (unknown load command 1)

Reported by: erigliaco Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc:
Port: cctools

Description (last modified by mf2k (Frank Schima))

_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_wcslib/wcslib/work/destroot 
:info:destroot Exit code: 2
:error:destroot Failed to destroot wcslib: command execution failed
:debug:destroot Error code: CHILDSTATUS 28084 2
:debug:destroot Backtrace: command execution failed
:debug:destroot     while executing
:debug:destroot "system {*}$notty {*}$nice $fullcmdstring"
:debug:destroot     invoked from within
:debug:destroot "command_exec destroot"
:debug:destroot     (procedure "portdestroot::destroot_main" line 2)
:debug:destroot     invoked from within
:debug:destroot "$procedure $targetname"
:error:destroot See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_wcslib/wcslib/main.log for details.

Attachments (1)

main_ticket.pdf (81.3 KB) - added by erigliaco 5 years ago.

Download all attachments as: .zip

Change History (6)

Changed 5 years ago by erigliaco

Attachment: main_ticket.pdf added

comment:1 Changed 5 years ago by mf2k (Frank Schima)

In the future, please use WikiFormatting, fill in the Port field with the port that fails to build and add the port maintainer(s) to Cc (port info --maintainers wcslib), if any.

comment:2 Changed 5 years ago by mf2k (Frank Schima)

Description: modified (diff)
Port: wcslib added; esopipe-sinfo-all removed

comment:3 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

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 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -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 wcsware.c
:info:build /usr/bin/clang -o wcsware wcsware.o  -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -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.

comment:4 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to jeremyhu
Port: cctools added; wcslib removed
Status: newassigned
Summary: Failed to destroot wcslib: command execution failedcctools: ranlib: object: ... malformed object (unknown load command 1)

comment:5 Changed 5 years ago by kencu (Ken)

Resolution: duplicate
Status: assignedclosed
Note: See TracTickets for help on using tickets.