IPOPT : Add empty compiler flags for IPOPT build to use spack flags#6714
IPOPT : Add empty compiler flags for IPOPT build to use spack flags#6714scheibelp merged 1 commit intospack:developfrom
Conversation
|
If this were to extend the |
|
I think that sounds like a better solution to me. I can take another shot after #6415 is merged. |
|
It looks like EDIT: |
|
@junkudo #6415 has now been merged so you can try out the suggestion at #6714 (comment). Another possibility is if you don't want to pass the compiler flags as arguments to |
|
@scheibelp if you can, could you take a look at my prospective update to this PR at junkudo/spack@2b948b8? I'm running into an issue when I try to actually install For this new In the existing package that does not use Autotools: |
|
This appears to be the same issue as #3387 where a self-referential symbolic link is created by configure. If you set I should admit I'm not sure why this resolves the issue; I'd be interested in figuring that out if it is confirmed that this resolves the current issue in this thread. |
|
Adding `build_directory = 'spack-build' breaks the build much earlier. It now fails right at the start of make: Thoughts? |
|
You also have to update the definitions of |
ea2ecf5 to
7883ce9
Compare
|
@scheibelp - seems like setting the |
|
@scheibelp small bump 😄 Any chance you've looked at this? |
|
To be clear are all issues resolved (i.e. it's doing what you want like not overriding flags) and you are asking if I can merge it? |
|
Yes to both. The issue is resolved and the flags are being passed in through via the build system flags. Like you previously advised, I did have to set |
|
Thanks! |
This makes use of the new flag_handler logic from 28d8784 to set compiler flags for ipopt by passing them as arguments to the build system rather than injecting them into the compiler wrappers. This avoids conflicts between flags that are chosen by the build system and flags that are set by the user.
This commit changes the IPOPT package file to pass in default empty
flags for CFLAGS, CPPFLAGS, CXXFLAGS, FFLAGS, and LDFLAGS to prevent
IPOPT from using default compiler flags that can override spack
provided flags.
Tries to address part of #6640