Skip to content

[Bug] Static library build - cannot parse the debug map for 'libtvm_runtime.a': The file was not recognized as a valid object file #343

Description

@artus9033

When building TVM as a static library, the build should pass.

Actual behavior

The build results with an error:

[ 70%] Built target tokenizers_cpp
[ 95%] Built target mlc_llm_objs
You have build static version of the TVM runtime library. Make sure to use --whole-archive when linking it into your project.
[COMMAND] dsymutil /path/to/build/tvm/libtvm_runtime.a
error: cannot parse the debug map for '/path/to/build/tvm/libtvm_runtime.a': The file was not recognized as a valid object file
gmake[3]: *** [tvm/CMakeFiles/tvm_runtime.dir/build.make:168: tvm/libtvm_runtime.a] Error 1
gmake[3]: *** Deleting file 'tvm/libtvm_runtime.a'
gmake[2]: *** [CMakeFiles/Makefile2:565: tvm/CMakeFiles/tvm_runtime.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:368: CMakeFiles/mlc_llm_static.dir/rule] Error 2
gmake: *** [Makefile:216: mlc_llm_static] Error 2

Environment

Relax commit: e9d73d2
MacOS Tahoe 26.2

Steps to reproduce

Run python -m mlc_llm package ...

Activity

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