unsigned long long -> long double on hdf5-1.8.4

--- Mar 2/3/10, Raymond Lu ha scritto:

Marco,

You're probably right. It's a rounding issue.
What system and compiler
were you using? I'll need the output from the
configure and the
src/H5Tinit.c file from your build directory to look at
it. Thanks.

Ray

attached.

$ gcc --version
gcc (GCC) 4.3.4 20090804 (release) 1
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

config.log (181 KB)

H5Tinit.c (39 KB)

···

on cygwin-1.7 > > Marco Atzeri wrote:

> I presume it is a rounding issue
>
>
-------------------------------------------------------
> Testing soft unsigned long long -> long double
conversions
*FAILED*
> elmt 126:
> src = ff
ff ff ff ff ff ff ff

18446744073709551615
> dst = 00
00 40 3e ff ff ff ff ff ff ff
ff 18446744073709551615.000000
> ans = 00
00 40 3f 80 00 00 00 00 00 00
00 18446744073709551616.000000
> elmt 127:
> src = ff
ff ff ff ff ff ff fe

18446744073709551614
> dst = 00
00 40 3e ff ff ff ff ff ff ff
fe 18446744073709551614.000000
> ans = 00
00 40 3f 80 00 00 00 00 00 00
00 18446744073709551616.000000
> elmt 128:
> src = ff
ff ff ff ff ff ff fc

18446744073709551612
> dst = 00
00 40 3e ff ff ff ff ff ff ff
fc 18446744073709551612.000000
> ans = 00
00 40 3f 80 00 00 00 00 00 00
00 18446744073709551616.000000
> elmt 129:
> src = ff
ff ff ff ff ff ff f8

18446744073709551608
> dst = 00
00 40 3e ff ff ff ff ff ff ff
f8 18446744073709551608.000000
> ans = 00
00 40 3f 80 00 00 00 00 00 00
00 18446744073709551616.000000
> elmt 130:
> src = ff
ff ff ff ff ff ff f0

18446744073709551600
> dst = 00
00 40 3e ff ff ff ff ff ff ff
f0 18446744073709551600.000000
> ans = 00
00 40 3f 80 00 00 00 00 00 00
00 18446744073709551616.000000
> elmt 131:
> src = ff
ff ff ff ff ff ff e0

18446744073709551584
> dst = 00
00 40 3e ff ff ff ff ff ff ff
e0 18446744073709551584.000000
> ans = 00
00 40 3f 80 00 00 00 00 00 00
00 18446744073709551616.000000
> elmt 132:
> src = ff
ff ff ff ff ff ff c0

18446744073709551552
> dst = 00
00 40 3e ff ff ff ff ff ff ff
c0 18446744073709551552.000000
> ans = 00
00 40 3f 80 00 00 00 00 00 00
00 18446744073709551616.000000
> elmt 133:
> src = ff
ff ff ff ff ff ff 80

18446744073709551488
> dst = 00
00 40 3e ff ff ff ff ff ff ff
80 18446744073709551488.000000
> ans = 00
00 40 3f 80 00 00 00 00 00 00
00 18446744073709551616.000000
> elmt 134:
> src = ff
ff ff ff ff ff ff 00

18446744073709551360
> dst = 00
00 40 3e ff ff ff ff ff ff ff
00 18446744073709551360.000000
> ans = 00
00 40 3f 80 00 00 00 00 00 00
00 18446744073709551616.000000
> elmt 135:
> src = ff
ff ff ff ff ff fe 00

18446744073709551104
> dst = 00
00 40 3e ff ff ff ff ff ff fe
00 18446744073709551104.000000
> ans = 00
00 40 3f 80 00 00 00 00 00 00
00 18446744073709551616.000000
> elmt 136:
> src = ff
ff ff ff ff ff fc 00

18446744073709550592
> dst = 00
00 40 3e ff ff ff ff ff ff fc
00 18446744073709550592.000000
> ans = 00
00 40 3f 80 00 00 00 00 00 00
00 18446744073709551616.000000
> ***** 12 FAILURES! *****
> Command exited with non-zero status 1
> ----------------------------------------------------
>
> other platforms where this happen ?
>
> Regards
> Marco

Hi Marco,

--- Mar 2/3/10, Raymond Lu ha scritto:

Marco,

