Re: goffice-0.10.38 build problems

2018-03-02 Thread Morten Welinder
It would be interesting to figure out what did go wrong here.  It is
likely to be either
a libc bug or a compiler bug.  Both are a bit scary, but we have seen it before.
libc is my guess.

What libc is in play?  What value do you get if you use the %.55Lg format?

Morten







On Thu, Mar 1, 2018 at 2:04 PM, Jason Martin  wrote:
> Thanks, that works but I still did not get the 32 bit version of goffice to
> pass math tests.
>
> I ended up just shipping 64 bit version, if it gets approved.
>
> Rebuilt and tested gnumeric 64 bit and all seems fine.
>
> I may have missed some extra build/enviroment option for 32 bit in
> oi-userland Makefile.
>
> Gnumeric has an excellent reputation and I want it to stay that way.
>
> It is a great piece of open source work.
>
> ___
> gnumeric-list mailing list
> gnumeric-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gnumeric-list
>
___
gnumeric-list mailing list
gnumeric-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gnumeric-list


Re: goffice-0.10.38 build problems

2018-03-02 Thread Jason Martin
Thanks, that works but I still did not get the 32 bit version of goffice to
pass math tests.

I ended up just shipping 64 bit version, if it gets approved.

Rebuilt and tested gnumeric 64 bit and all seems fine.

I may have missed some extra build/enviroment option for 32 bit in
oi-userland Makefile.

Gnumeric has an excellent reputation and I want it to stay that way.

It is a great piece of open source work.
___
gnumeric-list mailing list
gnumeric-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gnumeric-list


Re: goffice-0.10.38 build problems

2018-03-01 Thread Morten Welinder
You need format %Lf here.

welinder@dicentra:~> gcc -O -Wall ttt.c
welinder@dicentra:~> ./a.out
outputs: 0.077979


Morten


On Wed, Feb 28, 2018 at 10:15 AM, Jason Martin  wrote:
> On OpenIndiana trying to update:
>
> goffice-0.10.35 to goffice-0.10.38
>
> test-math.c is failing for me
>
> test-math.log
>
> sinpi(0) = 0  [0]
> cospi(0) = 1  [1]
> tanpi(0) = 0  [0]
> cotpi(0) = nan  [nan]
> atanpi(0) = 0  [0]
> sinpil(0) = 0  [0]
> cospil(0) = 1  [1]
> tanpil(0) = 0  [0]
> cotpil(0) = nan  [nan]
> atanpil(0) = 0  [0]
> sinpi(-0) = -0  [-0]
> cospi(-0) = 1  [1]
> tanpi(-0) = -0  [-0]
> cotpi(-0) = -nan  [-nan]
> atanpi(-0) = -0  [-0]
> sinpil(-0) = -0  [-0]
> cospil(-0) = 1  [1]
> tanpil(-0) = -0  [-0]
> cotpil(-0) = -nan  [-nan]
> atanpil(-0) = -0  [-0]
> sinpi(0.125) = 0.382683  [0.382683]
> cospi(0.125) = 0.92388  [0.92388]
> tanpi(0.125) = 0.414214  [0.414214]
> cotpi(0.125) = 2.41421  [2.41421]
> atanpi(0.125) = 0.0395834  [0.0395834]
> sinpil(0.125) = 0.382683  [0.382683]
> cospil(0.125) = 0.92388  [0.92388]
> tanpil(0.125) = 0.414214  [0.414214]
> cotpil(0.125) = 2.41421  [2.41421]
> atanpil(0.125) = 0.0395834  [0.0395834]
> sinpi(-0.125) = -0.382683  [-0.382683]
> cospi(-0.125) = 0.92388  [0.92388]
> tanpi(-0.125) = -0.414214  [-0.414214]
> cotpi(-0.125) = -2.41421  [-2.41421]
> atanpi(-0.125) = -0.0395834  [-0.0395834]
> sinpil(-0.125) = -0.382683  [-0.382683]
> cospil(-0.125) = 0.92388  [0.92388]
> tanpil(-0.125) = -0.414214  [-0.414214]
> cotpil(-0.125) = -2.41421  [-2.41421]
> atanpil(-0.125) = -0.0395834  [-0.0395834]
> sinpi(0.25) = 0.707107  [0.707107]
> cospi(0.25) = 0.707107  [0.707107]
> tanpi(0.25) = 1  [1]
> cotpi(0.25) = 1  [1]
> atanpi(0.25) = 0.0779791  [0.0779791]
> sinpil(0.25) = 0.707107  [0.707107]
> cospil(0.25) = 0.707107  [0.707107]
> tanpil(0.25) = 1  [1]
> cotpil(0.25) = 1  [1]
> **
> ERROR:/export/home/agrellum/oi-userland/components/library/goffice/goffice-0.10.38/tests/test-math.c:106:trig_tests:
> assertion failed: (r == fa)
> FAIL test-math (exit status: 134)
>
> I think the next call would be atanpil at 0.25
>
> and it is excepting both sides to be 0.077979
>
> Going through the source and man pages:
>
> A sample shows:
>
>
> #include 
> #include 
>
> int main (int argc, char **argv)
> {
> long double x;
> x=0.25;
> printf("outputs: %f \n", atanl (x) / M_PI);
> // Output: ``outputs: -0.00``
>
> return 0;
> }
>
>
> gcc -std=gnu99 -lm sample.c
> ./a.out
>
> outputs: -0.00
>
>
>
> ___
> gnumeric-list mailing list
> gnumeric-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gnumeric-list
>
___
gnumeric-list mailing list
gnumeric-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gnumeric-list