[MacPorts] #71035: onetbb needs a fallback for posix_memalign on 10.4–10.5
MacPorts
noreply at macports.org
Fri Oct 4 08:28:34 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
Keywords: tiger, leopard | Port: onetbb
----------------------------+--------------------
Someone helped me to test the build on 10.5.8, and it fails:
{{{
:info:build [ 4%] Building CXX object
src/tbb/CMakeFiles/tbb.dir/allocator.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/tbb
&& /opt/local/bin/g++-mp-14 -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY
-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/tbb/../../include
-pipe -Os -Wno-parentheses -Wno-unused-function -DNDEBUG
-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/tbb/CMakeFiles/tbb.dir/allocator.cpp.o -MF
CMakeFiles/tbb.dir/allocator.cpp.o.d -o CMakeFiles/tbb.dir/allocator.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/tbb/allocator.cpp
: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/tbb/allocator.cpp:
In function 'void*
tbb::detail::r1::std_cache_aligned_allocate(std::size_t, std::size_t)':
: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/tbb/allocator.cpp:210:15:
error: 'posix_memalign' was not declared in this scope
:info:build 210 | int res = posix_memalign(&p, alignment, bytes);
:info:build | ^~~~~~~~~~~~~~
:info:build compilation terminated due to -Wfatal-errors.
:info:build make[2]: *** [src/tbb/CMakeFiles/tbb.dir/allocator.cpp.o]
Error 1
}}}
This is a known issue: macOS < 10.6 has no `posix_memalign` and should
fall back to `malloc` instead.
--
Ticket URL: <https://trac.macports.org/ticket/71035>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list