[MacPorts] #67627: py310-pytorch @2.0.0: fatal error: 'tbb/tbb.h' file not found (was: Failed to build py310-pytorch: command execution failed -- Building on on arm64/M1 -- tbb.h not found)

MacPorts noreply at macports.org
Wed Jun 14 16:42:43 UTC 2023


#67627: py310-pytorch @2.0.0: fatal error: 'tbb/tbb.h' file not found
-------------------------+--------------------
  Reporter:  mikeumo     |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.8.1
Resolution:              |   Keywords:
      Port:  py-pytorch  |
-------------------------+--------------------
Changes (by ryandesign):

 * cc: catap (added)
 * port:  py310-pytorch => py-pytorch


Comment:

 We see the same problem on our x86_64 build machines, so it's not
 architecture-specific.

 The [changeset:a9d05e09427101a0d6d803b72b9f3d23599e05f6/macports-ports
 most recent commit to this port] says it "removed useless dependency from
 tbb". Maybe the tbb dependency wasn't useless after all?

 I see in the log:

 {{{
 Submodule 'third_party/tbb' (https://github.com/01org/tbb) registered for
 path 'third_party/tbb'
 }}}
 {{{
 Cloning into
 '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 pytorch/py310-pytorch/work/pytorch-2.0.0/third_party/tbb'...
 }}}
 {{{
 Submodule path 'third_party/tbb': checked out
 'a51a90bc609bb73db8ea13841b5cf7aa4344d4a9'
 }}}
 {{{
 USE_TBB='ON'
 }}}
 {{{
 -- Compiling TBB from source
 }}}
 {{{
 --   USE_TBB               : ON
 --     USE_SYSTEM_TBB      : OFF
 }}}

 If the build can use the "system" (i.e. MacPorts) tbb instead of building
 its own copy that would be preferable, and maybe it is the solution to
 this problem.

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


More information about the macports-tickets mailing list