Opened 2 years ago

Closed 23 months ago

#66379 closed defect (fixed)

onetbb fails to build as +universal on 10.6.8 (i386+x86_64): error: unused function 'impl_zone_enable_discharge_checking'

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

Description

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:
/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:84:18: error: unused function 'impl_zone_enable_discharge_checking' [-Werror,-Wunused-function]
static boolean_t impl_zone_enable_discharge_checking(malloc_zone_t *)
                 ^
/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:89:13: error: unused function 'impl_zone_disable_discharge_checking' [-Werror,-Wunused-function]
static void impl_zone_disable_discharge_checking(malloc_zone_t *) {}
            ^
/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:90:13: error: unused function 'impl_zone_discharge' [-Werror,-Wunused-function]
static void impl_zone_discharge(malloc_zone_t *, void *) {}
            ^
/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:115:15: error: unused function 'impl_pressure_relief' [-Werror,-Wunused-function]
static size_t impl_pressure_relief(struct _malloc_zone_t *, size_t  /* goal */)
              ^
4 errors generated.
make[2]: *** [src/tbbmalloc_proxy/CMakeFiles/tbbmalloc_proxy.dir/proxy.cpp.o] Error 1
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'
make[1]: *** [src/tbbmalloc_proxy/CMakeFiles/tbbmalloc_proxy.dir/all] Error 2

Attachments (1)

onetbb_10.6.8.log (63.8 KB) - added by barracuda156 2 years ago.

Download all attachments as: .zip

Change History (5)

Changed 2 years ago by barracuda156

Attachment: onetbb_10.6.8.log added

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

Have you tried to add configure.cxxflags -Wno-unused-function?

comment:2 in reply to:  1 Changed 2 years ago by barracuda156

Replying to catap:

Have you tried to add configure.cxxflags -Wno-unused-function?

I tried now, it does not help. Adding -DTBB_STRICT=NO disables -Werror and lets build proceed, but it still fails in the end:

Undefined symbols for architecture i386:
  "tbb::detail::r1::wait_bounded_queue_monitor(tbb::detail::r1::concurrent_monitor*, unsigned long, long, tbb::detail::d1::delegate_base&)", referenced from:
     -exported_symbol[s_list] command line option
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [clang_11.1_cxx11_64_macports/libtbb.12.7.dylib] Error 1
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'
make[1]: *** [src/tbb/CMakeFiles/tbb.dir/all] Error 2
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'
make: *** [all] Error 2

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

comment:4 Changed 23 months ago by catap (Kirill A. Korinsky)

Resolution: fixed
Status: assignedclosed

In ab65a73b4ce3ab3aadbf0a4482d1fd2324af7a56/macports-ports (master):

onetbb: fix +universal build on macOS 10.6

Closes: #66379

Note: See TracTickets for help on using tickets.