octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mac OS X 10.6 current build


From: Michael D Godfrey
Subject: Re: Mac OS X 10.6 current build
Date: Tue, 23 Mar 2010 22:26:40 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Thunderbird/3.0.3

On 03/23/2010 03:06 PM, Ben Abbott wrote:
On Tuesday, March 23, 2010, at 05:55PM, "John W. Eaton" <address@hidden> wrote:
  
>On 23-Mar-2010, Ben Abbott wrote:
>
>| On Mar 23, 2010, at 5:35 PM, "Michael D. Godfrey" <address@hidden 
>|  > wrote:
>| 
>| > I tried the current source (not having done this for a couple
>| > of months) and it built without any new problems,  except for 1
>| > error when running make check:
>| >
>| > >>>>> processing /src/octave/hg/octave/src/data.cc
>| >  ***** assert(log2(complex(0,Inf)), Inf + log2(i));
>| > !!!!! test failed
>| > assert (log2 (complex (0, Inf)),Inf + log2 (i)) expected
>| > Inf + 2.266i
>| > but got
>| > Inf - NaNi
>| > NaNs don't match
>| > =================================
>| > I think that I saw mention of this before.
>| >
>| > My build command was:
>| > ./autogen.sh ;  ./configure F77="gfortran -ff2c -O0" CFLAGS=-O0  
>| > CXXFLAGS=-O0 CPPFLAGS=-O0
>| >
>| > Michael
>| 
>| I get this error as well. Thus far I have not been able to resolve it  
>| using Apple's gcc 4.2.1.
>
>I think we've discussed this problem before.  Without optimization,
>GCC returns the incorrect result.  With optimization, it works.
>
>  http://n4.nabble.com/Log2-and-beta-test-failures-td1650551.html#a1650552
>
>jwe
    
Unfortunately this solution doesn't work for me. Either Apple's changes to gcc are responsible, or I'm doing something else that interferes.

Ben

  
I tried the compiler options using the gcc id:
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646) (dot 1)
and got the following results:

flag:   CFLAGS      CXXFLAGS   CPPFLAGS       result
          -O0                -O0                  -O0                        only data.cc fails
          -O2                -O0                  -O0                        only data.cc fails
          -O2                -O2                  -O2                        Octave will not start tests
          -O2                -O0                  -O2                        only data.cc fails
====================================================
Assuming that CXXFLAGS must be zero, the only remaining test is
(-O0   -O0   -O2).  I doubt if this will work, but I will give it a try for
completeness.  This compiler seemed to be the best I could find,
but evidently not really good enough.

Michael
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]