Re: base not detecting Double/Float machine sizes (QNXNTO)

Stephen Paul Weber <[email protected]> Mon, 7 Jan 2013 11:36:38 -0500
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <20130107163638.GF1846@singpolyma-svelti>
--===============3926451206818854065==
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature"; boundary="idY8LE8SD6/8DnRI"
Content-Disposition: inline


--idY8LE8SD6/8DnRI
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Somebody claiming to be Ian Lynagh wrote:
>On Thu, Dec 20, 2012 at 01:20:46PM -0500, Stephen Paul Weber wrote:
>> Somebody claiming to be Stephen Paul Weber wrote:
>> >libraries/base/Foreign/C/Types.hs:162:25:
>> >
>> >Not in scope: type constructor or class `HTYPE_FLOAT'
>>
>> After much more digging into the source, it seems that the
>> `Storable` class for the CFloat and CDouble types assumes that
>> HTYPE_FLOAT and HTYPE_DOUBLE have the right storage characteristics
>> for float and double.
>
>Do you know why the test is failing?

I'm still not sure what the test is testing.  More useful log output at=20
<http://pastie.org/5643258>.  It seems to casting a number about and then=
=20
checking... something, which is failing.

It seems the failure is linked to the fact that `test_array` is being=20
declared static.  I cannot find the place in the m4 macros where this=20
happens yet, but will keep looking.

Though... surely it *is* constant?  It should be determinible at compile=20
time.  Though, even my local (non-cross-compile) gcc gives that same error=
=20
on the program from that log.

--=20
Stephen Paul Weber, @singpolyma
See <http://singpolyma.net> for how I prefer to be contacted
edition right joseph

--idY8LE8SD6/8DnRI
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJQ6vmVAAoJENEcKRHOUZzeYvMP/0SnFdUg2rSLCsWviIbZt9Rc
g1cuV2BUsIA2w/NQ9lx9UQVmxKlMOGp7F/57HOitklW4kX1/0OZVWNYKtb49lxuT
sU7qn8gkwiG/Bexv1MRkSaNnlGvhXwpwgphIZqujy5cqUTamy2KTHhukGrMyGDho
DgcEkgkCnEyVVpJvuPP+0Lw1wCrnFNLiRL7NZLd3VU5uWjvGrvhDDEYxvdQQV2EH
qOKC+b1Eu3hvVU4iuLO5MSfw42YeisHpsbdvDyHkG+LtDdCmuJ2ZiL4jCWoVjOJK
mDTt4act8UJ3IMJGJCKf0X6CoBU6Mki48wtX97kAwUp6V3DV7Vt4WJ7cI2w1bkyq
CWeal1uCe8h36I6I0oCcdsUkqtQyMG3lT6GzCvmRvSePFWIss+JCvXtMqGATCboz
D9ga4yC98I7lJ/xpyleuqE2r/haX7oREUhMhewyvnrmVBD54q8IJ6s5HGBYujgOC
KuzGoRDDCL3fPUvATwFIWTuQgJt6KbPzKSGDtEXDS272eYfIERpCC84ce2MB6jW0
Cyp9aWM6BZL4AiU0t/wOUyNY+HotIie8eEozNDvK8NouJVJRG4uhpRwg2GePJcSw
/CI1HzFFkLUwQ2IoLCkNXFNhNmgoYcYWJVQWyKSfoRUsalA33lJh5/ug8eW9WOlO
uW1YUNCsqWHUnuOahGoK
=029m
-----END PGP SIGNATURE-----

--idY8LE8SD6/8DnRI--


--===============3926451206818854065==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

--===============3926451206818854065==--