Skip to content

Docker build failing with nnpack depreciation error #4086

Description

@lhutton1

I've recently just tried to build tvm using the docker image provided in the repo. I'm getting the following depreciation errors when trying to build with nnpack enabled:

In file included from /NNPACK/build/include/nnpack.h:7:0,
                 from /workspace/src/contrib/nnpack/fully_connected.cc:27:
/NNPACK/build/include/pthreadpool.h:185:14: error: 'pthreadpool_function_1d_t' is deprecated [-Werror=deprecated-declarations]
  size_t range);

[more depreciation warnings....]

cc1plus: all warnings being treated as errors
CMakeFiles/tvm_runtime.dir/build.make:758: recipe for target 'CMakeFiles/tvm_runtime.dir/src/contrib/nnpack/nnpack_utils.cc.o' failed
make[4]: *** [CMakeFiles/tvm_runtime.dir/src/contrib/nnpack/nnpack_utils.cc.o] Error 1

Activity

  1. mshawcroft commented on Oct 8, 2019

    @mshawcroft
    Contributor

    Confirmed. The version of nnpack pulled and built by tvm is pinned. However it appears that nnpack itself clones the pthreadpool project and checks out the most recent master of that project. Ideally we should have a way of properly pinning nnpack and it's dependent packages in order to have a stable build environment for tvm.

  2. tqchen commented on Oct 18, 2019

    @tqchen
    Member

    should be resolved by #4152 thanks for reporting the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions