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

Python3 build fails with unknown argument: '-fp-model' #860

Closed
tcaduser opened this issue Sep 10, 2023 · 2 comments
Closed

Python3 build fails with unknown argument: '-fp-model' #860

tcaduser opened this issue Sep 10, 2023 · 2 comments

Comments

@tcaduser
Copy link
Contributor

Versions

  • Python :
  • MacOS version :
  • XCode Version :
  • Cython version :

Describe the bug

When building my PR #859 the Python 3.10 build fails and causes my checks to fail. I strongly believe this is due to the fact that the randomly generated compiler name contains "icc" and this is triggering the use of "-fp-model:strict" in the build flags.

Please have kivy-ios reject a compiler containing "icc" and just start over:

compiler:

/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpyicccjzp

error:

2023-09-10T17:11:58.8591440Z [DEBUG   ] clangclang: : error: error: unknown argument: '-fp-model'unknown argument: '-fp-model'
2023-09-10T17:11:58.8594220Z [DEBUG   ] 
2023-09-10T17:11:58.8595130Z [DEBUG   ] clang: error: unknown argument: '-fp-model'
2023-09-10T17:11:58.8596370Z [DEBUG   ] clangclang: : error: error: no such file or directory: 'strict'no such file or directory: 'strict'
2023-09-10T17:11:58.8597430Z [DEBUG   ] 
2023-09-10T17:11:58.8597950Z [DEBUG   ] clang: error: no such file or directory: 'strict'

To Reproduce
// REPLACE ME: Add your toolchain.py .... command or a complete explanation of what you did so We can reproduce your error.

Expected behavior
// REPLACE ME: A clear and concise description of what you expected to happen.

Logs

// REPLACE ME: Paste the build output containing the error

Screenshots

Additional context
If it is no bother, please trigger new checks for my PR request.

@tcaduser
Copy link
Contributor Author

@misl6
Copy link
Member

misl6 commented Sep 16, 2023

Ouch! That should have been painful to discover.
However, there's a pending PR on CPython upstream (where this fix belongs): python/cpython#96399

Taking care of it is definitely not a responsibility of a toolchain like kivy-ios.

(I'm changing the issue title, so it's more findable)

The current workaround (before the change lands into CPython upstream) is to clean the hostpython3 or python3 build and try again.

@misl6 misl6 closed this as completed Sep 16, 2023
@misl6 misl6 changed the title Python uses wrong flags Python3 build fails with unknown argument: '-fp-model' Sep 16, 2023
tcaduser added a commit to tcaduser/kivy-ios that referenced this issue Sep 21, 2023
AndreMiras pushed a commit that referenced this issue Sep 23, 2023
* fix for Issue #860

* update docstring and implementation to #866
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants