Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
FeodorFitsner opened this issue Nov 30, 2024 · 4 comments
Assignees
Labels
build The build process and cross-build OS-ios type-bug An unexpected behavior, bug, or error

Comments

@FeodorFitsner
Copy link

FeodorFitsner commented Nov 30, 2024

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

@FeodorFitsner FeodorFitsner added the type-bug An unexpected behavior, bug, or error label Nov 30, 2024
@ZeroIntensity ZeroIntensity added build The build process and cross-build OS-ios labels Nov 30, 2024
@ZeroIntensity
Copy link
Member

cc @freakboy3742

@FeodorFitsner
Copy link
Author

Original issue: beeware/Python-Apple-support#241 (review)

@freakboy3742
Copy link
Contributor

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

@FeodorFitsner
Copy link
Author

Yes, I'm going to make a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build OS-ios type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants