Skip to content

iOS clang aliases crash with "invalid directory name" error if called with arguments having spaces #127434

Closed

Description

@FeodorFitsner

Bug report

Bug description:

While doing cross-compilation of Python packages for iOS calling arm64-apple-ios-clang script (and other aliases as well) fails if arguments contain spaces, for example:

arm64-apple-ios-clang -DPACKAGE_TARNAME="aaa" -DPACKAGE_STRING="aaa 1.2.2" -c -o src/main.o src/main.c

gives clang: invalid directory name: '1.2.2"' error.

To fix that $@ inside script should be wrapped with quotes: "$@".

I'm going to make PR.

CPython versions tested on:

3.12

Operating systems tested on:

macOS

Linked PRs

Activity

  1. ZeroIntensity commented on Nov 30, 2024

    @ZeroIntensity
    Member
  2. FeodorFitsner commented on Nov 30, 2024

    @FeodorFitsner
    ContributorAuthor
  3. self-assigned this
    on Nov 30, 2024
  4. freakboy3742 commented on Dec 2, 2024

    @freakboy3742
    Contributor

    @FeodorFitsner Were you planning to submit the PR you submitted against Python-Apple-support to CPython?

  5. FeodorFitsner commented on Dec 2, 2024

    @FeodorFitsner
    ContributorAuthor

    Yes, I'm going to make a PR.

  6. added a commit that references this issue on Dec 5, 2024
  7. added 2 commits that reference this issue on Dec 5, 2024
  8. added 6 commits that reference this issue on Dec 13, 2024
  9. added a commit that references this issue on Jan 8, 2025
  10. added 3 commits that reference this issue on Feb 3, 2026
  11. added 2 commits that reference this issue on Jun 12, 2026
  12. added 2 commits that reference this issue on Oct 2, 2026
  13. added a commit that references this issue on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

OS-iosbuildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions