[MacPorts] #33315: libzzip won't build correctly with clang
MacPorts
noreply at macports.org
Mon Feb 20 17:14:10 PST 2012
#33315: libzzip won't build correctly with clang
-------------------------------------+--------------------------------------
Reporter: david.reitter@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.3
Keywords: clang | Port: libzzip
-------------------------------------+--------------------------------------
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
--
Ticket URL: <https://trac.macports.org/ticket/33315>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list