All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jack Mitchell <ml@communistcode.co.uk>
To: openembedded-core@lists.openembedded.org
Subject: Re: ld problems with relocated toolchain
Date: Mon, 24 Sep 2012 09:54:49 +0100	[thread overview]
Message-ID: <50601FD9.4080009@communistcode.co.uk> (raw)
In-Reply-To: <50601D62.8070408@intel.com>

On 24/09/12 09:44, Laurentiu Palcu wrote:
>
> On 09/24/2012 11:37 AM, Jack Mitchell wrote:
>> On 24/09/12 03:17, Khem Raj wrote:
>>
>> [snip]
>>
>>>
>>> What does linker command looks like, its not in the above log you posted.
>>>
>>>
>> Hi Khem,
>>
>> Is this enough information?
>>
>> Building target: R0005
>> Invoking: GCC C Linker
>>
>> arm-poky-linux-gnueabi-gcc
>> -L/home/jack/Projects/R0005-SDK-210912/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/lib
>> -o "R0005"  ./src/webInterfaces/webInterface_rJSON.o
>> ./src/webInterfaces/webInterface_sqlite.o
>> ./src/webInterfaces/webInterface_webSockets.o
>> ./src/storageInterfaces/sqlite.o ./src/management/management_database.o
>> ./src/hardwareProtocols/hardwareProtocol_B092SPIImage.o
>> ./src/hardwareProtocols/hardwareProtocol_axonSPI.o
>> ./src/hardwareInterfaces/interface_gpio_mmap.o
>> ./src/hardwareInterfaces/interface_gpio_sysfs.o
>> ./src/hardwareInterfaces/interface_kMod.o
>> ./src/hardwareInterfaces/interface_serial.o
>> ./src/hardwareInterfaces/interface_spidev.o  ./src/B092/B092.o
>> ./src/B092/B092_config.o ./src/B092/B092_database.o
>> ./src/B092/B092_init.o ./src/B092/B092_socket.o
>> ./src/B092/B092_thumbnail.o ./src/B092/BO92_data.o ./src/AX02/AX02.o
>> ./src/AX02/AX02_PIDs.o ./src/AX02/AX02_config.o ./src/AX02/AX02_data.o
>> ./src/AX02/AX02_database.o ./src/AX02/AX02_init.o ./src/AX02/AX02_log.o
>> ./src/AX02/AX02_socket.o ./src/AX02/AX02_tables.o  ./src/R0005.o
>> ./src/errors.o ./src/systemConfig.o   -lsqlite3 -ljansson -lwebsockets
>> -lz -lpthread -ljpeg -lpng
>>
>> /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:
>> cannot find crt1.o: No such file or directory
>> /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:
>> cannot find crti.o: No such file or directory
>> /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:
>> cannot find crtbegin.o: No such file or directory
> Can you please try the little test app I wrote in order to test this? I
> attached it in the bug. Let me know if it works.
>
>> /lib/libpthread.so.0: file not recognized: File format not recognized
> This is kind of weird... It looks like it tries to link against the host
> libpthread library.

I agree, I also can't find libpthread.so.0 in my sysroot either, only 
libpthread.so, so maybe it is trying to fallback to host libs?

I have attached the output from the test cases you propsed and attached 
them to the bug report.

I also just tried passing the --sysroot= argument to no avail.

>
> Thanks,
> Laurentiu
>> collect2: error: ld returned 1 exit status
>>
>> make: *** [R0005] Error 1
>>
>> Regards,
>>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


-- 

   Jack Mitchell (jack@embed.me.uk)
   Embedded Systems Engineer
   http://www.embed.me.uk

--




  reply	other threads:[~2012-09-24  9:05 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-21 14:04 ld problems with relocated toolchain Jack Mitchell
2012-09-21 14:08 ` Richard Purdie
2012-09-21 14:23   ` Jack Mitchell
2012-09-21 14:27     ` Zhang, Jessica
2012-09-21 14:35       ` Jack Mitchell
2012-09-21 14:52 ` Laurentiu Palcu
2012-09-21 15:17   ` Jack Mitchell
2012-09-24  2:17     ` Khem Raj
2012-09-24  8:37       ` Jack Mitchell
2012-09-24  8:44         ` Laurentiu Palcu
2012-09-24  8:54           ` Jack Mitchell [this message]
2012-09-24 15:28             ` Khem Raj
2012-09-25  8:29               ` Jack Mitchell
2012-09-25 13:41                 ` Khem Raj
2012-09-25 13:58                   ` Jack Mitchell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50601FD9.4080009@communistcode.co.uk \
    --to=ml@communistcode.co.uk \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.