find: /usr/bin/echo: No such file or directory

未关闭
#3,404 1 条评论 2 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@AndreMiras 已经在做这个了。

开始于 2026年11月2日。

  • #3406 来自 @AndreMiras —— 未关闭

评估

这个 Issue 还没有评估数据。

描述

pythonforandroid/recipe.py contains:

    def strip_object_files(self, arch, env, build_dir=None):
        if build_dir is None:
            build_dir = self.get_build_dir(arch.arch)
        with current_directory(build_dir):
            info('Stripping object files')
            shprint(sh.find, '.', '-iname', '*.so', '-exec',
                    '/usr/bin/echo', '{}', ';', _env=env)
            shprint(sh.find, '.', '-iname', '*.so', '-exec',
                    env['STRIP'].split(' ')[0], '--strip-unneeded',
                    # '/usr/bin/strip', '--strip-unneeded',
                    '{}', ';', _env=env)

But on macOS Big Sur, there is no /usr/bin/echo

% which echo
echo: shell built-in command

% ls -l /bin/echo /usr/bin/echo
ls: /usr/bin/echo: No such file or directory
-rwxr-xr-x  1 root  wheel  120848 17 jan  2026 /bin/echo*

When building, this produces the error:

[INFO]:    Stripping object files
[DEBUG]:   -> running find . -iname *.so -exec /usr/bin/echo {} ;
[DEBUG]:   	find: /usr/bin/echo: No such file or directory
主要语言
Python
星标
8.9k
派生
2.1k
平均合并
2 天 16 小时
30 天内合并 PR
12

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

kivy/python-for-android 的其他 Issue

查看 kivy/python-for-android 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。