[MacPorts] #65213: jemalloc +universal build fails on Mac M1 (Monterey 12.3.1)

MacPorts noreply at macports.org
Thu Jun 16 12:44:43 UTC 2022


#65213: jemalloc +universal build fails on Mac M1 (Monterey 12.3.1)
-----------------------------+--------------------
  Reporter:  sudheerhebbale  |      Owner:  (none)
      Type:  defect          |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:
Resolution:                  |   Keywords:
      Port:  jemalloc        |
-----------------------------+--------------------

Comment (by hmeine):

 I have a similar problem, but am not sure it's the same. For me the build
 has worked (implicitly as a dependency through `sudo port install opencv4
 +universal`), but I get
 {{{
 Error: Failed to destroot jemalloc: jemalloc-config differs in
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_jemalloc/jemalloc/work
 /destroot-arm64//opt/local/bin and
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_jemalloc/jemalloc/work
 /destroot-ppc-intel//opt/local/bin and cannot be merged
 }}}
 Looking at the two separately built jmealloc-config files, the main
 difference seems to be the architecture, which is part of many outputs:
 {{{
 ---
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_jemalloc/jemalloc/work
 /destroot-arm64/opt/local/bin/jemalloc-config2022-06-16 14:33:05.000000000
 +0200
 +++
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_jemalloc/jemalloc/work
 /destroot-ppc-intel//opt/local/bin/jemalloc-config     2022-06-16
 14:33:05.000000000 +0200
 @@ -39,7 +39,7 @@
         echo "2"
         ;;
  --config)
 -       echo "--prefix=/opt/local --disable-debug --with-jemalloc-prefix=
 --host=aarch64-apple-darwin21.5.0 host_alias=aarch64-apple-darwin21.5.0
 CC=/usr/bin/clang 'CFLAGS=-pipe -Os -arch arm64
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'
 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -arch arm64
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'
 'CPPFLAGS=-I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'
 CXX=/usr/bin/clang++ 'CXXFLAGS=-pipe -Os -std=c++11 -latomic -arch arm64
 -stdlib=libc++
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'"
 +       echo "--prefix=/opt/local --disable-debug --with-jemalloc-prefix=
 --host=x86_64-apple-darwin21.5.0 host_alias=x86_64-apple-darwin21.5.0
 CC=/usr/bin/clang 'CFLAGS=-pipe -Os -arch x86_64
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'
 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'
 'CPPFLAGS=-I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'
 CXX=/usr/bin/clang++ 'CXXFLAGS=-pipe -Os -std=c++11 -latomic -arch x86_64
 -stdlib=libc++
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'"
         ;;
  --prefix)
         echo "/opt/local"
 @@ -63,16 +63,16 @@
         echo "/usr/bin/clang"
         ;;
  --cflags)
 -       echo "-std=gnu11 -Werror=unknown-warning-option -Wall -Wextra
 -Wshorten-64-to-32 -Wsign-compare -Wundef -Wno-format-zero-length
 -Wpointer-arith -Wno-missing-braces -Wno-missing-field-initializers -pipe
 -g3 -Wimplicit-fallthrough -O3 -funroll-loops -pipe -Os -arch arm64
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk"
 +       echo "-std=gnu11 -Werror=unknown-warning-option -Wall -Wextra
 -Wshorten-64-to-32 -Wsign-compare -Wundef -Wno-format-zero-length
 -Wpointer-arith -Wno-missing-braces -Wno-missing-field-initializers -pipe
 -g3 -Wimplicit-fallthrough -O3 -funroll-loops -pipe -Os -arch x86_64
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk"
         ;;
  --cppflags)
         echo "-I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
 -D_REENTRANT"
         ;;
  --cxxflags)
 -       echo "-Wimplicit-fallthrough -O3 -pipe -Os -std=c++11 -latomic
 -arch arm64 -stdlib=libc++
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk"
 +       echo "-Wimplicit-fallthrough -O3 -pipe -Os -std=c++11 -latomic
 -arch x86_64 -stdlib=libc++
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk"
         ;;
  --ldflags)
 -       echo "-L/opt/local/lib -Wl,-headerpad_max_install_names -arch
 arm64
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk "
 +       echo "-L/opt/local/lib -Wl,-headerpad_max_install_names -arch
 x86_64
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk "
         ;;
  --libs)
         echo "-pthread"
 }}}
 I wonder how other universal builds deal with this? (This is the first
 time I am trying one.)

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


More information about the macports-tickets mailing list