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

Compiling stdlib with cross-compiler #654

Open
kjelljorner opened this issue Apr 23, 2022 · 0 comments
Open

Compiling stdlib with cross-compiler #654

kjelljorner opened this issue Apr 23, 2022 · 0 comments
Labels
bug Something isn't working build: cmake Issue with stdlib's CMake build files platform: MacOS Build issues specific to the MacOS platform

Comments

@kjelljorner
Copy link

Description

I encounter some errors when trying to cross-compile stdlib on conda-forge for MacOS/Arm64. Specifically, it has to do with the test for f18errorstop, which does not work in cross-compiling mode.

  -- Performing Test f18errorstop
  CMake Error: TRY_RUN() invoked in cross-compiling mode, please set the following cache variables appropriately:
     f18errorstop_EXITCODE (advanced)
     f18errorstop_EXITCODE__TRYRUN_OUTPUT (advanced)

Currently, I'm patching this with the help of some compiler flags that @awvwgk gave me:

-Df18errorstop_EXITCODE=1
-Df18errorstop_EXITCODE__TRYRUN_OUTPUT=''

Expected Behaviour

Not really sure what would be the best way to fix this as I am not a very proficient CMake user, but it seems that it is possible to detect when cross-compiling, and adjust which tests are run accordingly.

Version of stdlib

fb4ca80

Platform and Architecture

MacOS/Arm

Additional Information

No response

@kjelljorner kjelljorner added the bug Something isn't working label Apr 23, 2022
@awvwgk awvwgk added build: cmake Issue with stdlib's CMake build files platform: MacOS Build issues specific to the MacOS platform labels Apr 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build: cmake Issue with stdlib's CMake build files platform: MacOS Build issues specific to the MacOS platform
Projects
None yet
Development

No branches or pull requests

2 participants