<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:10pt;color:#000000;background-color:#FFFFFF;font-family:Candara,Sans-Serif;">
<p><br>
</p>
<p>Hi,</p>
<p>I am trying to add a native compilation support to oe rootfs.</p>
<p>Managed to add gcc ld support but upon compilation getting missing libs error.</p>
<p><br>
</p>
<p></p>
<div>aarch64-oe-linux-gcc x.c</div>
<div>x.c: In function 'main':</div>
<div>x.c:3:2: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]</div>
<div><br>
</div>
<div></div>
<div>/usr/lib/gcc/aarch64-oe-linux/5.3.0/../../../../aarch64-oe-linux/bin/ld: cannot find crt1.o: No such file or directory</div>
<div>/usr/lib/gcc/aarch64-oe-linux/5.3.0/../../../../aarch64-oe-linux/bin/ld: cannot find crti.o: No such file or directory</div>
<div>/usr/lib/gcc/aarch64-oe-linux/5.3.0/../../../../aarch64-oe-linux/bin/ld: cannot find crtbegin.o: No such file or directory</div>
<div>/usr/lib/gcc/aarch64-oe-linux/5.3.0/../../../../aarch64-oe-linux/bin/ld: cannot find -lgcc</div>
<div>/usr/lib/gcc/aarch64-oe-linux/5.3.0/../../../../aarch64-oe-linux/bin/ld: cannot find -lgcc_s</div>
<div>/usr/lib/gcc/aarch64-oe-linux/5.3.0/../../../../aarch64-oe-linux/bin/ld: cannot find -lc</div>
<div>/usr/lib/gcc/aarch64-oe-linux/5.3.0/../../../../aarch64-oe-linux/bin/ld: cannot find -lgcc</div>
<div>/usr/lib/gcc/aarch64-oe-linux/5.3.0/../../../../aarch64-oe-linux/bin/ld: cannot find -lgcc_s</div>
<div>/usr/lib/gcc/aarch64-oe-linux/5.3.0/../../../../aarch64-oe-linux/bin/ld: cannot find crtend.o: No such file or directory</div>
<div>/usr/lib/gcc/aarch64-oe-linux/5.3.0/../../../../aarch64-oe-linux/bin/ld: cannot find crtn.o: No such file or directory</div>
<div>collect2: error: ld returned 1 exit status</div>
<div><br>
</div>
<br>
<p></p>
<p><br>
</p>
<p>What is missing from my local.conf ?</p>
<p>This is below I have added.</p>
<p></p>
<div>IMAGE_INSTALL_append = "gcc"</div>
<div>IMAGE_INSTALL_append += " glibc"</div>
<div>IMAGE_INSTALL_append += " libgcc"</div>
<div>IMAGE_INSTALL_append += " binutils"</div>
<div>IMAGE_INSTALL_append += " gccmakedep"</div>
<p></p>
<p><br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<font face="Cordia New, sans-serif" size="2">Regards,</font>
<div><font face="Cordia New, sans-serif" size="2">Manish Jaggi</font></div>
</div>
</div>
</div>
</body>
</html>