<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi All,</p>
<p>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.</p>
<p>Below is sample error log <br>
</p>
<p><font color="#993300">---/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'<br>
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<br>
libstubs.a(stubs.o): In function `ext2_test_bit':<br>
---/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'<br>
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</font><br>
</p>
<p>below is piece of code from bitops.h from where error is coming</p>
<p><font color="#333399">extern __inline__ int ext2_test_bit(int nr, __const__ void * addr)<br>
{<br>
    __const__ unsigned char    *ADDR = (__const__ unsigned char *) addr;<br>
<br>
    return (ADDR[nr >> 3] >> (nr & 7)) & 1;<br>
}</font></p>
<p>coming Any idea what is wrong and how to fix the problem?</p>
<p>Is it the right place to ask question about freescale u-boot compilation in yocto.<br>
</p>
<p>Thanks</p>
<p><font color="#333399"><font color="#000000">Praveen Reddy P</font><br>
</font></p>
</body>
</html>