View Single Post
Old 2009-03-15, 07:08   #3
jedirock
 
jedirock's Avatar
 
Mar 2009
Ottawa, Canada

2·3 Posts
Default

Quote:
Originally Posted by PBMcL View Post
First, I'm assuming you can build a 64-bit version of GMP and pass make check on your machine. If so, compare the config.m4 file generated when you build GMP to the config.m4 file generated by ECM. There may be include files or defines for the assembler in the GMP file which are missing from the ECM file.
Hi PBMcL, I'm the one attempting the 64-bit OS X compile on behalf of yoyo, so I figured it'd just be easier for me to post directly. No, the config.m4 files are not the same between the two directories.

gmp (v4.2.4):
Code:
dnl config.m4.  Generated automatically by configure.
changequote(<,>)
ifdef(<__CONFIG_M4_INCLUDED__>,,<
define(<CONFIG_TOP_SRCDIR>,<`../.'>)
define(<WANT_ASSERT>,0)
define(<WANT_PROFILING>,<`no'>)
define(<M4WRAP_SPURIOUS>,<no>)
define(<TEXT>, <.text>)
define(<DATA>, <.data>)
define(<LABEL_SUFFIX>, <:>)
define(<GLOBL>, <.globl>)
define(<GLOBL_ATTR>, <>)
define(<GSYM_PREFIX>, <_>)
define(<RODATA>, <.data>)
define(<TYPE>, <>)
define(<SIZE>, <>)
define(<LSYM_PREFIX>, <L>)
define(<W32>, <.long>)
define(<ALIGN_LOGARITHMIC>,<yes>)
define(<ALIGN_FILL_0x90>,<yes>)
define(<SQR_KARATSUBA_THRESHOLD>,<66>)
define(<SIZEOF_UNSIGNED>,<4>)
define(<GMP_LIMB_BITS>,64)
define(<GMP_NAIL_BITS>,0)
define(<GMP_NUMB_BITS>,eval(GMP_LIMB_BITS-GMP_NAIL_BITS))
>)
changequote(`,')
ifdef(`__CONFIG_M4_INCLUDED__',,`
include(CONFIG_TOP_SRCDIR`/mpn/asm-defs.m4')
include_mpn(`x86_64/x86_64-defs.m4')
define_not_for_expansion(`HAVE_HOST_CPU_x86_64')
define_not_for_expansion(`HAVE_ABI_64')
define_not_for_expansion(`HAVE_LIMB_LITTLE_ENDIAN')
define_not_for_expansion(`HAVE_DOUBLE_IEEE_LITTLE_ENDIAN')
')
define(`__CONFIG_M4_INCLUDED__')
ecm (v6.2.1):
Code:
dnl config.m4.  Generated automatically by configure.
changequote(<,>)
ifdef(<__CONFIG_M4_INCLUDED__>,,<
define(<TEXT>, <.text>)
define(<GLOBL>, <.globl>)
define(<LABEL_SUFFIX>, <$1:>)
define(<GSYM_PREFIX>, <_>)
define(<TEXT>, <.text>)
define(<GLOBL>, <.globl>)
define(<TYPE>, <>)
>)
changequote(`,')
ifdef(`__CONFIG_M4_INCLUDED__',,`
')
define(`__CONFIG_M4_INCLUDED__')
Should the two files be the same?
jedirock is offline   Reply With Quote