64 bit compilation on solaris 10

Torbjorn Granlund tege at swox.com
Thu Sep 29 16:48:09 CEST 2005


Mike Helm <helm at fionn.es.net> writes:

  gmp-4.1.4
  SunOS something 5.10 Generic_118822-11 sun4u sparc
  
  About line 2512 in configure:
        # sparc64-*-linux-gnu is a misnomer, since there's no support for any
  
  this test
          case $host in
            *-*-solaris2.[7-9])
  blocks configure from setting up 64 bit compilation on solaris 10
  (see uname above)
  
  Somewhere in configfsf.sub "sunos5" gets turned into solaris2.
  setting the os to solaris2.9  (I gave --build sparcv9-sun-solaris2.9 
  to configure) allows a 64 bit gmp library to build which seems
  to work (passes make check).

Thanks for the report.  The configure of what will become 4.2 has
this fixed.

In the meantime, you may want to patch configure and configure.in:

*** configure.in	30 Aug 2005 01:15:32 -0000	1.425.2.27
--- configure.in	29 Sep 2005 14:17:48 -0000
*************** case $host in
*** 891,895 ****
  
          case $host in
!           [*-*-solaris2.[7-9]])
              # solaris prior to 2.6 doesn't save registers properly, so the
              # 64-bit ABI is only available for 2.7 up
--- 891,895 ----
  
          case $host in
!           [*-*-solaris2.[7-9]] | [*-*-solaris2.1[0-9]])
              # solaris prior to 2.6 doesn't save registers properly, so the
              # 64-bit ABI is only available for 2.7 up
*** configure	30 Aug 2005 01:20:13 -0000	1.360.2.24
--- configure	29 Sep 2005 14:45:14 -0000
*************** echo "include_mpn(\`sparc32/sparc-defs.m
*** 2533,2537 ****
  
          case $host in
!           *-*-solaris2.[7-9])
              # solaris prior to 2.6 doesn't save registers properly, so the
              # 64-bit ABI is only available for 2.7 up
--- 2533,2537 ----
  
          case $host in
!           *-*-solaris2.[7-9] | *-*-solaris2.1[0-9])
              # solaris prior to 2.6 doesn't save registers properly, so the
              # 64-bit ABI is only available for 2.7 up

-- 
Torbjörn


More information about the gmp-bugs mailing list