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

Add recipe for FLINT C library #58

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

jaganmn
Copy link

@jaganmn jaganmn commented Oct 28, 2024

Continuing from our e-mail thread ("Re: Adding FLINT ..."):

Tomas and I have made progress preparing FLINT for MXE and Rtools, along the way requesting some improvements to FLINT's build system:

mxe/mxe#3116
flintlib/flint#2077
flintlib/flint#2097

It is planned that these changes will be included in the next FLINT release, so I'm hopeful that we can forge ahead with adding a recipe here. This PR aims to provide a working recipe and to document relevant issues.

The recipe in the PR uses Special: in-sources to temporarily work around the fact that building out of tree is not supported in the current FLINT release. That can be removed as soon as it becomes possible to upgrade.

The patch file in the PR resolves a bug in the library's tests causing make check to fail with a linker error. I observe the error locally (Xcode 15), but none of their runners reproduce it. (There are macOS runners but they may not be using the native toolchain.) The patch file is optional for the build itself and should become redundant soon enough:

flintlib/flint#2058

Under Xcode 14, make check was seen to fail at an earlier stage because Apple Clang was producing wrong assembly for one of the tests. That seems to be fixed in Xcode 15.

flintlib/flint#2048

IIUC, Xcode 14 is still used to build R binaries and external libraries for macOS. There is no evidence yet that this issue affects the functionality of my R package, though that could change as the interface and test suite grow. Well, by that time, you may already have moved to Xcode 15 ...

@jaganmn
Copy link
Author

jaganmn commented Nov 12, 2024

Now in Rtools (r6346) and upstream MXE.

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

Successfully merging this pull request may close these issues.

1 participant