<br><br>On Monday, September 24, 2012, Jack Mitchell &lt;<a href="mailto:ml@communistcode.co.uk">ml@communistcode.co.uk</a>&gt; wrote:<br>&gt; On 24/09/12 09:44, Laurentiu Palcu wrote:<br>&gt;&gt;<br>&gt;&gt; On 09/24/2012 11:37 AM, Jack Mitchell wrote:<br>
&gt;&gt;&gt;<br>&gt;&gt;&gt; On 24/09/12 03:17, Khem Raj wrote:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; [snip]<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; What does linker command looks like, its not in the above log you posted.<br>
&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt; Hi Khem,<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Is this enough information?<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Building target: R0005<br>&gt;&gt;&gt; Invoking: GCC C Linker<br>&gt;&gt;&gt;<br>
&gt;&gt;&gt; arm-poky-linux-gnueabi-gcc<br>&gt;&gt;&gt; -L/home/jack/Projects/R0005-SDK-210912/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/lib<br>&gt;&gt;&gt; -o &quot;R0005&quot;  ./src/webInterfaces/webInterface_rJSON.o<br>
&gt;&gt;&gt; ./src/webInterfaces/webInterface_sqlite.o<br>&gt;&gt;&gt; ./src/webInterfaces/webInterface_webSockets.o<br>&gt;&gt;&gt; ./src/storageInterfaces/sqlite.o ./src/management/management_database.o<br>&gt;&gt;&gt; ./src/hardwareProtocols/hardwareProtocol_B092SPIImage.o<br>
&gt;&gt;&gt; ./src/hardwareProtocols/hardwareProtocol_axonSPI.o<br>&gt;&gt;&gt; ./src/hardwareInterfaces/interface_gpio_mmap.o<br>&gt;&gt;&gt; ./src/hardwareInterfaces/interface_gpio_sysfs.o<br>&gt;&gt;&gt; ./src/hardwareInterfaces/interface_kMod.o<br>
&gt;&gt;&gt; ./src/hardwareInterfaces/interface_serial.o<br>&gt;&gt;&gt; ./src/hardwareInterfaces/interface_spidev.o  ./src/B092/B092.o<br>&gt;&gt;&gt; ./src/B092/B092_config.o ./src/B092/B092_database.o<br>&gt;&gt;&gt; ./src/B092/B092_init.o ./src/B092/B092_socket.o<br>
&gt;&gt;&gt; ./src/B092/B092_thumbnail.o ./src/B092/BO92_data.o ./src/AX02/AX02.o<br>&gt;&gt;&gt; ./src/AX02/AX02_PIDs.o ./src/AX02/AX02_config.o ./src/AX02/AX02_data.o<br>&gt;&gt;&gt; ./src/AX02/AX02_database.o ./src/AX02/AX02_init.o ./src/AX02/AX02_log.o<br>
&gt;&gt;&gt; ./src/AX02/AX02_socket.o ./src/AX02/AX02_tables.o  ./src/R0005.o<br>&gt;&gt;&gt; ./src/errors.o ./src/systemConfig.o   -lsqlite3 -ljansson -lwebsockets<br>&gt;&gt;&gt; -lz -lpthread -ljpeg -lpng<br>&gt;&gt;&gt;<br>
&gt;&gt;&gt; /home/jack/Projects/R0005-SDK-210912/sysroots/x86_64-pokysdk-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi/../../libexec/armv7a-vfp-neon-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld:<br>&gt;&gt;&gt; cannot find crt1.o: No such file or directory<br>
&gt;&gt;&gt; /home/jack/Projects/R0005-SDK-210912/sysroots/x86_64-pokysdk-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi/../../libexec/armv7a-vfp-neon-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld:<br>&gt;&gt;&gt; cannot find crti.o: No such file or directory<br>
&gt;&gt;&gt; /home/jack/Projects/R0005-SDK-210912/sysroots/x86_64-pokysdk-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi/../../libexec/armv7a-vfp-neon-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld:<br>&gt;&gt;&gt; cannot find crtbegin.o: No such file or directory<br>
&gt;&gt;<br>&gt;&gt; Can you please try the little test app I wrote in order to test this? I<br>&gt;&gt; attached it in the bug. Let me know if it works.<br>&gt;&gt;<br>&gt;&gt;&gt; /lib/libpthread.so.0: file not recognized: File format not recognized<br>
&gt;&gt;<br>&gt;&gt; This is kind of weird... It looks like it tries to link against the host<br>&gt;&gt; libpthread library.<br>&gt;<br>&gt; I agree, I also can&#39;t find libpthread.so.0 in my sysroot either, only libpthread.so, so maybe it is trying to fallback to host libs?<br>
&gt;<br><br>Libpthread.so should be a linker script stub and that might not be adjusted for relocation since linker now will need sysroot option as the built in defaults aren&#39;t valid after relocation<br><br>Btw I needed the real LD command which you will get with -v<br>
&gt; I have attached the output from the test cases you propsed and attached them to the bug report.<br>&gt;<br>&gt; I also just tried passing the --sysroot= argument to no avail.<br>&gt;<br>&gt;&gt;<br>&gt;&gt; Thanks,<br>
&gt;&gt; Laurentiu<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; collect2: error: ld returned 1 exit status<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; make: *** [R0005] Error 1<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Regards,<br>&gt;&gt;&gt;<br>&gt;&gt; _______________________________________________<br>
&gt;&gt; Openembedded-core mailing list<br>&gt;&gt; <a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>&gt;&gt; <a href="http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core">http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core</a><br>
&gt;<br>&gt;<br>&gt; --<br>&gt;<br>&gt;   Jack Mitchell (<a href="mailto:jack@embed.me.uk">jack@embed.me.uk</a>)<br>&gt;   Embedded Systems Engineer<br>&gt;   <a href="http://www.embed.me.uk">http://www.embed.me.uk</a><br>
&gt;<br>&gt; --<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; Openembedded-core mailing list<br>&gt; <a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
&gt; <a href="http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core">http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core</a><br>&gt;