All of lore.kernel.org
 help / color / mirror / Atom feed
* Regarding u-boot 2010.03 compilation with gcc 7.3(latest gcc in yocto)
@ 2019-10-07  9:45 Padamati, Praveen Reddy
  0 siblings, 0 replies; only message in thread
From: Padamati, Praveen Reddy @ 2019-10-07  9:45 UTC (permalink / raw)
  To: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 1402 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1865 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-10-07 11:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-07  9:45 Regarding u-boot 2010.03 compilation with gcc 7.3(latest gcc in yocto) Padamati, Praveen Reddy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.