Opened 2 years ago

Closed 2 years ago

#66222 closed defect (fixed)

oneTBB @2021.7.0 fails to build on 10.6.8 for x86_64

Reported by: barracuda156 Owned by: catap (Kirill A. Korinsky)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: snowleopard, x86_64 Cc:
Port: onetbb

Description

: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.7.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.7.0/src/tbbmalloc_proxy/proxy_overload_osx.h:138:20: error: no member named 'enable_discharge_checking' in 'malloc_introspection_t'
:info:build         introspect.enable_discharge_checking = &impl_zone_enable_discharge_checking;
:info:build         ~~~~~~~~~~ ^
: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.7.0/src/tbbmalloc_proxy/proxy_overload_osx.h:139:20: error: no member named 'disable_discharge_checking' in 'malloc_introspection_t'
:info:build         introspect.disable_discharge_checking = &impl_zone_disable_discharge_checking;
:info:build         ~~~~~~~~~~ ^
: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.7.0/src/tbbmalloc_proxy/proxy_overload_osx.h:140:20: error: no member named 'discharge' in 'malloc_introspection_t'
:info:build         introspect.discharge = &impl_zone_discharge;
:info:build         ~~~~~~~~~~ ^
: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.7.0/src/tbbmalloc_proxy/proxy_overload_osx.h:154:14: error: no member named 'pressure_relief' in '_malloc_zone_t'
:info:build         zone.pressure_relief = &impl_pressure_relief;
:info:build         ~~~~ ^
:info:build 4 errors generated.

Attachments (2)

oneTBB_10.6.8.log (169.6 KB) - added by barracuda156 2 years ago.
oneTBB_10.6.8_gcc12.log (182.3 KB) - added by barracuda156 2 years ago.

Download all attachments as: .zip

Change History (8)

Changed 2 years ago by barracuda156

Attachment: oneTBB_10.6.8.log added

comment:1 Changed 2 years ago by barracuda156

So above is the build failure with Clang, here is with GCC:

:info:build {standard input}:82:no such instruction: `xbegin L18'
:info:build {standard input}:89:no such instruction: `xabort $255'
:info:build {standard input}:185:no such instruction: `xend'
:info:build make[2]: *** [src/tbb/CMakeFiles/tbb.dir/rtm_mutex.cpp.o] Error 1
:info:build make[2]: *** Waiting for unfinished jobs....
:info:build {standard input}:150:no such instruction: `xend'
:info:build {standard input}:220:no such instruction: `xbegin L53'
:info:build {standard input}:227:no such instruction: `xabort $255'
:info:build {standard input}:314:no such instruction: `xbegin L78'
:info:build {standard input}:321:no such instruction: `xabort $255'
:info:build make[2]: *** [src/tbb/CMakeFiles/tbb.dir/rtm_rw_mutex.cpp.o] Error 1

Changed 2 years ago by barracuda156

Attachment: oneTBB_10.6.8_gcc12.log added

comment:2 Changed 2 years ago by jmroot (Joshua Root)

Port: onetbb added

comment:3 Changed 2 years ago by barracuda156

comment:4 Changed 2 years ago by barracuda156

  1. S. introspect errors are due to the 10.6 SDK, those functions are absent from 10.6.8, not only from 10.6 PPC. I have no idea what causes assembler errors with GCC on x86_64 though.

comment:5 Changed 2 years ago by barracuda156

Owner: changed from mohd-akram to catap

comment:6 Changed 2 years ago by catap (Kirill A. Korinsky)

Resolution: fixed
Status: assignedclosed

In 16fc392e579688c4331b219ec5ea64b66dbce104/macports-ports (master):

onetbb: fix build on macOS 10.6

Closes: #66222

Note: See TracTickets for help on using tickets.