AnsweredAssumed Answered

where to define __powerpc64__ to use powerpc64-fsl_networking-linux-gcc

Question asked by Rama Krishna Katta on May 12, 2015
Latest reply on May 25, 2015 by Rama Krishna Katta

I am using PPC 64 bit compiler powerpc64-fsl_networking-linux-gcc, for this where i have to define __powerpc64__, becuase of this it is failing to include

/ws/blr-diags-bgl/QorIQ-SDK-64b-V1.5/sysroots/ppc64e5500-fsl_networking-linux/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory

ideally it has to include stubs-64.h file

 

#if defined __powerpc64__

# define __WORDSIZE     64

# define __WORDSIZE_COMPAT32    1

#else

# define __WORDSIZE     32

#endif

 

#if __WORDSIZE == 32

# include <gnu/stubs-32.h>

#elif __WORDSIZE == 64

# include <gnu/stubs-64.h>

#else

# error "unexpected value for __WORDSIZE macro"

#endif

Outcomes