You're probably right. It's a rounding issue.
What system and compiler
were you using? I'll need the output from the
configure and the
src/H5Tinit.c file from your build directory to look at
it. Thanks.

Ray

attached.

$ gcc --version
gcc (GCC) 4.3.4 20090804 (release) 1
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

on cygwin-1.7

  What compiler flags are you using?

    Quincey

···

On Mar 2, 2010, at 10:02 AM, Marco Atzeri wrote:

Marco Atzeri wrote:

I presume it is a rounding issue

-------------------------------------------------------

Testing soft unsigned long long -> long double

conversions
*FAILED*

     elmt 126:
         src = ff

ff ff ff ff ff ff ff
           
18446744073709551615

         dst = 00

00 40 3e ff ff ff ff ff ff ff
ff 18446744073709551615.000000

         ans = 00

00 40 3f 80 00 00 00 00 00 00
00 18446744073709551616.000000

     elmt 127:
         src = ff

ff ff ff ff ff ff fe
           
18446744073709551614

         dst = 00

00 40 3e ff ff ff ff ff ff ff
fe 18446744073709551614.000000

         ans = 00

00 40 3f 80 00 00 00 00 00 00
00 18446744073709551616.000000

     elmt 128:
         src = ff

ff ff ff ff ff ff fc
           
18446744073709551612

         dst = 00

00 40 3e ff ff ff ff ff ff ff
fc 18446744073709551612.000000

         ans = 00

00 40 3f 80 00 00 00 00 00 00
00 18446744073709551616.000000

     elmt 129:
         src = ff

ff ff ff ff ff ff f8
           
18446744073709551608

         dst = 00

00 40 3e ff ff ff ff ff ff ff
f8 18446744073709551608.000000

         ans = 00

00 40 3f 80 00 00 00 00 00 00
00 18446744073709551616.000000

     elmt 130:
         src = ff

ff ff ff ff ff ff f0
           
18446744073709551600

         dst = 00

00 40 3e ff ff ff ff ff ff ff
f0 18446744073709551600.000000

         ans = 00

00 40 3f 80 00 00 00 00 00 00
00 18446744073709551616.000000

     elmt 131:
         src = ff

ff ff ff ff ff ff e0
           
18446744073709551584

         dst = 00

00 40 3e ff ff ff ff ff ff ff
e0 18446744073709551584.000000

         ans = 00

00 40 3f 80 00 00 00 00 00 00
00 18446744073709551616.000000

     elmt 132:
         src = ff

ff ff ff ff ff ff c0
           
18446744073709551552

         dst = 00

00 40 3e ff ff ff ff ff ff ff
c0 18446744073709551552.000000

         ans = 00

00 40 3f 80 00 00 00 00 00 00
00 18446744073709551616.000000

     elmt 133:
         src = ff

ff ff ff ff ff ff 80
           
18446744073709551488

         dst = 00

00 40 3e ff ff ff ff ff ff ff
80 18446744073709551488.000000

         ans = 00

00 40 3f 80 00 00 00 00 00 00
00 18446744073709551616.000000

     elmt 134:
         src = ff

ff ff ff ff ff ff 00
           
18446744073709551360

         dst = 00

00 40 3e ff ff ff ff ff ff ff
00 18446744073709551360.000000

         ans = 00

00 40 3f 80 00 00 00 00 00 00
00 18446744073709551616.000000

     elmt 135:
         src = ff

ff ff ff ff ff fe 00
           
18446744073709551104

         dst = 00

00 40 3e ff ff ff ff ff ff fe
00 18446744073709551104.000000

         ans = 00

00 40 3f 80 00 00 00 00 00 00
00 18446744073709551616.000000

     elmt 136:
         src = ff

ff ff ff ff ff fc 00
           
18446744073709550592

         dst = 00

00 40 3e ff ff ff ff ff ff fc
00 18446744073709550592.000000

         ans = 00

00 40 3f 80 00 00 00 00 00 00
00 18446744073709551616.000000

***** 12 FAILURES! *****
Command exited with non-zero status 1
----------------------------------------------------

other platforms where this happen ?

Regards
Marco

<config.log><H5Tinit.c>_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

--- Mar 2/3/10, Quincey Koziol ha scritto:

Hi Marco,

