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

rubiks: Work around build failure with XCode #34293

Closed
mkoeppe opened this issue Aug 6, 2022 · 8 comments
Closed

rubiks: Work around build failure with XCode #34293

mkoeppe opened this issue Aug 6, 2022 · 8 comments

Comments

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 6, 2022

On Apple clang version 13.1.6 (clang-1316.0.21.2.5), building g++ -std=gnu++11 -g -O2 -c mcube.cpp appears to hang forever.

We work around this by reducing the optimization level on macOS.

CC: @jhpalmieri

Component: packages: optional

Author: Matthias Koeppe

Branch/Commit: 6b9e1d7

Reviewer: John Palmieri

Issue created by migration from https://trac.sagemath.org/ticket/34293

@mkoeppe mkoeppe added this to the sage-9.7 milestone Aug 6, 2022
@mkoeppe
Copy link
Contributor Author

mkoeppe commented Aug 6, 2022

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Aug 6, 2022

New commits:

4895341build/pkgs/rubiks/spkg-install.in: Remove obsolete workaround
6b9e1d7build/pkgs/rubiks/spkg-install.in: Work around compiler hang with XCode

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Aug 6, 2022

Commit: 6b9e1d7

@jhpalmieri
Copy link
Member

comment:3

Thank you, this works for me. A vaguely related question: after installing rubiks, if I do ./sage -t src/sage/groups/perm_gps/cubegroup.py, then it runs tests marked optional - rubiks, but it says Features detected for doctesting: <blank> at the end. The appropriate "Feature" says that rubiks is present. Why doesn't it list rubiks among the features?

@jhpalmieri
Copy link
Member

Reviewer: John Palmieri

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Aug 6, 2022

comment:4

When rubiks is installed through the Sage distribution, the Sage doctester sees the installation record in local/lib/sage/installed/ and adds rubiks to the optional tags. It does not run the Feature test.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Aug 6, 2022

comment:5

See #33823 comment:22 for a more detailed explanation

@vbraun
Copy link
Member

vbraun commented Aug 29, 2022

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

No branches or pull requests

3 participants