Giter Club home page Giter Club logo

Comments (14)

ametzler avatar ametzler commented on May 24, 2024

This issue also applies to i686 kernel with ix86 userland, not just to the abovementioned AMD64-kernel with 32bit userland mixture. (Tested with today's Debian sid: libc6-dev 2.13-35 linux-image-3.2.0-3-686-pae).

from openexr.

ametzler avatar ametzler commented on May 24, 2024

Also present in v2.0.0.beta.2.zip

from openexr.

ametzler avatar ametzler commented on May 24, 2024

Still present in ilmbase 1.0.3.

from openexr.

kwizart avatar kwizart commented on May 24, 2024

Same for me on 32bit linux.
Might be related to the glibc not having mxcsr in 32bit _libc_fpstate

I've used the hack described, but make check fails at this step:
lt-ImathTest: testBox.cpp:286: void {anonymous}::testExtendByPoint(const char*) [with T = Imath::Vec2]: Assertion `b.min == min && b.max == max' failed.
/bin/sh: line 5: 7761 Aborted (core dumped) ${dir}$tst
FAIL: ImathTest

from openexr.

ametzler avatar ametzler commented on May 24, 2024

RedHat uses the following patch to fix the build-error:

diff -up ilmbase-1.0.3/IexMath/IexMathFpu.cpp.ucontext ilmbase-1.0.3/IexMath/IexMathFpu.cpp
--- ilmbase-1.0.3/IexMath/IexMathFpu.cpp.ucontext 2012-07-26 20:51:55.000000000 +0200
+++ ilmbase-1.0.3/IexMath/IexMathFpu.cpp 2012-08-02 23:33:14.815036891 +0200
@@ -228,6 +228,7 @@ clearExceptions ()
const uint16_t cwRestoreMask = ~((3 << 10) | (3 << 8));
const uint16_t cwRestoreVal = (0 << 10) | (3 << 8);

+#if 0
inline void
restoreControlRegs (const ucontext_t & ucon, bool clearExceptions)
{
@@ -235,7 +236,7 @@ restoreControlRegs (const ucontext_t & u
setMxcsr (ucon.uc_mcontext.fpregs->mxcsr, clearExceptions);
}

-#if 0
+#endif

//
// Ugly, the mxcsr isn't defined in GNU libc ucontext_t, but
@@ -255,7 +256,6 @@ restoreControlRegs (const ucontext_t & u
setMxcsr (kfp->magic == 0 ? kfp->mxcsr : 0, clearExceptions);
}

-#endif

} // namespace FpuControl

The testsuite still fails with

lt-ImathTest: testBox.cpp:253: void {anonymous}::testExtendByPoint(const char*) [with T = Imath::Vec2]: Assertion `b.min == p && b.max == p' failed.
/bin/bash: line 4: 1727 Aborted ${dir}$tst

FAIL: ImathTest


1 of 1 tests failed

from openexr.

yuyuyak avatar yuyuyak commented on May 24, 2024

I must chime in too. This is on Funtoo ~x86 (32bit current). The same occurs whether I use the version from http://dev.gentoo.org/~ssuominen/openexr-${PV}.tar.gz
or directly from git in a directory, running bootstrap, configure, make check. Of course from portage package manager as well. Wish I knew of the hack spoken of by kwizart.
Glib 2.15.-r3 (AKA libc6)
automake 1.11.16
Latest 2.0.0
IexMathFpu.cpp: In function 'void Iex::FpuControl::restoreControlRegs(const ucontext_t&, bool)':
IexMathFpu.cpp:262:38: error: 'struct _libc_fpstate' has no member named 'cwd'
IexMathFpu.cpp:263:40: error: 'struct _libc_fpstate' has no member named 'mxcsr'

from openexr.

pstanczyk avatar pstanczyk commented on May 24, 2024

Hey - are you pulling from the develop branch from here?
(Master should reflect the snapshot of that last released/tagged version)

from openexr.

yuyuyak avatar yuyuyak commented on May 24, 2024

cloned exactly like this: git clone https://github.com/openexr/openexr.git. Is this what you wanted to know: master 5c820c8?

from openexr.

peterhillman avatar peterhillman commented on May 24, 2024
Could you try 
git checkout develop
git pull
and see if there are still issues? This is the OpenEXR-2.0
development code, which should have a fix for this issue.On 03/15/2013 05:59 PM, Mike Johnson
  wrote:

  cloned exactly like this: git clone https://github.com/openexr/openexr.git.
    Is this what you wanted to know: master 5c820c8?
  —
    Reply to this email directly or view
      it on GitHub.

from openexr.

yuyuyak avatar yuyuyak commented on May 24, 2024

Thank you. The development version indeed got it way past that error. However, I now have the same symptom mentioned by ametzler above:
ImathTest: testBox.cpp:286: void {anonymous}::testExtendByPoint(const char*) [with T = Imath::Vec2]: Assertion `b.min == min && b.max == max' failed.
/bin/sh: line 5: 25491 Aborted ${dir}$tst
FAIL: ImathTest

from openexr.

ametzler avatar ametzler commented on May 24, 2024

ilmbase 2.0.0 builds on i386, however the testsuite still fails with:
extendBy() point for type V2f
extendBy() point for type V2d
lt-ImathTest: testBox.cpp:253: void {anonymous}::testExtendByPoint(const char*) [with T = Imath_2_0::Vec2]: Assertion `b.min == p && b.max == p' failed.
/bin/bash: line 4: 7000 Aborted ${dir}$tst
FAIL: ImathTest

from openexr.

tonytheodore avatar tonytheodore commented on May 24, 2024

Does 20061ef fix this?

from openexr.

ametzler avatar ametzler commented on May 24, 2024

2.0.1 compiles, but the testsuite still errs out, probably due to a opt-error.

Pasting in the respective comment from #67:
The ilmbase testsuite (not the openexr one) succeeds if only the two files testBoxAlgo.cpp and testBox.cpp are built with -fno-inline or -ffloat-store (either of theses gcc options does the trick).

from openexr.

nickrasmussen avatar nickrasmussen commented on May 24, 2024

opened the testBox failure as a separate issue: #100.

from openexr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.