Hi All,
When I am compiling u-boot 2010.03 with gcc 7.3 in yocto, It is throwing errors
regarding multiple definition of the all extern inline functions in u-boot. It
seems this gcc version is not supporting external inline functions.
Below is sample error log
---/build/tmp/work/tng-poky-linux-gnuspe/u-boot-qoriq/2018.03+fslgit-r0/u-boot-2010.03/include/asm/bitops.h:256:
multiple definition of `find_next_zero_bit'
hello_world.o:/home/praveen/tng-bsp/build/tmp/work/tng-poky-linux-gnuspe/u-boot-qoriq/2018.03+fslgit-r0/u-boot-2010.03/include/asm/bitops.h:256:
first defined here
libstubs.a(stubs.o): In function `ext2_test_bit':
---/build/tmp/work/tng-poky-linux-gnuspe/u-boot-qoriq/2018.03+fslgit-r0/u-boot-2010.03/include/asm/bitops.h:330:
multiple definition of `ext2_test_bit'
hello_world.o:/home/praveen/tng-bsp/build/tmp/work/tng-poky-linux-gnuspe/u-boot-qoriq/2018.03+fslgit-r0/u-boot-2010.03/include/asm/bitops.h:330:
first defined here
below is piece of code from bitops.h from where error is coming
extern __inline__ int ext2_test_bit(int nr, __const__ void * addr)
{
__const__ unsigned char *ADDR = (__const__ unsigned char *) addr;
return (ADDR[nr >> 3] >> (nr & 7)) & 1;
}
coming Any idea what is wrong and how to fix the problem?
Is it the right place to ask question about freescale u-boot compilation in
yocto.
Thanks
Praveen Reddy P
--
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale