[CLN-list] problems building on powerpc64

Dmitry Khutornoy khutornoy at gmail.com
Thu Mar 30 14:47:06 CEST 2006


Hello!

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)

Please, tell me what values should i write in #define or explain what
am i doing wrong.

Thank you!

-- 
Best regards,
 Dmitry                          mailto:khutornoy at gmail.com



More information about the CLN-list mailing list