[MacPorts] #64261: zstd fails to build for ppc+ppc64

MacPorts noreply at macports.org
Wed Dec 22 06:51:14 UTC 2021


#64261: zstd fails to build for ppc+ppc64
---------------------------+-------------------------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.1
Resolution:                |   Keywords:  PowerPC, Leopard, ppc64
      Port:  zstd          |
---------------------------+-------------------------------------

Comment (by barracuda156):

 Replying to [comment:3 kencu]:
 > You want to look at {{{PortGroup muninversal 1.0}}} here:
 >
 > https://github.com/macports/macports-
 ports/blob/master/_resources/port1.0/group/muniversal-1.0.tcl
 >
 > it is actually much easier to use that it looks at first glance.
 >
 > In most cases, you just add the PortGroup to the Portfile, and it "Just
 Works TM"

 I have added the line to portfile:


 {{{
 PortSystem          1.0
 PortGroup           github 1.0
 PortGroup           clang_dependency 1.0
 PortGroup           muniversal 1.0
 }}}


 Unfortunately, it still fails:


 {{{
 Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstd/work"
 && /usr/bin/gzip -dc
 '/opt/local/var/macports/distfiles/zstd/zstd-1.5.0.tar.gz' |
 /usr/bin/gnutar --no-same-owner -xf -
 --->  Applying patches to zstd
 --->  Applying patch-zstd-tiger-no-backtrace.diff
 Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstd/work/zstd-1.5.0"
 && /usr/bin/patch -p0 <
 '/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/archivers/zstd/files
 /patch-zstd-tiger-no-backtrace.diff'
 patching file programs/fileio.c
 Hunk #1 succeeded at 186 (offset 10 lines).
 --->  Patching Makefile: s/-Wvla //g
 --->  Patching Makefile: s/-Wvla //g
 --->  Patching Makefile: s/-Wvla //g
 --->  Patching Makefile: s/-Wvla //g
 --->  Configuring zstd
 --->  Configuring zstd for architecture ppc64
 --->  Configuring zstd for architecture ppc
 --->  Building zstd
 --->  Building zstd for architecture ppc64
 Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstd/work/zstd-1.5.0-ppc64"
 && /usr/bin/make -j4 -w allmost V=1
 make: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstd/work/zstd-1.5.0-ppc64'
 /usr/bin/make -C lib lib
 make[1]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstd/work/zstd-1.5.0-ppc64/lib'
 /usr/bin/make --no-print-directory libzstd.a
 BUILD_DIR=obj/conf_c535b5fa669a14055e5abee73c125472
 CPPFLAGS="-DXXH_NAMESPACE=ZSTD_ -DDEBUGLEVEL=0 -DZSTD_LEGACY_SUPPORT=5 "
 CFLAGS="-Os -arch ppc64 -arch ppc -O3 -Wall -Wextra -Wcast-qual -Wcast-
 align -Wshadow -Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-after-
 statement -Wstrict-prototypes -Wundef -Wpointer-arith -Wformat=2 -Winit-
 self -Wfloat-equal -Wwrite-strings -Wredundant-decls -Wmissing-prototypes
 -Wc++-compat " LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names
 -arch ppc64 -arch ppc"
 /usr/bin/make --no-print-directory libzstd.1.5.0.dylib
 BUILD_DIR=obj/conf_1038b97bb1f118cc26ca5bbc799de856
 CPPFLAGS="-DXXH_NAMESPACE=ZSTD_ -DDEBUGLEVEL=0 -DZSTD_LEGACY_SUPPORT=5
 -DZSTD_MULTITHREAD " CFLAGS="-Os -arch ppc64 -arch ppc -O3 -Wall -Wextra
 -Wcast-qual -Wcast-align -Wshadow -Wstrict-aliasing=1 -Wswitch-enum
 -Wdeclaration-after-statement -Wstrict-prototypes -Wundef -Wpointer-arith
 -Wformat=2 -Winit-self -Wfloat-equal -Wwrite-strings -Wredundant-decls
 -Wmissing-prototypes -Wc++-compat  -fPIC -fvisibility=hidden"
 LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc64
 -arch ppc -shared -pthread"
 mkdir -p obj/conf_c535b5fa669a14055e5abee73c125472/static
 mkdir -p obj/conf_1038b97bb1f118cc26ca5bbc799de856/dynamic
 CC obj/conf_c535b5fa669a14055e5abee73c125472/static/debug.o
 CC obj/conf_c535b5fa669a14055e5abee73c125472/static/entropy_common.o
 /usr/bin/gcc-4.2 -Os -arch ppc64 -arch ppc -O3 -Wall -Wextra -Wcast-qual
 -Wcast-align -Wshadow -Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-
 after-statement -Wstrict-prototypes -Wundef -Wpointer-arith -Wformat=2
 -Winit-self -Wfloat-equal -Wwrite-strings -Wredundant-decls -Wmissing-
 prototypes -Wc++-compat  -DXXH_NAMESPACE=ZSTD_ -DDEBUGLEVEL=0
 -DZSTD_LEGACY_SUPPORT=5   -c -MT
 obj/conf_c535b5fa669a14055e5abee73c125472/static/entropy_common.o -MMD -MP
 -MF obj/conf_c535b5fa669a14055e5abee73c125472/static/entropy_common.d -o
 obj/conf_c535b5fa669a14055e5abee73c125472/static/entropy_common.o
 common/entropy_common.c
 CC obj/conf_c535b5fa669a14055e5abee73c125472/static/error_private.o
 /usr/bin/gcc-4.2 -Os -arch ppc64 -arch ppc -O3 -Wall -Wextra -Wcast-qual
 -Wcast-align -Wshadow -Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-
 after-statement -Wstrict-prototypes -Wundef -Wpointer-arith -Wformat=2
 -Winit-self -Wfloat-equal -Wwrite-strings -Wredundant-decls -Wmissing-
 prototypes -Wc++-compat  -DXXH_NAMESPACE=ZSTD_ -DDEBUGLEVEL=0
 -DZSTD_LEGACY_SUPPORT=5   -c -MT
 obj/conf_c535b5fa669a14055e5abee73c125472/static/debug.o -MMD -MP -MF
 obj/conf_c535b5fa669a14055e5abee73c125472/static/debug.d -o
 obj/conf_c535b5fa669a14055e5abee73c125472/static/debug.o common/debug.c
 /usr/bin/gcc-4.2 -Os -arch ppc64 -arch ppc -O3 -Wall -Wextra -Wcast-qual
 -Wcast-align -Wshadow -Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-
 after-statement -Wstrict-prototypes -Wundef -Wpointer-arith -Wformat=2
 -Winit-self -Wfloat-equal -Wwrite-strings -Wredundant-decls -Wmissing-
 prototypes -Wc++-compat  -DXXH_NAMESPACE=ZSTD_ -DDEBUGLEVEL=0
 -DZSTD_LEGACY_SUPPORT=5   -c -MT
 obj/conf_c535b5fa669a14055e5abee73c125472/static/error_private.o -MMD -MP
 -MF obj/conf_c535b5fa669a14055e5abee73c125472/static/error_private.d -o
 obj/conf_c535b5fa669a14055e5abee73c125472/static/error_private.o
 common/error_private.c
 gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple
 -arch flags
 make[2]: ***
 [obj/conf_c535b5fa669a14055e5abee73c125472/static/entropy_common.o] Error
 1
 make[2]: *** Waiting for unfinished jobs....
 gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple
 -arch flags
 gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple
 -arch flags
 make[2]: ***
 [obj/conf_c535b5fa669a14055e5abee73c125472/static/error_private.o] Error 1
 make[2]: *** [obj/conf_c535b5fa669a14055e5abee73c125472/static/debug.o]
 Error 1
 make[1]: *** [libzstd.a] Error 2
 make[1]: *** Waiting for unfinished jobs....
 CC obj/conf_1038b97bb1f118cc26ca5bbc799de856/dynamic/debug.o
 CC obj/conf_1038b97bb1f118cc26ca5bbc799de856/dynamic/entropy_common.o
 /usr/bin/gcc-4.2 -Os -arch ppc64 -arch ppc -O3 -Wall -Wextra -Wcast-qual
 -Wcast-align -Wshadow -Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-
 after-statement -Wstrict-prototypes -Wundef -Wpointer-arith -Wformat=2
 -Winit-self -Wfloat-equal -Wwrite-strings -Wredundant-decls -Wmissing-
 prototypes -Wc++-compat  -fPIC -fvisibility=hidden -DXXH_NAMESPACE=ZSTD_
 -DDEBUGLEVEL=0 -DZSTD_LEGACY_SUPPORT=5 -DZSTD_MULTITHREAD   -c -MT
 obj/conf_1038b97bb1f118cc26ca5bbc799de856/dynamic/debug.o -MMD -MP -MF
 obj/conf_1038b97bb1f118cc26ca5bbc799de856/dynamic/debug.d -o
 obj/conf_1038b97bb1f118cc26ca5bbc799de856/dynamic/debug.o common/debug.c
 /usr/bin/gcc-4.2 -Os -arch ppc64 -arch ppc -O3 -Wall -Wextra -Wcast-qual
 -Wcast-align -Wshadow -Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-
 after-statement -Wstrict-prototypes -Wundef -Wpointer-arith -Wformat=2
 -Winit-self -Wfloat-equal -Wwrite-strings -Wredundant-decls -Wmissing-
 prototypes -Wc++-compat  -fPIC -fvisibility=hidden -DXXH_NAMESPACE=ZSTD_
 -DDEBUGLEVEL=0 -DZSTD_LEGACY_SUPPORT=5 -DZSTD_MULTITHREAD   -c -MT
 obj/conf_1038b97bb1f118cc26ca5bbc799de856/dynamic/entropy_common.o -MMD
 -MP -MF obj/conf_1038b97bb1f118cc26ca5bbc799de856/dynamic/entropy_common.d
 -o obj/conf_1038b97bb1f118cc26ca5bbc799de856/dynamic/entropy_common.o
 common/entropy_common.c
 CC obj/conf_1038b97bb1f118cc26ca5bbc799de856/dynamic/error_private.o
 /usr/bin/gcc-4.2 -Os -arch ppc64 -arch ppc -O3 -Wall -Wextra -Wcast-qual
 -Wcast-align -Wshadow -Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-
 after-statement -Wstrict-prototypes -Wundef -Wpointer-arith -Wformat=2
 -Winit-self -Wfloat-equal -Wwrite-strings -Wredundant-decls -Wmissing-
 prototypes -Wc++-compat  -fPIC -fvisibility=hidden -DXXH_NAMESPACE=ZSTD_
 -DDEBUGLEVEL=0 -DZSTD_LEGACY_SUPPORT=5 -DZSTD_MULTITHREAD   -c -MT
 obj/conf_1038b97bb1f118cc26ca5bbc799de856/dynamic/error_private.o -MMD -MP
 -MF obj/conf_1038b97bb1f118cc26ca5bbc799de856/dynamic/error_private.d -o
 obj/conf_1038b97bb1f118cc26ca5bbc799de856/dynamic/error_private.o
 common/error_private.c
 gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple
 -arch flags
 make[2]: *** [obj/conf_1038b97bb1f118cc26ca5bbc799de856/dynamic/debug.o]
 Error 1
 make[2]: *** Waiting for unfinished jobs....
 gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple
 -arch flags
 gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple
 -arch flags
 make[2]: ***
 [obj/conf_1038b97bb1f118cc26ca5bbc799de856/dynamic/error_private.o] Error
 1
 make[2]: ***
 [obj/conf_1038b97bb1f118cc26ca5bbc799de856/dynamic/entropy_common.o] Error
 1
 CC obj/conf_1038b97bb1f118cc26ca5bbc799de856/dynamic/fse_decompress.o
 /usr/bin/gcc-4.2 -Os -arch ppc64 -arch ppc -O3 -Wall -Wextra -Wcast-qual
 -Wcast-align -Wshadow -Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-
 after-statement -Wstrict-prototypes -Wundef -Wpointer-arith -Wformat=2
 -Winit-self -Wfloat-equal -Wwrite-strings -Wredundant-decls -Wmissing-
 prototypes -Wc++-compat  -fPIC -fvisibility=hidden -DXXH_NAMESPACE=ZSTD_
 -DDEBUGLEVEL=0 -DZSTD_LEGACY_SUPPORT=5 -DZSTD_MULTITHREAD   -c -MT
 obj/conf_1038b97bb1f118cc26ca5bbc799de856/dynamic/fse_decompress.o -MMD
 -MP -MF obj/conf_1038b97bb1f118cc26ca5bbc799de856/dynamic/fse_decompress.d
 -o obj/conf_1038b97bb1f118cc26ca5bbc799de856/dynamic/fse_decompress.o
 common/fse_decompress.c
 gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple
 -arch flags
 make[2]: ***
 [obj/conf_1038b97bb1f118cc26ca5bbc799de856/dynamic/fse_decompress.o] Error
 1
 make[1]: *** [libzstd.1.5.0.dylib] Error 2
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstd/work/zstd-1.5.0-ppc64/lib'
 make: *** [lib] Error 2
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstd/work/zstd-1.5.0-ppc64'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstd/work/zstd-1.5.0-ppc64"
 && /usr/bin/make -j4 -w allmost V=1
 Exit code: 2
 Error: Failed to build zstd: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstd/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there
 is a bug.
 Error: Processing of port zstd failed
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/64261#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list