Skip to content

在较新的系统上由于不允许可执行堆栈导致无法加载ortki #1473

@PermissionDenied7335

Description

@PermissionDenied7335

Describe the bug
在较新的系统上由于不允许可执行堆栈导致无法加载ortki,报错如下:

Unhandled exception. System.AggregateException: One or more errors occurred. (Unable to load shared library 'ortki' or one of its dependencies.  
...  
.../lib/python3.13/site-packages/nncase/libortki.so: cannot enable executable stack as shared object requires: Invalid argument  
...  

Quick Fix
可通过patchelf清除libortki.so的可执行堆栈标志实现快速修复,然后似乎可以正常运行。但我还未,也无法进行更详细的测试。如果可能的话也许需要重新编译libortki

Environment (please complete the following information):

  • OS: Debian GNU/Linux forky/sid
  • Kernel: 6.17.13+deb14-amd64
  • nncase version 2.10.0

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