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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1,166 Views
ramakrishnakatt
Contributor II

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

Labels (1)
0 Kudos
2 Replies

840 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello  Rama Krishna Katta,

Pleas use powerpc64-fsl_networking-linux-gcc as the following.

# powerpc64-fsl_networking-linux-gcc  -mhard-float -m64 -mcpu=e5500 --sysroot=/ws/blr-diags-bgl/QorIQ-SDK-64b-V1.5/sysroots/ppc64e5500-fsl_networking-linux


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

840 Views
ramakrishnakatt
Contributor II

Thanks for your help, I have used environment settings it is working fine. now it is failing with one error.

../../common/chips/dev_88e111x_marvell/dev_mrvl_ge.c:521:6: error: initializer element is not constant

../../common/chips/dev_88e111x_marvell/dev_mrvl_ge.c:521:6: error: (near initialization for 'ge_1114_p6_reg_tbl[1].size.size')

I gone through web this error becuase of compiler setting. earlier with 32 bit i did not have any issue with same code.

Do I need to change any setting.

0 Kudos