Re: [MacPorts] #64027: tbb @2020.3: error: ‘struct malloc_introspection_t’ has no member named ‘zone_locked’

MacPorts noreply at macports.org
Tue Jan 4 11:50:38 UTC 2022


#64027: tbb @2020.3: error: ‘struct malloc_introspection_t’ has no member named
‘zone_locked’
---------------------------+---------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.1
Resolution:                |   Keywords:  powerpc
      Port:  tbb           |
---------------------------+---------------------

Comment (by barracuda156):

 Replying to [comment:13 kencu]:
 >
 > forcing a newer gcc is highly likely needed, but that would be unlikely
 to be enough I would guess.

 Now there is a problem with building tbb for ppc+ppc64. Apple gcc fails,
 Macports gcc cannot build for ppc64, and Iains gcc10 starts building, but
 fails on this:


 {{{
 /opt/iains/powerpc-apple-darwin9/gcc-10-3-ppc/bin/g++ -c -MMD -g -O2
 -DUSE_PTHREAD  -arch ppc  -Wall  -DTBB_SUPPRESS_DEPRECATED_MESSAGES=1
 -Wno-non-virtual-dtor -fPIC -flifetime-dse=1 -D__TBBMALLOC_BUILD=1
 -I../../src -I../../src/rml/include -I../../include -I../../src/tbbmalloc
 -I../../src/tbbmalloc ../../src/tbbmalloc/proxy.cpp
 In file included from ../../src/tbbmalloc/proxy.cpp:163:
 ../../src/tbbmalloc/proxy_overload_osx.h: In constructor
 ‘DoMallocReplacement::DoMallocReplacement()’:
 ../../src/tbbmalloc/proxy_overload_osx.h:153:14: error: ‘malloc_zone_t’
 {aka ‘struct _malloc_zone_t’} has no member named ‘memalign’
   153 |         zone.memalign = impl_memalign;
       |              ^~~~~~~~
 ../../src/tbbmalloc/proxy_overload_osx.h:159:9: error:
 ‘malloc_default_purgeable_zone’ was not declared in this scope; did you
 mean ‘malloc_default_zone’?
   159 |         malloc_default_purgeable_zone();
       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       |         malloc_default_zone
 ../../src/tbbmalloc/proxy_overload_osx.h: At global scope:
 ../../src/tbbmalloc/proxy_overload_osx.h:115:15: warning: ‘size_t
 impl_pressure_relief(_malloc_zone_t*, size_t)’ defined but not used
 [-Wunused-function]
   115 | static size_t impl_pressure_relief(struct _malloc_zone_t *, size_t
 goal)
       |               ^~~~~~~~~~~~~~~~~~~~
 ../../src/tbbmalloc/proxy_overload_osx.h:109:13: warning: ‘void
 impl_free_definite_size(_malloc_zone_t*, void*, size_t)’ defined but not
 used [-Wunused-function]
   109 | static void impl_free_definite_size(struct _malloc_zone_t*, void
 *ptr, size_t size)
       |             ^~~~~~~~~~~~~~~~~~~~~~~
 ../../src/tbbmalloc/proxy_overload_osx.h:90:13: warning: ‘void
 impl_zone_discharge(malloc_zone_t*, void*)’ defined but not used
 [-Wunused-function]
    90 | static void impl_zone_discharge(malloc_zone_t *, void *) {}
       |             ^~~~~~~~~~~~~~~~~~~
 ../../src/tbbmalloc/proxy_overload_osx.h:89:13: warning: ‘void
 impl_zone_disable_discharge_checking(malloc_zone_t*)’ defined but not used
 [-Wunused-function]
    89 | static void impl_zone_disable_discharge_checking(malloc_zone_t *)
 {}
       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ../../src/tbbmalloc/proxy_overload_osx.h:84:18: warning: ‘boolean_t
 impl_zone_enable_discharge_checking(malloc_zone_t*)’ defined but not used
 [-Wunused-function]
    84 | static boolean_t impl_zone_enable_discharge_checking(malloc_zone_t
 *)
       |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ../../src/tbbmalloc/proxy_overload_osx.h:79:18: warning: ‘boolean_t
 zone_locked(malloc_zone_t*)’ defined but not used [-Wunused-function]
    79 | static boolean_t zone_locked(malloc_zone_t *)
       |                  ^~~~~~~~~~~
 make[1]: *** [proxy.o] Error 1
 make[1]: *** Waiting for unfinished jobs....
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_PPCLeopardPorts_devel_tbb/tbb/work/tbb-2020.3-ppc/build/macports_release'
 make: *** [tbbmalloc] Error 2
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_PPCLeopardPorts_devel_tbb/tbb/work/tbb-2020.3-ppc'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_PPCLeopardPorts_devel_tbb/tbb/work/tbb-2020.3-ppc"
 && /usr/bin/make -j4 -w tbb tbbmalloc tbbproxy compiler=gcc
 stdlib=libstdc++ tbb_build_prefix=macports use_proxy=1 arch=ppc32
 Exit code: 2
 Error: Failed to build tbb: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_PPCLeopardPorts_devel_tbb/tbb/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there
 is a bug.
 Error: Processing of port tbb failed
 36-111:svacchanda svacchanda$

 }}}

 To force using external compiler, I added this to portfile:


 {{{
 build.env-append \
     CONLY=/opt/iains/powerpc-apple-darwin9/gcc-10-3-ppc/bin/gcc \
     CPLUS=/opt/iains/powerpc-apple-darwin9/gcc-10-3-ppc/bin/g++
 }}}

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


More information about the macports-tickets mailing list