>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:

Lars> Dig deeper.

Lars> - compile without optimization - compile without inlining (and
Lars> get gdb and valgrind traces after that)

Did you actually read the bug report? It is a matter of adding a
preprocessor symbol to limits.hpp for IBM powerpc architecture. What
I'd like you to do is coordinate ourselves with the boost people.

I append the relevant parts of the bug.

JMarc

Build on powerpc-ibm-aix4.3.2.0 fails:

g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../.. -I../.. -I../../boost -O
-fno-rtti -fno-exceptions -c lyxsum.C -Wp,-MD,.deps/lyxsum.TPlo
In file included from ../../boost/boost/limits.hpp:15,
                 from ../../boost/boost/integer.hpp:19,
                 from ../../boost/boost/crc.hpp:14,
                 from lyxsum.C:14:
../../boost/boost/detail/limits.hpp:46: #error The file boost/detail/limits.hpp
needs to be set up for your CPU type.
make[3]: *** [lyxsum.lo] Error 1
make[3]: Leaving directory `/users2/mhans/lyx-1.2.0/src/support'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/users2/mhans/lyx-1.2.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/users2/mhans/lyx-1.2.0/src'
make: *** [all-recursive] Error 1

Added #define __ppc__ manually to be able to go on compiling, but this is
clearly not the way. Where should this really be fixed?


------- Additional Comment #1 From John Levon 2002-05-31 08:06 ------- 

It needs a pre-processing symbol that
identifies your platform with your compiler. Can you find one ?

Try :

echo "" | cpp -dM

This is really a boost bug (looks like this part was very alpha)


------- Additional Comment #2 From Martin Hans 2002-05-31 20:44 ------- 

> echo "" | cpp -dM
gives
#define _AIX 1
#define _LONG_LONG 1
#define _ARCH_COM 1
#define __CHAR_UNSIGNED__ 1
#define _AIX32 1
#define _AIX41 1
#define _AIX43 1
#define _POWER 1
#define _IBMR2 1

That would be either _POWER or _IBMR2 then? If I understand this right, we
should modify the #if in boost/boost/details/limits.hpp to

#if defined(__sparc) || defined(__sparc__) || defined(__powerpc__) ||
defined(__ppc__) || defined(__hppa) || defined(_MIPSEB) || defined(_POWER)

Reply via email to