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

[SHOT] update to latest master commit #3290

Merged
merged 5 commits into from
Jul 9, 2021
Merged

Conversation

odow
Copy link
Contributor

@odow odow commented Jul 8, 2021

The commit we build as v1.0.1 has some bugs (jump-dev/AmplNLWriter.jl#142) that may have been fixed in the 283 commits to master since then :)

Since the current v1.0.1 JLL release isn't really usable from JuMP, we may as well try a v1.0.1+1 release with the latest commit that also includes the upstreamed patches.

@odow
Copy link
Contributor Author

odow commented Jul 8, 2021

@andreaslundell, it wasn't that easy unfortunately...

@giordano
Copy link
Member

giordano commented Jul 8, 2021

TRY_RUN() is the Public Enemy No. 1 for cross-compilation: we can't run programs 🙂

@odow
Copy link
Contributor Author

odow commented Jul 8, 2021

Yeah, I'll push a commit that disables it.

- ENDIF( ${variable} )
+ # CHECK_CXX_SOURCE_RUNS("${source}" ${variable} )
+ # IF( ${variable} )
+ SET(${variable} 1)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this just assumes that the answer to "did the code run" is "yes."

It might be safer to make this a "no"?

It's for things like these variables:
https://github.com/coin-or/CppAD/blob/e6e49284de7da18f936ebcbca0396150bbb1c48d/include/cppad/core/check_for_nan.hpp#L137-L146

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The answer may be platform-dependent, you have to see case-by-case. If the point of CPPAD_HAS_MKSTEMP is to check whether mkstemp is available, that should be a compiler check, no need to run anything.

@odow
Copy link
Contributor Author

odow commented Jul 8, 2021

@odow
Copy link
Contributor Author

odow commented Jul 9, 2021

That seemed to fix the Windows issue. I don't know the root cause. Upstreamed to coin-or/SHOT#130

@giordano
Copy link
Member

giordano commented Jul 9, 2021

That's weird, but renaming enums should be harmless enough

@giordano giordano merged commit 8bd7289 into JuliaPackaging:master Jul 9, 2021
@odow odow deleted the patch-1 branch July 9, 2021 23:41
simeonschaub pushed a commit to simeonschaub/Yggdrasil that referenced this pull request Feb 23, 2022
* [SHOT] update to latest master commit

* Potential fix for run_source_test

* Take 2

* Take 3

* Take 4
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.

2 participants