oneAPI Threading Building Blocks (oneTBB) lets you easily write parallel C++
programs that take full advantage of multicore performance, that are portable,
composable and have future-proof scalability.
===> The following configuration options are available for onetbb-2023.2.0:
DOCS=on: Build and/or install documentation
===> Use 'make config' to modify these settings
devel/onetbb: fix tbbbind crash when hwloc finds no cores
On FreeBSD/powerpc64le hwloc reports no Core objects, so the hwloc 2.5
probe in tbbbind passes NULL to hwloc_get_obj_with_same_locality() and
anything that asks TBB for the CPU topology segfaults, e.g. graphics/oidn
on every run.
Pull in the upstream fix.
devel/onetbb: Fix the last failing test
Fix the following test:
63 - test_hw_concurrency (ILLEGAL)
by using sched_getaffinity().
PR: 292088
Reported by: diizzy
devel/onetbb: Fix more tests
Fix/improve the following tests (see patches for details):
29 - test_resumable_tasks (SEGFAULT)
63 - test_hw_concurrency (ILLEGAL)
66 - test_global_control (Subprocess aborted)
67 - test_task (SEGFAULT)
74 - test_tbb_header (Failed)
105 - conformance_resumable_tasks (SEGFAULT)
131 - test_malloc_compliance (Subprocess aborted)
This leads to a single test still failing:
63 - test_hw_concurrency (Subprocess aborted)
because get_cpuset_indices() is not working on FreeBSD.
PR: 292088
Reported by: diizzy
devel/onetbb: Improve port
- Only build unit tests when requested to make overall build faster
- Adjust port Makefile to more closely follow Porters Handbook
- Remove USES= tar:tgz (incorrect)
- Replace USES= localbase with localbase:ldflags
- Use a separate section for USE_GITHUB
PR: 292088
devel/onetbb: fix build on armv7
error: option 'cf-protection=return' cannot be specified on this target
error: option 'cf-protection=branch' cannot be specified on this target
Same fix as for powerpc.
Approved by: portmgr (build fix blanket)
MFH: 2025Q4
devel/onetbb: fix build on powerpc*
error: option 'cf-protection=return' cannot be specified on this target
error: option 'cf-protection=branch' cannot be specified on this target
devel/onetbb: Switch to pkgconfig
- Configure the Port to use pkg-config over tuning CMake, add localbase,
and pkgconfig to ${USES}, drop CMAKE_HWLOC_2_LIBRARY_PATH* from
${CMAKE_ARGS}; this allows the build to correctly generate bindings
for hwloc > 2.5
- port{clippy|fmt|lint} maintenance
- Update ${LIB_DEPENDS} to current practices; remove shared library
version
PR: 286625
Reported by: Alastair Hogge <agh@riseup.net>
devel/onetbb: fix build with lld 17
Many symbols in the linker version scripts are undefined because link
time optimization (-flto=thin) removes them. Suppress errors with
lld >= 17 due to these undefined symbols.
PR: 274337
Reported by: dim
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
devel/onetbb: Fix build on 13-STABLE and 14-CURRENT
by reviving a patch not yet included in release and erroneously removed
in previous update.
Reported by: alexvpetrov@gmail.com (via ports@)
*/*: Remove redundant '-[0-9]*' from CONFLICTS
The conflict checks compare the patterns first against the package
names without version (as reported by "pkg query "%n"), then - if
there was no match - agsinst the full package names including the
version (as reported by "pkg query "%n-%v").
Many CONFLICTS definitions used patterns like "bash-[0-9]*" to filter
for the bash package in any version. But that pattern is functionally
identical with just "bash".
Approved by: portmgr (blanket)
devel/onetbb: fix build on powerpc
/wrkdirs/usr/ports/devel/onetbb/work/oneTBB-2021.2.0/src/tbb/tools_api/ittnotify_config.h:338:12:
error: use of undeclared identifier '__TBB_machine_fetchadd4'
return __TBB_machine_fetchadd4(ptr, 1) + 1L;
Patch taken from https://github.com/oneapi-src/oneTBB/issues/186.
Add compiler:c++11-lang to USES to fix build on GCC-based systems:
The CXX compiler identification is GNU 4.2.1
C++11 (-std=c++11) support is required
Approved by: portmgr (tier-2 blanket)
Introduce devel/onetbb and mark devel/tbb as legacy
Intel oneAPI tbb 2021.1 (onetbb) has been released[1][2] and has deprecated
several interfaces over tbb 2020, breaking most dependent ports.
Old tbb 2020 will be kept for a certain time to allow transition but will be
removed in a near future as it CONFLICTS with devel/onetbb. New ports should
now use devel/onetbb instead of devel/tbb.
We tried to move a maximum number of dependent ports to devel/onetbb (or
disable dependency when not possible), but some of them still remain stuck
to devel/tbb. Remaining ones have not been identified as major dependencies
themselves and will be fixed as soon as updates are available from upstream.
PR: 252648, 252688 [3], 252683 [4], 252651 [5], 252690 [3], 252693 [3],
252695 [3], 252696 [3], 252786 [3], 252649, 252868 [6], 252870 [5],
252684 [7], 252785 [7]
Approved by: yuri [3], jwb [4], thierry [5], FreeBSD@Shaneware.biz [6],
maintainer timeout [7]
[1]
https://software.intel.com/content/www/us/en/develop/articles/intel-oneapi-threading-building-blocks-release-notes.html
[2]
https://software.intel.com/content/www/us/en/develop/articles/tbb-revamp.html