Re: [MacPorts] #71035: onetbb needs a fallback for posix_memalign on 10.4–10.5

MacPorts noreply at macports.org
Sat Oct 5 11:20:05 UTC 2024


#71035: onetbb needs a fallback for posix_memalign on 10.4–10.5
---------------------------+----------------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.10.2
Resolution:                |   Keywords:  tiger, leopard
      Port:  onetbb        |
---------------------------+----------------------------

Comment (by barracuda156):

 Replying to [comment:1 kencu]:
 > legacysupport

 Thank you, Ken. That almost worked, but the build failed on this:
 {{{
 :info:build [ 91%] Building CXX object
 src/tbbmalloc_proxy/CMakeFiles/tbbmalloc_proxy.dir/function_replacement.cpp.o
 :info:build cd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_onetbb/onetbb/work/build/src/tbbmalloc_proxy
 && /opt/local/bin/g++-mp-14 -D__TBBMALLOCPROXY_BUILD
 -Dtbbmalloc_proxy_EXPORTS
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_onetbb/onetbb/work/oneTBB-2021.13.0/src/tbbmalloc_proxy/../../include
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_onetbb/onetbb/work/oneTBB-2021.13.0/src/tbbmalloc/../../include
 -pipe -Os -Wno-parentheses -Wno-unused-function -DNDEBUG
 -isystem/opt/local/include/LegacySupport -I/opt/local/include
 -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 -arch ppc -mmacosx-version-min=10.5
 -fPIC -flifetime-dse=1 -Wall -Wextra -Werror -Wfatal-errors
 -D_XOPEN_SOURCE -fstack-clash-protection -fno-strict-overflow -fno-delete-
 null-pointer-checks -fwrapv -Wformat -Wformat-security -Werror=format-
 security -fstack-protector-strong -D_FORTIFY_SOURCE=2 -MD -MT
 src/tbbmalloc_proxy/CMakeFiles/tbbmalloc_proxy.dir/function_replacement.cpp.o
 -MF CMakeFiles/tbbmalloc_proxy.dir/function_replacement.cpp.o.d -o
 CMakeFiles/tbbmalloc_proxy.dir/function_replacement.cpp.o -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_onetbb/onetbb/work/oneTBB-2021.13.0/src/tbbmalloc_proxy/function_replacement.cpp
 :info:build [ 93%] Building CXX object
 src/tbbmalloc_proxy/CMakeFiles/tbbmalloc_proxy.dir/proxy.cpp.o
 :info:build cd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_onetbb/onetbb/work/build/src/tbbmalloc_proxy
 && /opt/local/bin/g++-mp-14 -D__TBBMALLOCPROXY_BUILD
 -Dtbbmalloc_proxy_EXPORTS
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_onetbb/onetbb/work/oneTBB-2021.13.0/src/tbbmalloc_proxy/../../include
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_onetbb/onetbb/work/oneTBB-2021.13.0/src/tbbmalloc/../../include
 -pipe -Os -Wno-parentheses -Wno-unused-function -DNDEBUG
 -isystem/opt/local/include/LegacySupport -I/opt/local/include
 -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 -arch ppc -mmacosx-version-min=10.5
 -fPIC -flifetime-dse=1 -Wall -Wextra -Werror -Wfatal-errors
 -D_XOPEN_SOURCE -fstack-clash-protection -fno-strict-overflow -fno-delete-
 null-pointer-checks -fwrapv -Wformat -Wformat-security -Werror=format-
 security -fstack-protector-strong -D_FORTIFY_SOURCE=2 -MD -MT
 src/tbbmalloc_proxy/CMakeFiles/tbbmalloc_proxy.dir/proxy.cpp.o -MF
 CMakeFiles/tbbmalloc_proxy.dir/proxy.cpp.o.d -o
 CMakeFiles/tbbmalloc_proxy.dir/proxy.cpp.o -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_onetbb/onetbb/work/oneTBB-2021.13.0/src/tbbmalloc_proxy/proxy.cpp
 :info:build In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_onetbb/onetbb/work/oneTBB-2021.13.0/src/tbbmalloc_proxy/proxy.cpp:142:
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_onetbb/onetbb/work/oneTBB-2021.13.0/src/tbbmalloc_proxy/proxy_overload_osx.h:
 In constructor 'DoMallocReplacement::DoMallocReplacement()':
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_onetbb/onetbb/work/oneTBB-2021.13.0/src/tbbmalloc_proxy/proxy_overload_osx.h:164:14:
 error: 'malloc_zone_t' {aka 'struct _malloc_zone_t'} has no member named
 'memalign'
 :info:build   164 |         zone.memalign = impl_memalign;
 :info:build       |              ^~~~~~~~
 :info:build compilation terminated due to -Wfatal-errors.
 :info:build make[2]: ***
 [src/tbbmalloc_proxy/CMakeFiles/tbbmalloc_proxy.dir/proxy.cpp.o] Error 1
 :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_onetbb/onetbb/work/build'
 :info:build make[1]: ***
 [src/tbbmalloc_proxy/CMakeFiles/tbbmalloc_proxy.dir/all] Error 2
 :info:build make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_onetbb/onetbb/work/build'
 :info:build make: *** [all] Error 2
 }}}

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


More information about the macports-tickets mailing list