Opened 12 months ago

Last modified 12 months ago

#67415 new defect

fsplib fails to build on 10.6.8 with Clang: libfsplib.a(fsplib.o) malformed object (unknown load command 2)

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: snowleopard Cc:
Port: fsplib

Description

/opt/local/bin/clang-mp-11 -arch x86_64 -o test.o -c -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -ggdb -fno-common -Wchar-subscripts -Wcomment -Wimplicit -Wsequence-point -Wreturn-type -Wfloat-equal -Wno-system-headers -Wredundant-decls -Wmissing-noreturn -pedantic -Wlong-long -Wundef -Winline -Wpointer-arith -Wno-unused-parameter -Wno-cast-align -DHAVE_DIRENT_NAMLEN -DHAVE_DIRENT_FILENO -DHAVE_DIRENT_TYPE -DHAVE_STDINT_H -DFSP_USE_SHAREMEM_AND_SEMOP test.c
ar rc libfsplib.a fsplib.o lock.o
/usr/bin/ranlib: object: libfsplib.a(fsplib.o) malformed object (unknown load command 2)
ar: internal ranlib command failed
scons: *** [libfsplib.a] Error 1
scons: building terminated because of errors.
Command failed:  cd "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_fsplib/fsplib/work/fsplib-0.14" && /opt/local/bin/scons -j8 CC="/opt/local/bin/clang-mp-11 -arch x86_64" 
Exit code: 2

https://build.macports.org/builders/ports-10.6_x86_64-builder/builds/153458/steps/install-port/logs/stdio

GCC build for ppc is okay.

Change History (1)

comment:1 Changed 12 months ago by kencu (Ken)

the system cctools on 10.6 is too old to understand the build products of new clangs.

macports cctools must be used instead, as it is current.

Note: See TracTickets for help on using tickets.