Opened 13 years ago

Last modified 13 years ago

#33315 closed defect

libzzip: universal variant fails with clang — at Version 2

Reported by: david.reitter@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: clang universal Cc:
Port: libzzip

Description (last modified by ryandesign (Ryan Carsten Schmidt))

libzzip fails to build. It tries to build with clang and fails with the error message:

:info:build /bin/sh ../libtool --silent --tag=CC   --mode=link /Developer/usr/bin/clang  -O2 -arch i386 -arch x86_64 -D_USE_MMAP  -fomit-frame-pointer -Wall -Wpointer-arith -Wsign-compare -Wmissing-declarations -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wstrict-aliasing -Warray-bounds -fstrict-prototypes -Wstrict-prototypes --export-dynamic -L/opt/local/lib -arch i386 -arch x86_64 -o zzipwrap zzipwrap.o libzzipwrap.la   
:info:build clang: error: unsupported option '--export-dynamic'

The build commands were

sudo port uninstall libzzip
sudo port clean libzzip
sudo port install libzzip +universal

As a workaround, I managed to install libzzip with the following trick:

sudo port install libzzip +universal configure.compiler=llvm-gcc-4.2

See also #30849

Change History (3)

Changed 13 years ago by david.reitter@…

Attachment: main.log added

comment:1 Changed 13 years ago by david.reitter@…

port info clang
clang @2.9, Revision 1 (lang)
Replaced by:          clang-2.9
Variants:             universal

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: david.reitter@… removed
Description: modified (diff)
Keywords: universal added
Summary: libzzip won't build correctly with clanglibzzip: universal variant fails with clang

Ok, I can reproduce this, but only when using the universal variant; if you don't really need a universal build, clean and build without the universal variant and it should work.

Note: See TracTickets for help on using tickets.