[MacPorts] #69614: minizip fails to build as universal (i386 + x86_64): llvm-gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags

MacPorts noreply at macports.org
Thu Mar 28 23:10:23 UTC 2024


#69614: minizip fails to build as universal (i386 + x86_64): llvm-gcc-4.2: -E, -S,
-save-temps and -M options are not allowed with multiple -arch flags
---------------------------------------+------------------------
 Reporter:  barracuda156               |      Owner:  ryandesign
     Type:  defect                     |     Status:  assigned
 Priority:  Normal                     |  Milestone:
Component:  ports                      |    Version:  2.9.1
 Keywords:  snowleopard, i386, x86_64  |       Port:  minizip
---------------------------------------+------------------------
 {{{
 --->  Configuring minizip
 Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zlib/minizip/work/zlib-1.3.1/contrib/minizip"
 && autoreconf -fvi
 autoreconf: export WARNINGS=
 autoreconf: Entering directory '.'
 autoreconf: configure.ac: not using Gettext
 autoreconf: running: /opt/local/bin/aclocal --force
 autoreconf: configure.ac: tracing
 autoreconf: running: /opt/local/bin/glibtoolize --copy --force
 glibtoolize: putting auxiliary files in '.'.
 glibtoolize: copying file './ltmain.sh'
 glibtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
 glibtoolize: and rerunning glibtoolize and aclocal.
 glibtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
 autoreconf: configure.ac: not using Intltool
 autoreconf: configure.ac: not using Gtkdoc
 autoreconf: running: /opt/local/bin/aclocal --force
 autoreconf: running: /opt/local/bin/autoconf --force
 configure.ac:10: warning: The macro 'AC_HELP_STRING' is obsolete.
 configure.ac:10: You should run autoupdate.
 ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
 configure.ac:10: the top level
 autoreconf: configure.ac: not using Autoheader
 autoreconf: running: /opt/local/bin/automake --add-missing --copy --force-
 missing
 configure.ac:7: installing './compile'
 configure.ac:7: installing './config.guess'
 configure.ac:7: installing './config.sub'
 configure.ac:6: installing './install-sh'
 configure.ac:6: installing './missing'
 Makefile.am: installing './depcomp'
 autoreconf: './install-sh' is updated
 autoreconf: './config.sub' is updated
 autoreconf: './config.guess' is updated
 autoreconf: Leaving directory '.'
 Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zlib/minizip/work/zlib-1.3.1/contrib/minizip"
 && ./configure --prefix=/opt/local --enable-demos
 checking for a BSD-compatible install... /usr/bin/install -c
 checking whether build environment is sane... yes
 checking for a race-free mkdir -p... /opt/local/bin/gmkdir -p
 checking for gawk... gawk
 checking whether make sets $(MAKE)... yes
 checking whether make supports nested variables... yes
 checking build system type... x86_64-apple-darwin10.8.0
 checking host system type... x86_64-apple-darwin10.8.0
 checking how to print strings... printf
 checking whether make supports the include directive... yes (GNU style)
 checking for gcc... /usr/bin/llvm-gcc-4.2
 checking whether the C compiler works... yes
 checking for C compiler default output file name... a.out
 checking for suffix of executables...
 checking whether we are cross compiling... no
 checking for suffix of object files... o
 checking whether the compiler supports GNU C... yes
 checking whether /usr/bin/llvm-gcc-4.2 accepts -g... yes
 checking for /usr/bin/llvm-gcc-4.2 option to enable C11 features...
 unsupported
 checking for /usr/bin/llvm-gcc-4.2 option to enable C99 features...
 -std=gnu99
 checking whether /usr/bin/llvm-gcc-4.2 -std=gnu99 understands -c and -o
 together... yes
 checking dependency style of /usr/bin/llvm-gcc-4.2 -std=gnu99... gcc3
 checking for a sed that does not truncate output... /opt/local/bin/gsed
 checking for grep that handles long lines and -e... /opt/local/bin/ggrep
 checking for egrep... /opt/local/bin/ggrep -E
 checking for fgrep... /opt/local/bin/ggrep -F
 checking for ld used by /usr/bin/llvm-gcc-4.2 -std=gnu99... /usr/llvm-
 gcc-4.2/libexec/gcc/i686-apple-darwin10/4.2.1/ld
 checking if the linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-
 darwin10/4.2.1/ld) is GNU ld... no
 checking for BSD- or MS-compatible name lister (nm)... /opt/local/bin/nm
 checking the name lister (/opt/local/bin/nm) interface... BSD nm
 checking whether ln -s works... yes
 checking the maximum length of command line arguments... 196608
 checking how to convert x86_64-apple-darwin10.8.0 file names to x86_64
 -apple-darwin10.8.0 format... func_convert_file_noop
 checking how to convert x86_64-apple-darwin10.8.0 file names to toolchain
 format... func_convert_file_noop
 checking for /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin10/4.2.1/ld
 option to reload object files... -r
 checking for file... file
 checking for objdump... no
 checking how to recognize dependent libraries... pass_all
 checking for dlltool... no
 checking how to associate runtime and link libraries... printf %s\n
 checking for ar... ar
 checking for archiver @FILE support... no
 checking for strip... strip
 checking for ranlib... ranlib
 checking command to parse /opt/local/bin/nm output from /usr/bin/llvm-
 gcc-4.2 -std=gnu99 object... ok
 checking for sysroot... no
 checking for a working dd... /bin/dd
 checking how to truncate binary pipes... /bin/dd bs=4096 count=1
 checking for mt... no
 checking if : is a manifest tool... no
 checking for dsymutil... dsymutil
 checking for nmedit... nmedit
 checking for lipo... lipo
 checking for otool... otool
 checking for otool64... no
 checking for -single_module linker flag... yes
 checking for -exported_symbols_list linker flag... yes
 checking for -force_load linker flag... yes
 checking for stdio.h... yes
 checking for stdlib.h... yes
 checking for string.h... yes
 checking for inttypes.h... yes
 checking for stdint.h... yes
 checking for strings.h... yes
 checking for sys/stat.h... yes
 checking for sys/types.h... yes
 checking for unistd.h... yes
 checking for dlfcn.h... yes
 checking for objdir... .libs
 checking if /usr/bin/llvm-gcc-4.2 -std=gnu99 supports -fno-rtti -fno-
 exceptions... no
 checking for /usr/bin/llvm-gcc-4.2 -std=gnu99 option to produce PIC...
 -fno-common -DPIC
 checking if /usr/bin/llvm-gcc-4.2 -std=gnu99 PIC flag -fno-common -DPIC
 works... yes
 checking if /usr/bin/llvm-gcc-4.2 -std=gnu99 static flag -static works...
 no
 checking if /usr/bin/llvm-gcc-4.2 -std=gnu99 supports -c -o file.o... yes
 checking if /usr/bin/llvm-gcc-4.2 -std=gnu99 supports -c -o file.o...
 (cached) yes
 checking whether the /usr/bin/llvm-gcc-4.2 -std=gnu99 linker (/usr/llvm-
 gcc-4.2/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared
 libraries... yes
 checking dynamic linker characteristics... darwin10.8.0 dyld
 checking how to hardcode library paths into programs... immediate
 checking whether stripping libraries is possible... yes
 checking if libtool supports shared libraries... yes
 checking whether to build shared libraries... yes
 checking whether to build static libraries... yes
 checking whether to build example programs... yes
 checking for unistd.h... (cached) yes
 checking that generated files are newer than configure... done
 configure: creating ./config.status
 config.status: creating Makefile
 config.status: creating minizip.pc
 config.status: executing depfiles commands
 config.status: executing libtool commands
 --->  Building minizip
 Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zlib/minizip/work/zlib-1.3.1/contrib/minizip"
 && /usr/bin/make -j6 -w all
 make: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zlib/minizip/work/zlib-1.3.1/contrib/minizip'
 /usr/bin/llvm-gcc-4.2 -std=gnu99 -DPACKAGE_NAME=\"minizip\"
 -DPACKAGE_TARNAME=\"minizip\" -DPACKAGE_VERSION=\"1.3.1\"
 -DPACKAGE_STRING=\"minizip\ 1.3.1\"
 -DPACKAGE_BUGREPORT=\"bugzilla.redhat.com\" -DPACKAGE_URL=\"\"
 -DPACKAGE=\"minizip\" -DVERSION=\"1.3.1\" -DHAVE_STDIO_H=1
 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1
 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\"
 -I.  -I./../.. -I/opt/local/include  -pipe -Os -arch x86_64 -arch i386 -MT
 miniunz.o -MD -MP -MF .deps/miniunz.Tpo -c -o miniunz.o miniunz.c
 /bin/sh ./libtool  --tag=CC   --mode=compile /usr/bin/llvm-gcc-4.2
 -std=gnu99 -DPACKAGE_NAME=\"minizip\" -DPACKAGE_TARNAME=\"minizip\"
 -DPACKAGE_VERSION=\"1.3.1\" -DPACKAGE_STRING=\"minizip\ 1.3.1\"
 -DPACKAGE_BUGREPORT=\"bugzilla.redhat.com\" -DPACKAGE_URL=\"\"
 -DPACKAGE=\"minizip\" -DVERSION=\"1.3.1\" -DHAVE_STDIO_H=1
 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1
 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\"
 -I.  -I./../.. -I/opt/local/include  -pipe -Os -arch x86_64 -arch i386 -MT
 ioapi.lo -MD -MP -MF .deps/ioapi.Tpo -c -o ioapi.lo ioapi.c
 /bin/sh ./libtool  --tag=CC   --mode=compile /usr/bin/llvm-gcc-4.2
 -std=gnu99 -DPACKAGE_NAME=\"minizip\" -DPACKAGE_TARNAME=\"minizip\"
 -DPACKAGE_VERSION=\"1.3.1\" -DPACKAGE_STRING=\"minizip\ 1.3.1\"
 -DPACKAGE_BUGREPORT=\"bugzilla.redhat.com\" -DPACKAGE_URL=\"\"
 -DPACKAGE=\"minizip\" -DVERSION=\"1.3.1\" -DHAVE_STDIO_H=1
 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1
 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\"
 -I.  -I./../.. -I/opt/local/include  -pipe -Os -arch x86_64 -arch i386 -MT
 mztools.lo -MD -MP -MF .deps/mztools.Tpo -c -o mztools.lo mztools.c
 /bin/sh ./libtool  --tag=CC   --mode=compile /usr/bin/llvm-gcc-4.2
 -std=gnu99 -DPACKAGE_NAME=\"minizip\" -DPACKAGE_TARNAME=\"minizip\"
 -DPACKAGE_VERSION=\"1.3.1\" -DPACKAGE_STRING=\"minizip\ 1.3.1\"
 -DPACKAGE_BUGREPORT=\"bugzilla.redhat.com\" -DPACKAGE_URL=\"\"
 -DPACKAGE=\"minizip\" -DVERSION=\"1.3.1\" -DHAVE_STDIO_H=1
 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1
 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\"
 -I.  -I./../.. -I/opt/local/include  -pipe -Os -arch x86_64 -arch i386 -MT
 unzip.lo -MD -MP -MF .deps/unzip.Tpo -c -o unzip.lo unzip.c
 llvm-gcc-4.2: -E, -S, -save-temps and -M options are not allowed with
 multiple -arch flags
 /bin/sh ./libtool  --tag=CC   --mode=compile /usr/bin/llvm-gcc-4.2
 -std=gnu99 -DPACKAGE_NAME=\"minizip\" -DPACKAGE_TARNAME=\"minizip\"
 -DPACKAGE_VERSION=\"1.3.1\" -DPACKAGE_STRING=\"minizip\ 1.3.1\"
 -DPACKAGE_BUGREPORT=\"bugzilla.redhat.com\" -DPACKAGE_URL=\"\"
 -DPACKAGE=\"minizip\" -DVERSION=\"1.3.1\" -DHAVE_STDIO_H=1
 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1
 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\"
 -I.  -I./../.. -I/opt/local/include  -pipe -Os -arch x86_64 -arch i386 -MT
 zip.lo -MD -MP -MF .deps/zip.Tpo -c -o zip.lo zip.c
 make: *** [miniunz.o] Error 1
 make: *** Waiting for unfinished jobs....
 libtool: compile:  /usr/bin/llvm-gcc-4.2 -std=gnu99
 -DPACKAGE_NAME=\"minizip\" -DPACKAGE_TARNAME=\"minizip\"
 -DPACKAGE_VERSION=\"1.3.1\" "-DPACKAGE_STRING=\"minizip 1.3.1\""
 -DPACKAGE_BUGREPORT=\"bugzilla.redhat.com\" -DPACKAGE_URL=\"\"
 -DPACKAGE=\"minizip\" -DVERSION=\"1.3.1\" -DHAVE_STDIO_H=1
 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1
 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\"
 -I. -I./../.. -I/opt/local/include -pipe -Os -arch x86_64 -arch i386 -MT
 unzip.lo -MD -MP -MF .deps/unzip.Tpo -c unzip.c  -fno-common -DPIC -o
 .libs/unzip.o
 llvm-gcc-4.2: -E, -S, -save-temps and -M options are not allowed with
 multiple -arch flags
 libtool: compile:  /usr/bin/llvm-gcc-4.2 -std=gnu99
 -DPACKAGE_NAME=\"minizip\" -DPACKAGE_TARNAME=\"minizip\"
 -DPACKAGE_VERSION=\"1.3.1\" "-DPACKAGE_STRING=\"minizip 1.3.1\""
 -DPACKAGE_BUGREPORT=\"bugzilla.redhat.com\" -DPACKAGE_URL=\"\"
 -DPACKAGE=\"minizip\" -DVERSION=\"1.3.1\" -DHAVE_STDIO_H=1
 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1
 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\"
 -I. -I./../.. -I/opt/local/include -pipe -Os -arch x86_64 -arch i386 -MT
 ioapi.lo -MD -MP -MF .deps/ioapi.Tpo -c ioapi.c  -fno-common -DPIC -o
 .libs/ioapi.o
 libtool: compile:  /usr/bin/llvm-gcc-4.2 -std=gnu99
 -DPACKAGE_NAME=\"minizip\" -DPACKAGE_TARNAME=\"minizip\"
 -DPACKAGE_VERSION=\"1.3.1\" "-DPACKAGE_STRING=\"minizip 1.3.1\""
 -DPACKAGE_BUGREPORT=\"bugzilla.redhat.com\" -DPACKAGE_URL=\"\"
 -DPACKAGE=\"minizip\" -DVERSION=\"1.3.1\" -DHAVE_STDIO_H=1
 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1
 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\"
 -I. -I./../.. -I/opt/local/include -pipe -Os -arch x86_64 -arch i386 -MT
 mztools.lo -MD -MP -MF .deps/mztools.Tpo -c mztools.c  -fno-common -DPIC
 -o .libs/mztools.o
 libtool: compile:  /usr/bin/llvm-gcc-4.2 -std=gnu99
 -DPACKAGE_NAME=\"minizip\" -DPACKAGE_TARNAME=\"minizip\"
 -DPACKAGE_VERSION=\"1.3.1\" "-DPACKAGE_STRING=\"minizip 1.3.1\""
 -DPACKAGE_BUGREPORT=\"bugzilla.redhat.com\" -DPACKAGE_URL=\"\"
 -DPACKAGE=\"minizip\" -DVERSION=\"1.3.1\" -DHAVE_STDIO_H=1
 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1
 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\"
 -I. -I./../.. -I/opt/local/include -pipe -Os -arch x86_64 -arch i386 -MT
 zip.lo -MD -MP -MF .deps/zip.Tpo -c zip.c  -fno-common -DPIC -o
 .libs/zip.o
 make: *** [unzip.lo] Error 1
 llvm-gcc-4.2: -E, -S, -save-temps and -M options are not allowed with
 multiple -arch flags
 llvm-gcc-4.2: -E, -S, -save-temps and -M options are not allowed with
 multiple -arch flags
 llvm-gcc-4.2: -E, -S, -save-temps and -M options are not allowed with
 multiple -arch flags
 make: *** [mztools.lo] Error 1
 make: *** [ioapi.lo] Error 1
 make: *** [zip.lo] Error 1
 }}}

 This is standard 10.6.8 with Xcode 4.2.

-- 
Ticket URL: <https://trac.macports.org/ticket/69614>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list