Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#64261 closed defect (fixed)

zstd fails to build for ppc+ppc64

Reported by: barracuda156 Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: PowerPC, Leopard, ppc64 Cc:
Port: zstd

Description

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
--->  Building zstd
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/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'
/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/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
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/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
/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
/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
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
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]: *** Waiting for unfinished jobs....
make[2]: *** [obj/conf_c535b5fa669a14055e5abee73c125472/static/entropy_common.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
/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
CC obj/conf_1038b97bb1f118cc26ca5bbc799de856/dynamic/entropy_common.o
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
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/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
/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
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]: *** Waiting for unfinished jobs....
make[2]: gcc-4.2: *** [obj/conf_1038b97bb1f118cc26ca5bbc799de856/dynamic/entropy_common.o] Error 1-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]: *** [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/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'
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" && /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

Change History (12)

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

It may be necessary to have the portfile use the muniversal portgroup to accommodate this.

comment:2 in reply to:  1 Changed 3 years ago by barracuda156

Replying to ryandesign:

It may be necessary to have the portfile use the muniversal portgroup to accommodate this.

Is this something related to: https://trac.macports.org/ticket/17972 Or how should I add this portgroup to the portfile?

Version 0, edited 3 years ago by barracuda156 (next)

comment:3 Changed 3 years ago by kencu (Ken)

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"

comment:4 in reply to:  3 Changed 3 years ago by barracuda156

Replying to 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

comment:5 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

The zstd port does not use a configure script and contains much code to manually perform a "normal" universal build. When switching to the muniversal portgroup, all of that has to be removed or possibly adapted to allow the muniveral portgroup to do its "other" kind of universal build.

comment:6 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Status: newaccepted

The port needs to be updated to 1.5.1 anyway. I'll see about switching to muniversal in the process of doing that.

comment:7 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

With muniversal, zstd @1.5.1_0+universal builds fine for me on Lion, but then @1.5.0_0+universal did too, so you'll have to see if this helps your PowerPC build. (The problem in your case is gcc-4.2; on Lion I'm of course using clang which evidently doesn't have the same restrictions about -E, -S, -save-temps and -M flags.)

comment:8 in reply to:  6 Changed 3 years ago by barracuda156

Replying to ryandesign:

The port needs to be updated to 1.5.1 anyway. I'll see about switching to muniversal in the process of doing that.

Thank you!

As for compilers, I can try a newer gcc instead.

comment:9 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

I don't suggest trying a newer gcc. Using an muniversal build will avoid this particular problem with old gcc, since then there will not be multiple -arch flags.

comment:10 in reply to:  9 Changed 3 years ago by barracuda156

Replying to ryandesign:

I don't suggest trying a newer gcc. Using an muniversal build will avoid this particular problem with old gcc, since then there will not be multiple -arch flags.

Got it, thank you.

comment:11 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In 31f268fe14ee039005e8cabbef9eef4671d73c0a/macports-ports (master):

zstd: Update to 1.5.0; use portgroups

Use makefile portgroup to reduce code duplication.

Use muniversal portgroup to fix universal build when old gcc is used.

Closes: #64261

comment:12 in reply to:  11 Changed 3 years ago by barracuda156

Replying to ryandesign:

In 31f268fe14ee039005e8cabbef9eef4671d73c0a/macports-ports (master):

zstd: Update to 1.5.0; use portgroups

Use makefile portgroup to reduce code duplication.

Use muniversal portgroup to fix universal build when old gcc is used.

Closes: #64261

I can confirm zstd builds now with no issues or tweaks:

36-225:Python-2.7.18 svacchanda$ port -v installed zstd
The following ports are currently installed:
  zstd @1.5.0_0 requested_variants='-universal' platform='darwin 9' archs='ppc' date='2021-12-22T08:34:17+0800'
  zstd @1.5.1_0+universal (active) requested_variants='+universal' platform='darwin 9' archs='ppc ppc64' date='2021-12-24T07:31:33+0800
> }}}

Thank you!

Note: See TracTickets for help on using tickets.