unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#22406: Cannot compile for Windows x64 due to LLP64 model
@ 2016-01-19 13:50 Peter TB Brett
  2016-01-26 16:02 ` Mark H Weaver
  2016-06-20 20:01 ` Mark H Weaver
  0 siblings, 2 replies; 4+ messages in thread
From: Peter TB Brett @ 2016-01-19 13:50 UTC (permalink / raw)
  To: 22406

It is not currently possible to compile Guile 2.0.11 for Windows x64 (in 
particular 64-bit Windows running on the x86-64 arch).

Most operating systems' C libraries for x86-64 use an "LP64" model, 
where sizeof(long int) == sizeof(void *) == 8.

However, for backwards-compatibility reasons, Windows uses an "LLP64" 
model, where sizeof(long long int) == sizeof(void *) == 8 and 
sizeof(long int) == 4.

Guile 2.0.11 can't cope with this; the libguile build fails due to this 
code:

 > static SCM
 > scm_i_inum2big (scm_t_inum x)
 > {
 >   /* Return a newly created bignum initialized to X. */
 >   SCM z = make_bignum ();
 > #if SIZEOF_VOID_P == SIZEOF_LONG
 >   mpz_init_set_si (SCM_I_BIG_MPZ (z), x);
 > #else
 >   /* Note that in this case, you'll also have to check all mpz_*_ui and
 >      mpz_*_si invocations in Guile. */
 > #error creation of mpz not implemented for this inum size
 > #endif
 >   return z;
 > }

http://git.savannah.gnu.org/cgit/guile.git/tree/libguile/numbers.c?id=v2.0.11#n272

Some work appears to be required before using 64-bit Guile on Windows 
x64 is possible.


-- 
Dr Peter Brett <peter@peter-b.co.uk>





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-06-20 20:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-19 13:50 bug#22406: Cannot compile for Windows x64 due to LLP64 model Peter TB Brett
2016-01-26 16:02 ` Mark H Weaver
2016-01-26 17:38   ` Mark H Weaver
2016-06-20 20:01 ` Mark H Weaver

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).