-
Notifications
You must be signed in to change notification settings - Fork 325
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
[WIP] fix issues with dependencies build with Macs with arm64 #3192
Open
carmichaelong
wants to merge
5
commits into
main
Choose a base branch
from
dependencies-mac-arm64
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
c94601c
update dependencies: add superbuild for mac+arm64. add mechanism to u…
carmichaelong cf78acd
mark USE_IPOPT_INSTALL and IPOPT_INSTALL_DIR as advanced
carmichaelong d68607a
explicitly avoid using asl or hsl libraries. don't copy mumps and met…
carmichaelong 4db0ec1
include a different set of install files for arm based macs
carmichaelong 806102b
missing endif()
carmichaelong File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- Ipopt/src/Algorithm/LinearSolvers/IpMumpsSolverInterface.cpp 2022-04-13 11:59:52.000000000 -0700 | ||
+++ Ipopt/src/Algorithm/LinearSolvers/IpMumpsSolverInterface.cpp 2022-04-13 11:59:37.000000000 -0700 | ||
@@ -16,6 +16,7 @@ | ||
// The first header to include is the one for MPI. | ||
// In newer ThirdParty/Mumps, mpi.h is renamed to mumps_mpi.h. | ||
// We get informed about this by having COIN_USE_MUMPS_MPI_H defined. | ||
+#include "mumps_compat.h" | ||
#ifdef COIN_USE_MUMPS_MPI_H | ||
#include "mumps_mpi.h" | ||
#else |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is homebrew the only way to get metis and are these directories hardcoded/unchangeable by users?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a few ways to get metis, but there seemed to be issues with using anything but the homebrew version:
otool -L libmetis.dylib
to check dependencies (e.g., it seems relative rather than absolute), so there are linking problems downstream. I suspect there is some issue with the provided configure/cmake step and RPATH, as there is a warning aboutMACOS_RPATH
.ThirdParty-Metis
(link). The latest version here, however, is only 4.10.0, which had segfault issues downstream at runtime.With homebrew, the directory structure is set by homebrew. For
arm64
installation, the base directory is/opt/homebrew
. Forx86_64
, these are kept separately in/usr/local
. From there, the relative directory ofopt/metis
should also be the same. These directories are set by homebrew when installing without any input from users. Whether users could change these afterwards, I'm not sure, but my understanding is that that would not be a typical use of homebrew.