Skip to content

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

Open

Description

@sokobania

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

Activity

  1. self-assigned this
    on Nov 2, 2026
  2. AndreMiras commented on Nov 2, 2026

    @AndreMiras
    Member

    Thanks for the report, addressed via #3406 (pending for review)

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

Metadata

Metadata

Assignees

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