IexMathFpu.cpp: Fix build on non-glibc (e.g. musl libc).#798
Merged
cary-ilm merged 1 commit intoAcademySoftwareFoundation:masterfrom Jul 30, 2020
Merged
Conversation
Originally from: https://github.com/void-linux/void-packages/blob/80bbc168faa25448bd3399f4df331b836e74b85c/srcpkgs/ilmbase/patches/musl-_fpstate.patch Fixes error: IlmBase/IexMath/IexMathFpu.cpp: In function ‘void Iex_2_4::FpuControl::restoreControlRegs(const ucontext_t&, bool)’: IlmBase/IexMath/IexMathFpu.cpp:284:38: error: ‘struct _fpstate’ has no member named ‘cw’; did you mean ‘cwd’? 284 | setCw ((ucon.uc_mcontext.fpregs->cw & cwRestoreMask) | cwRestoreVal); | ^~ | cwd IlmBase/IexMath/IexMathFpu.cpp:287:20: error: ‘struct Iex_2_4::FpuControl::_fpstate_64’ has no member named ‘magic’ 287 | setMxcsr (kfp->magic == 0 ? kfp->mxcsr : 0, clearExceptions); | ^~~~~ Signed-off-by: Niklas Hambüchen <mail@nh2.me>
|
|
nh2
added a commit
to nh2/nixpkgs
that referenced
this pull request
Jul 30, 2020
Tested with musl. I PRd the patch upstream: AcademySoftwareFoundation/openexr#798
This was referenced Jul 30, 2020
nh2
added a commit
to nh2/nixpkgs
that referenced
this pull request
Aug 2, 2020
Tested with musl. I PRd the patch upstream: AcademySoftwareFoundation/openexr#798
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Originally from:
https://github.com/void-linux/void-packages/blob/80bbc168faa25448bd3399f4df331b836e74b85c/srcpkgs/ilmbase/patches/musl-_fpstate.patch
Fixes error: