[MacPorts] #33315: libzzip won't build correctly with clang
#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
#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 -------------------------------------+-------------------------------------- Comment(by david.reitter@…): {{{ port info clang clang @2.9, Revision 1 (lang) Replaced by: clang-2.9 Variants: universal}}} -- Ticket URL: <https://trac.macports.org/ticket/33315#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33315: libzzip: universal variant fails with clang -------------------------------------+-------------------------------------- Reporter: david.reitter@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: clang universal | Port: libzzip -------------------------------------+-------------------------------------- Changes (by ryandesign@…): * keywords: clang => clang universal * cc: david.reitter@… (removed) Old description:
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
New description: 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 -- Comment: 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. -- Ticket URL: <https://trac.macports.org/ticket/33315#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33315: libzzip: universal variant fails with clang -------------------------------------+-------------------------------------- Reporter: david.reitter@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: clang universal | Port: libzzip -------------------------------------+-------------------------------------- Changes (by ryandesign@…): * status: new => assigned * owner: macports-tickets@… => ryandesign@… Comment: The problem is that we fix the `--export-dynamic` problem like this: {{{ post-patch { reinplace {/ZZIPLIB_LDFLAGS=/s/--export-dynamic/-export-dynamic/} \ ${worksrcpath}/configure } }}} But when the universal variant is selected we do this: {{{ if {[variant_isset universal]} { patchfiles-append patch-configure.ac.diff use_autoconf yes } }}} This causes autoconf to run, thus regenerating configure from configure.ac and wiping out what we did in our reinplace. It would be simplest if we get rid of the reinplace and turn it into a patch-configure.diff, and also add the patch to the existing patch- configure.ac.diff for when the universal variant is used. -- Ticket URL: <https://trac.macports.org/ticket/33315#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33315: libzzip: universal variant fails with clang --------------------------------------+------------------------------------- Reporter: david.reitter@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: clang universal Port: libzzip | --------------------------------------+------------------------------------- Changes (by ryandesign@…): * status: assigned => closed * resolution: => fixed Comment: r90077 -- Ticket URL: <https://trac.macports.org/ticket/33315#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33315: libzzip: universal variant fails with clang --------------------------------------+------------------------------------- Reporter: david.reitter@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: clang universal Port: libzzip | --------------------------------------+------------------------------------- Comment(by david.reitter@…): Thank you! I do need +universal (it's i386 and x86_64 for me) due to many problems with building non-MacPorts software when linking against libraries. -- Ticket URL: <https://trac.macports.org/ticket/33315#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts