[CLN-list] problems building on powerpc64
Bruno Haible
bruno at clisp.org
Thu Mar 30 14:54:13 CEST 2006
Hello,
Dmitry Khutornoy wrote:
> I got problems with building CLN on PowerPC64.
>
> uname -a
> Linux blade1 2.6.5-7.252-pseries64 #1 SMP Tue Feb 14 11:11:04 UTC 2006
> ppc64 ppc64 ppc64 GNU/Linux
>
> make
> ...
> In file included from base/cl_N.h:6,
> from base/cl_as_err.cc:7:
> ../include/cln/number.h: In constructor `cln::cl_number::cl_number()':
> ../include/cln/number.h:191: error: `cl_FN_tag' undeclared (first use this
> function)
> ../include/cln/number.h:191: error: (Each undeclared identifier is reported
> only once for each function it appears in.)
>
> And it seems i know why does it happen:
>
> <config.h>
> ...
> #ifndef __powerpc64__
> #define __powerpc64__ 1
> #endif
> ...
>
> <object.h>
> ...
> #if defined(__alpha__) || defined(__ia64__) || defined(__mips64__) ||
> defined(__powerpc64__) || defined(__sparc64__) || defined(__x86_64__)
> #define cl_word_alignment 8
> #endif
> ...
> // Definition of the tags.
> #if !defined(CL_WIDE_POINTERS)
> #if (cl_word_alignment == 2)
> #define cl_FN_tag 1
> #define cl_SF_tag 3 // must satisfy the cl_immediate_p
> predicate! #endif
> #if (cl_word_alignment == 4)
> #define cl_FN_tag 1
> #define cl_SF_tag 2
> #endif
> #else // CL_WIDE_POINTERS
> // Single Floats are immediate as well.
> #define cl_FN_tag 1
> #define cl_SF_tag 2
> #define cl_FF_tag 3
> #endif
>
> There is no branch defining tags for powerpc64 (cl_word_alignment==8)
On 64-bit CPUs the macro CL_WIDE_POINTERS should be defined.
Can you please show the contents of the autogenerated cln/intparam.h ?
Bruno
More information about the CLN-list
mailing list