Opened 3 years ago

Last modified 12 months ago

#64784 assigned defect

brotli fails to build for ppc+ppc64 on Leopard: need to add muniversal PortGroup

Reported by: barracuda156 Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: powerpc leopard ppc64 universal legacy-os Cc:
Port: brotli

Description (last modified by barracuda156)

As it is, brotli fails as +universal on Leopard with: gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags.

--->  Building brotli
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9" && /usr/bin/make -j4 -w all VERBOSE=ON 
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/google-brotli-e61745a'
/opt/local/bin/cmake -S/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9 -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9 --check-build-system CMakeFiles/Makefile.cmake 0
/opt/local/bin/cmake -E cmake_progress_start /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9/CMakeFiles /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9//CMakeFiles/progress.marks
/usr/bin/make  -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/google-brotli-e61745a'
/usr/bin/make  -f CMakeFiles/brotlicommon.dir/build.make CMakeFiles/brotlicommon.dir/depend
/usr/bin/make  -f CMakeFiles/brotlicommon-static.dir/build.make CMakeFiles/brotlicommon-static.dir/depend
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/google-brotli-e61745a'
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9 && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9/CMakeFiles/brotlicommon.dir/DependInfo.cmake --color=
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/google-brotli-e61745a'
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9 && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9/CMakeFiles/brotlicommon-static.dir/DependInfo.cmake --color=
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/google-brotli-e61745a'
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/google-brotli-e61745a'
/usr/bin/make  -f CMakeFiles/brotlicommon.dir/build.make CMakeFiles/brotlicommon.dir/build
/usr/bin/make  -f CMakeFiles/brotlicommon-static.dir/build.make CMakeFiles/brotlicommon-static.dir/build
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/google-brotli-e61745a'
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/google-brotli-e61745a'
[  1%] Building C object CMakeFiles/brotlicommon-static.dir/c/common/context.c.o
[  3%] Building C object CMakeFiles/brotlicommon.dir/c/common/constants.c.o
/usr/bin/gcc-4.2 -DBROTLI_HAVE_LOG2=1 -DOS_MACOSX -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9/c/include -pipe -Os -DNDEBUG -arch ppc -arch ppc64 -mmacosx-version-min=10.5 -fPIC -MD -MT CMakeFiles/brotlicommon-static.dir/c/common/context.c.o -MF CMakeFiles/brotlicommon-static.dir/c/common/context.c.o.d -o CMakeFiles/brotlicommon-static.dir/c/common/context.c.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9/c/common/context.c
/usr/bin/gcc-4.2 -DBROTLICOMMON_SHARED_COMPILATION -DBROTLI_HAVE_LOG2=1 -DBROTLI_SHARED_COMPILATION -DOS_MACOSX -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9/c/include -pipe -Os -DNDEBUG -arch ppc -arch ppc64 -mmacosx-version-min=10.5 -fPIC -MD -MT CMakeFiles/brotlicommon.dir/c/common/constants.c.o -MF CMakeFiles/brotlicommon.dir/c/common/constants.c.o.d -o CMakeFiles/brotlicommon.dir/c/common/constants.c.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9/c/common/constants.c
[  4%] Building C object CMakeFiles/brotlicommon.dir/c/common/context.c.o
gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
make[2]: *** [CMakeFiles/brotlicommon-static.dir/c/common/context.c.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
[  6%] Building C object CMakeFiles/brotlicommon-static.dir/c/common/constants.c.o
make[2]: *** [CMakeFiles/brotlicommon.dir/c/common/constants.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/bin/gcc-4.2 -DBROTLICOMMON_SHARED_COMPILATION -DBROTLI_HAVE_LOG2=1 -DBROTLI_SHARED_COMPILATION -DOS_MACOSX -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9/c/include -pipe -Os -DNDEBUG -arch ppc -arch ppc64 -mmacosx-version-min=10.5 -fPIC -MD -MT CMakeFiles/brotlicommon.dir/c/common/context.c.o -MF CMakeFiles/brotlicommon.dir/c/common/context.c.o.d -o CMakeFiles/brotlicommon.dir/c/common/context.c.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9/c/common/context.c
/usr/bin/gcc-4.2 -DBROTLI_HAVE_LOG2=1 -DOS_MACOSX -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9/c/include -pipe -Os -DNDEBUG -arch ppc -arch ppc64 -mmacosx-version-min=10.5 -fPIC -MD -MT CMakeFiles/brotlicommon-static.dir/c/common/constants.c.o -MF CMakeFiles/brotlicommon-static.dir/c/common/constants.c.o.d -o CMakeFiles/brotlicommon-static.dir/c/common/constants.c.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9/c/common/constants.c
gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
make[2]: *** [CMakeFiles/brotlicommon.dir/c/common/context.c.o] Error 1
gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
make[2]: *** [CMakeFiles/brotlicommon-static.dir/c/common/constants.c.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/google-brotli-e61745a'
make[1]: *** [CMakeFiles/brotlicommon-static.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[  7%] Building C object CMakeFiles/brotlicommon.dir/c/common/dictionary.c.o
/usr/bin/gcc-4.2 -DBROTLICOMMON_SHARED_COMPILATION -DBROTLI_HAVE_LOG2=1 -DBROTLI_SHARED_COMPILATION -DOS_MACOSX -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9/c/include -pipe -Os -DNDEBUG -arch ppc -arch ppc64 -mmacosx-version-min=10.5 -fPIC -MD -MT CMakeFiles/brotlicommon.dir/c/common/dictionary.c.o -MF CMakeFiles/brotlicommon.dir/c/common/dictionary.c.o.d -o CMakeFiles/brotlicommon.dir/c/common/dictionary.c.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9/c/common/dictionary.c
gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
make[2]: *** [CMakeFiles/brotlicommon.dir/c/common/dictionary.c.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/google-brotli-e61745a'
make[1]: *** [CMakeFiles/brotlicommon.dir/all] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/google-brotli-e61745a'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/google-brotli-e61745a'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_brotli/brotli/work/brotli-1.0.9" && /usr/bin/make -j4 -w all VERBOSE=ON 
Exit code: 2

However once muniversal 1.0 is added, the port builds:

36-109:~ svacchanda$ port -v installed brotli
The following ports are currently installed:
  brotli @1.0.9_2 requested_variants='-universal' platform='darwin 9' archs='ppc64' date='2022-03-08T06:46:35+0800'
  brotli @1.0.9_2+universal (active) requested_variants='+universal' platform='darwin 9' archs='ppc ppc64' date='2022-04-06T02:25:21+0800'

Attachments (1)

main.log (23.9 KB) - added by barracuda156 3 years ago.

Download all attachments as: .zip

Change History (8)

Changed 3 years ago by barracuda156

Attachment: main.log added

comment:1 Changed 3 years ago by barracuda156

Owner: set to raimue
Status: newassigned
Summary: brotli fails to build for ppc+ppc64 on Leopard: gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flagsbrotli fails to build for ppc+ppc64 on Leopard: need to add muniversal PortGroup
Version: 2.7.12.7.2

comment:2 Changed 3 years ago by barracuda156

Description: modified (diff)

comment:3 Changed 13 months ago by raimue (Rainer Müller)

Keywords: universal added

comment:4 Changed 13 months ago by raimue (Rainer Müller)

Keywords: legacy-os added

comment:6 Changed 12 months ago by herbygillot (Herby Gillot)

In ceb560896d734cf29b3a7659b3315de76b8a144a/macports-ports (master):

brotli: update to 1.1.0

  • add muniversal portgroup
  • disable CMake min version check to support use of cmake-bootstrap

See: #64784

comment:7 Changed 12 months ago by kencu (Ken)

In 69d931375514578f6f1e50d652ad5cb547aa57d1/macports-ports (master):

brotli: revert adding muniversal

doesn't work properly
closes; #68919
see: #64784

Note: See TracTickets for help on using tickets.