> --- Mar 2/3/10, Raymond Lu ha scritto:
>
>> Marco,
>>
>> You're probably right. It's a rounding
issue.
>> What system and compiler
>> were you using? I'll need the output from
the
>> configure and the
>> src/H5Tinit.c file from your build directory to
look at
>> it. Thanks.
>>
>> Ray
>
> attached.
>
> $ gcc --version
> gcc (GCC) 4.3.4 20090804 (release) 1
> Copyright (C) 2008 Free Software Foundation, Inc.
> This is free software; see the source for copying
conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE.
>
> on cygwin-1.7

What compiler flags are you using?

none.

configure --with-zlib \
          --with-gnu-ld \
          --enable-shared \
          --enable-threadsafe \
          --with-pthread \
          LDFLAGS=-no-undefined

if you are interested I can send you the full build log,
but as it is 2.7 Mb, it is not for the mailing list :slight_smile:

    Quincey

Marco

···

On Mar 2, 2010, at 10:02 AM, Marco Atzeri wrote:

Marco,

We've been trying to figure out the problem here. One of us ran into the same problem on Cygwin with Fedora and VM. Another doesn't have any problem with Cygwin on Windows Vista. What Windows did you use?

Thanks.

Ray

Marco Atzeri wrote:

···

--- Mar 2/3/10, Quincey Koziol ha scritto:

Hi Marco,

On Mar 2, 2010, at 10:02 AM, Marco Atzeri wrote:

--- Mar 2/3/10, Raymond Lu ha scritto:

Marco,

You're probably right. It's a rounding
        

issue.
    

What system and compiler were you using? I'll need the output from
        

the
    

configure and the src/H5Tinit.c file from your build directory to
        

look at
    

it. Thanks.

Ray
        

attached.

$ gcc --version
gcc (GCC) 4.3.4 20090804 (release) 1
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying
      

conditions. There is NO
    

warranty; not even for MERCHANTABILITY or FITNESS FOR
      

A PARTICULAR PURPOSE.
    

on cygwin-1.7
      

    What compiler flags are you using?
    
none.

configure --with-zlib \
          --with-gnu-ld \
          --enable-shared \
          --enable-threadsafe \
          --with-pthread \
          LDFLAGS=-no-undefined

if you are interested I can send you the full build log,
but as it is 2.7 Mb, it is not for the mailing list :slight_smile:

        Quincey
    
Marco

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

--- Mar 27/4/10, Raymond Lu ha scritto:

Marco,

We've been trying to figure out the problem here. One
of us ran into the same problem on Cygwin with Fedora and
VM. Another doesn't have any problem with Cygwin on
Windows Vista. What Windows did you use?

Cygwin 1.7 on Windows XP SP2

···

Thanks.

Ray

Marco Atzeri wrote:
> --- Mar 2/3/10, Quincey Koziol ha scritto:
>
>
>> Hi Marco,
>>
>> On Mar 2, 2010, at 10:02 AM, Marco Atzeri wrote:
>>
>>
>>> --- Mar 2/3/10, Raymond Lu ha scritto:
>>>
>>>
>>>> Marco,
>>>>
>>>> You're probably right. It's a
rounding
>>>>
>> issue.
>>>> What system and compiler were you
using? I'll need the output from
>>>>
>> the
>>
>>>> configure and the src/H5Tinit.c file from
your build directory to
>>>>
>> look at
>>
>>>> it. Thanks.
>>>>
>>>> Ray
>>>>
>>> attached.
>>>
>>> $ gcc --version
>>> gcc (GCC) 4.3.4 20090804 (release) 1
>>> Copyright (C) 2008 Free Software Foundation,
Inc.
>>> This is free software; see the source for
copying
>>>
>> conditions. There is NO
>>
>>> warranty; not even for MERCHANTABILITY or
FITNESS FOR
>>>
>> A PARTICULAR PURPOSE.
>>
>>> on cygwin-1.7
>> What compiler flags are
you using?
>>
>
> none.
>
> configure --with-zlib
\
>
--with-gnu-ld
\
>
--enable-shared
\
>
--enable-threadsafe
\
>
--with-pthread
\
>
LDFLAGS=-no-undefined
>
> if you are interested I can send you the full build
log,
> but as it is 2.7 Mb, it is not for the mailing list
:slight_smile:
>
>
>
>> Quincey
>>
>
> Marco
>
>
>
>
>
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> Hdf-forum@hdfgroup.org
> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
>
>

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org