* ld problems with relocated toolchain
@ 2012-09-21 14:04 Jack Mitchell
2012-09-21 14:08 ` Richard Purdie
2012-09-21 14:52 ` Laurentiu Palcu
0 siblings, 2 replies; 15+ messages in thread
From: Jack Mitchell @ 2012-09-21 14:04 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
I am currently having issues building my application with the latest
toolchain.
I have used the new capabilities of it being relocatable to place it
somewhere sensible and I think this may be what is breaking it. My old
toolchain in /opt still works perfectly.
The error I receive is:
/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
collect2: error: ld returned 1 exit status
make: *** [R0005] Error 1
However, crtbeign.o is at the path:
[jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ pwd
/home/jack/Projects/R0005-SDK-210912/sysroots/armv7a-vfp-neon-poky-linux-gnueabi
[jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ find . -name
crtbegin.o
./usr/lib/arm-poky-linux-gnueabi/4.7.2/crtbegin.o
[jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ ls usr/lib
lib/ libexec/
[jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ ls usr/libexec/
pt_chown
[jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$
Does anyone have an idea what is the issue here? Why can't it find the
object file?
--
Jack Mitchell (jack@embed.me.uk)
Embedded Systems Engineer
http://www.embed.me.uk
--
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: ld problems with relocated toolchain
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:52 ` Laurentiu Palcu
1 sibling, 1 reply; 15+ messages in thread
From: Richard Purdie @ 2012-09-21 14:08 UTC (permalink / raw)
To: ml; +Cc: Patches and discussions about the oe-core layer
On Fri, 2012-09-21 at 15:04 +0100, Jack Mitchell wrote:
> I am currently having issues building my application with the latest
> toolchain.
>
> I have used the new capabilities of it being relocatable to place it
> somewhere sensible and I think this may be what is breaking it. My old
> toolchain in /opt still works perfectly.
>
> The error I receive is:
>
> /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
> collect2: error: ld returned 1 exit status
> make: *** [R0005] Error 1
>
> However, crtbeign.o is at the path:
>
> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ pwd
> /home/jack/Projects/R0005-SDK-210912/sysroots/armv7a-vfp-neon-poky-linux-gnueabi
> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ find . -name
> crtbegin.o
> ./usr/lib/arm-poky-linux-gnueabi/4.7.2/crtbegin.o
> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ ls usr/lib
> lib/ libexec/
> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ ls usr/libexec/
> pt_chown
> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$
>
>
> Does anyone have an idea what is the issue here? Why can't it find the
> object file?
Did you have the patches that just merged to master applied? There are a
number of relocation issues those just addressed.
Cheers,
Richard
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: ld problems with relocated toolchain
2012-09-21 14:08 ` Richard Purdie
@ 2012-09-21 14:23 ` Jack Mitchell
2012-09-21 14:27 ` Zhang, Jessica
0 siblings, 1 reply; 15+ messages in thread
From: Jack Mitchell @ 2012-09-21 14:23 UTC (permalink / raw)
Cc: Patches and discussions about the oe-core layer
On 21/09/12 15:08, Richard Purdie wrote:
> On Fri, 2012-09-21 at 15:04 +0100, Jack Mitchell wrote:
>> I am currently having issues building my application with the latest
>> toolchain.
>>
>> I have used the new capabilities of it being relocatable to place it
>> somewhere sensible and I think this may be what is breaking it. My old
>> toolchain in /opt still works perfectly.
>>
>> The error I receive is:
>>
>> /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
>> collect2: error: ld returned 1 exit status
>> make: *** [R0005] Error 1
>>
>> However, crtbeign.o is at the path:
>>
>> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ pwd
>> /home/jack/Projects/R0005-SDK-210912/sysroots/armv7a-vfp-neon-poky-linux-gnueabi
>> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ find . -name
>> crtbegin.o
>> ./usr/lib/arm-poky-linux-gnueabi/4.7.2/crtbegin.o
>> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ ls usr/lib
>> lib/ libexec/
>> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ ls usr/libexec/
>> pt_chown
>> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$
>>
>>
>> Does anyone have an idea what is the issue here? Why can't it find the
>> object file?
> Did you have the patches that just merged to master applied? There are a
> number of relocation issues those just addressed.
>
> Cheers,
>
> Richard
>
If you're talking about the ones from Laurentiu, then yes - I had been
waiting for the merge and was hoping that it would fix my issues, but
alas it wasn't to be!
Regards,
--
Jack Mitchell (jack@embed.me.uk)
Embedded Systems Engineer
http://www.embed.me.uk
--
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: ld problems with relocated toolchain
2012-09-21 14:23 ` Jack Mitchell
@ 2012-09-21 14:27 ` Zhang, Jessica
2012-09-21 14:35 ` Jack Mitchell
0 siblings, 1 reply; 15+ messages in thread
From: Zhang, Jessica @ 2012-09-21 14:27 UTC (permalink / raw)
To: ml@communistcode.co.uk; +Cc: Patches and discussions about the oe-core layer
Jack,
Please open a bug in bugzilla for the issue, since we're in final stage of 1.3, all the issues that need to be addressed need have a bug number associate with it.
Thanks,
Jessica
-----Original Message-----
From: openembedded-core-bounces@lists.openembedded.org [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of Jack Mitchell
Sent: Friday, September 21, 2012 7:23 AM
Cc: Patches and discussions about the oe-core layer
Subject: Re: [OE-core] ld problems with relocated toolchain
On 21/09/12 15:08, Richard Purdie wrote:
> On Fri, 2012-09-21 at 15:04 +0100, Jack Mitchell wrote:
>> I am currently having issues building my application with the latest
>> toolchain.
>>
>> I have used the new capabilities of it being relocatable to place it
>> somewhere sensible and I think this may be what is breaking it. My
>> old toolchain in /opt still works perfectly.
>>
>> The error I receive is:
>>
>> /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
>> collect2: error: ld returned 1 exit status
>> make: *** [R0005] Error 1
>>
>> However, crtbeign.o is at the path:
>>
>> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ pwd
>> /home/jack/Projects/R0005-SDK-210912/sysroots/armv7a-vfp-neon-poky-linux-gnueabi
>> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ find . -name
>> crtbegin.o
>> ./usr/lib/arm-poky-linux-gnueabi/4.7.2/crtbegin.o
>> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ ls usr/lib
>> lib/ libexec/
>> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ ls usr/libexec/
>> pt_chown
>> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$
>>
>>
>> Does anyone have an idea what is the issue here? Why can't it find
>> the object file?
> Did you have the patches that just merged to master applied? There are
> a number of relocation issues those just addressed.
>
> Cheers,
>
> Richard
>
If you're talking about the ones from Laurentiu, then yes - I had been waiting for the merge and was hoping that it would fix my issues, but alas it wasn't to be!
Regards,
--
Jack Mitchell (jack@embed.me.uk)
Embedded Systems Engineer
http://www.embed.me.uk
--
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: ld problems with relocated toolchain
2012-09-21 14:27 ` Zhang, Jessica
@ 2012-09-21 14:35 ` Jack Mitchell
0 siblings, 0 replies; 15+ messages in thread
From: Jack Mitchell @ 2012-09-21 14:35 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On 21/09/12 15:27, Zhang, Jessica wrote:
> Jack,
>
> Please open a bug in bugzilla for the issue, since we're in final stage of 1.3, all the issues that need to be addressed need have a bug number associate with it.
>
> Thanks,
> Jessica
>
> -----Original Message-----
> From: openembedded-core-bounces@lists.openembedded.org [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of Jack Mitchell
> Sent: Friday, September 21, 2012 7:23 AM
> Cc: Patches and discussions about the oe-core layer
> Subject: Re: [OE-core] ld problems with relocated toolchain
>
> On 21/09/12 15:08, Richard Purdie wrote:
>> On Fri, 2012-09-21 at 15:04 +0100, Jack Mitchell wrote:
>>> I am currently having issues building my application with the latest
>>> toolchain.
>>>
>>> I have used the new capabilities of it being relocatable to place it
>>> somewhere sensible and I think this may be what is breaking it. My
>>> old toolchain in /opt still works perfectly.
>>>
>>> The error I receive is:
>>>
>>> /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
>>> collect2: error: ld returned 1 exit status
>>> make: *** [R0005] Error 1
>>>
>>> However, crtbeign.o is at the path:
>>>
>>> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ pwd
>>> /home/jack/Projects/R0005-SDK-210912/sysroots/armv7a-vfp-neon-poky-linux-gnueabi
>>> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ find . -name
>>> crtbegin.o
>>> ./usr/lib/arm-poky-linux-gnueabi/4.7.2/crtbegin.o
>>> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ ls usr/lib
>>> lib/ libexec/
>>> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ ls usr/libexec/
>>> pt_chown
>>> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$
>>>
>>>
>>> Does anyone have an idea what is the issue here? Why can't it find
>>> the object file?
>> Did you have the patches that just merged to master applied? There are
>> a number of relocation issues those just addressed.
>>
>> Cheers,
>>
>> Richard
>>
> If you're talking about the ones from Laurentiu, then yes - I had been waiting for the merge and was hoping that it would fix my issues, but alas it wasn't to be!
>
> Regards,
>
> --
>
> Jack Mitchell (jack@embed.me.uk)
> Embedded Systems Engineer
> http://www.embed.me.uk
>
> --
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
https://bugzilla.yoctoproject.org/show_bug.cgi?id=3156
Thanks!
--
Jack Mitchell (jack@embed.me.uk)
Embedded Systems Engineer
http://www.embed.me.uk
--
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: ld problems with relocated toolchain
2012-09-21 14:04 ld problems with relocated toolchain Jack Mitchell
2012-09-21 14:08 ` Richard Purdie
@ 2012-09-21 14:52 ` Laurentiu Palcu
2012-09-21 15:17 ` Jack Mitchell
1 sibling, 1 reply; 15+ messages in thread
From: Laurentiu Palcu @ 2012-09-21 14:52 UTC (permalink / raw)
To: ml; +Cc: Patches and discussions about the oe-core layer
On 09/21/2012 05:04 PM, Jack Mitchell wrote:
> I am currently having issues building my application with the latest
> toolchain.
>
> I have used the new capabilities of it being relocatable to place it
> somewhere sensible and I think this may be what is breaking it. My old
> toolchain in /opt still works perfectly.
>
> The error I receive is:
>
> /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
> collect2: error: ld returned 1 exit status
> make: *** [R0005] Error 1
Did this error appear after the latest SDK fixes that were merged today?
Can you activate compiler verbose mode so we can see the arguments
passed to the linker? Does it work if you install in the default
location? Or better, can you tell the exact steps you followed to get
this issue?
Thanks,
Laurentiu
>
> However, crtbeign.o is at the path:
>
> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ pwd
> /home/jack/Projects/R0005-SDK-210912/sysroots/armv7a-vfp-neon-poky-linux-gnueabi
> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ find . -name
> crtbegin.o
> ./usr/lib/arm-poky-linux-gnueabi/4.7.2/crtbegin.o
> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ ls usr/lib
> lib/ libexec/
> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ ls usr/libexec/
> pt_chown
> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$
>
>
> Does anyone have an idea what is the issue here? Why can't it find the
> object file?
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: ld problems with relocated toolchain
2012-09-21 14:52 ` Laurentiu Palcu
@ 2012-09-21 15:17 ` Jack Mitchell
2012-09-24 2:17 ` Khem Raj
0 siblings, 1 reply; 15+ messages in thread
From: Jack Mitchell @ 2012-09-21 15:17 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On 21/09/12 15:52, Laurentiu Palcu wrote:
>
> On 09/21/2012 05:04 PM, Jack Mitchell wrote:
>> I am currently having issues building my application with the latest
>> toolchain.
>>
>> I have used the new capabilities of it being relocatable to place it
>> somewhere sensible and I think this may be what is breaking it. My old
>> toolchain in /opt still works perfectly.
>>
>> The error I receive is:
>>
>> /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
>> collect2: error: ld returned 1 exit status
>> make: *** [R0005] Error 1
> Did this error appear after the latest SDK fixes that were merged today?
> Can you activate compiler verbose mode so we can see the arguments
> passed to the linker? Does it work if you install in the default
> location? Or better, can you tell the exact steps you followed to get
> this issue?
Exact steps:
bitbake meta-toolchain
run toolchain setup script
tell application to use new toolchain and sysroot
compile
This was appearing before the patches that were merged today.
Works fine when installed in default location.
Some more verbose output:
/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/as
-v -I
/home/jack/Projects/R0005-SDK-210912/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/include
-mcpu=cortex-a8 -mfloat-abi=softfp -mfpu=neon -meabi=5 -o
src/systemConfig.o /tmp/ccr24jiu.s
GNU assembler version 2.22 (arm-poky-linux-gnueabi) using BFD version
(GNU Binutils) 2.22
COMPILER_PATH=/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/:/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/
LIBRARY_PATH=/home/jack/Projects/R0005-SDK-210912/sysroots/x86_64-pokysdk-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi/../../lib/armv7a-vfp-neon-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/:/home/jack/Projects/R0005-SDK-210912/sysroots/x86_64-pokysdk-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi/../../lib/armv7a-vfp-neon-poky-linux-gnueabi/gcc/
COLLECT_GCC_OPTIONS='-I'
'/home/jack/Projects/R0005-SDK-210912/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/include'
'-O0' '-mfpu=neon' '-mfloat-abi=softfp' '-mcpu=cortex-a8' '-g3' '-Wall'
'-Wextra' '-c' '-fmessage-length=0' '-v' '-MMD' '-MP' '-MF'
'src/systemConfig.d' '-MT' 'src/systemConfig.d' '-o'
'src/systemConfig.o' '-mtls-dialect=gnu'
/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
/lib/libpthread.so.0: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
make: *** [R0005] Error 1
>
> Thanks,
> Laurentiu
>> However, crtbeign.o is at the path:
>>
>> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ pwd
>> /home/jack/Projects/R0005-SDK-210912/sysroots/armv7a-vfp-neon-poky-linux-gnueabi
>> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ find . -name
>> crtbegin.o
>> ./usr/lib/arm-poky-linux-gnueabi/4.7.2/crtbegin.o
>> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ ls usr/lib
>> lib/ libexec/
>> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ ls usr/libexec/
>> pt_chown
>> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$
>>
>>
>> Does anyone have an idea what is the issue here? Why can't it find the
>> object file?
>>
--
Jack Mitchell (jack@embed.me.uk)
Embedded Systems Engineer
http://www.embed.me.uk
--
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: ld problems with relocated toolchain
2012-09-21 15:17 ` Jack Mitchell
@ 2012-09-24 2:17 ` Khem Raj
2012-09-24 8:37 ` Jack Mitchell
0 siblings, 1 reply; 15+ messages in thread
From: Khem Raj @ 2012-09-24 2:17 UTC (permalink / raw)
To: ml; +Cc: Patches and discussions about the oe-core layer
On Fri, Sep 21, 2012 at 8:17 AM, Jack Mitchell <ml@communistcode.co.uk> wrote:
> On 21/09/12 15:52, Laurentiu Palcu wrote:
>>
>>
>> On 09/21/2012 05:04 PM, Jack Mitchell wrote:
>>>
>>> I am currently having issues building my application with the latest
>>> toolchain.
>>>
>>> I have used the new capabilities of it being relocatable to place it
>>> somewhere sensible and I think this may be what is breaking it. My old
>>> toolchain in /opt still works perfectly.
>>>
>>> The error I receive is:
>>>
>>>
>>> /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
>>> collect2: error: ld returned 1 exit status
>>> make: *** [R0005] Error 1
>>
>> Did this error appear after the latest SDK fixes that were merged today?
>> Can you activate compiler verbose mode so we can see the arguments
>> passed to the linker? Does it work if you install in the default
>> location? Or better, can you tell the exact steps you followed to get
>> this issue?
>
>
> Exact steps:
>
> bitbake meta-toolchain
> run toolchain setup script
> tell application to use new toolchain and sysroot
> compile
>
> This was appearing before the patches that were merged today.
>
> Works fine when installed in default location.
>
> Some more verbose output:
>
> /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/as
> -v -I
> /home/jack/Projects/R0005-SDK-210912/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/include
> -mcpu=cortex-a8 -mfloat-abi=softfp -mfpu=neon -meabi=5 -o src/systemConfig.o
> /tmp/ccr24jiu.s
> GNU assembler version 2.22 (arm-poky-linux-gnueabi) using BFD version (GNU
> Binutils) 2.22
> COMPILER_PATH=/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/:/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/
> LIBRARY_PATH=/home/jack/Projects/R0005-SDK-210912/sysroots/x86_64-pokysdk-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi/../../lib/armv7a-vfp-neon-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/:/home/jack/Projects/R0005-SDK-210912/sysroots/x86_64-pokysdk-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi/../../lib/armv7a-vfp-neon-poky-linux-gnueabi/gcc/
> COLLECT_GCC_OPTIONS='-I'
> '/home/jack/Projects/R0005-SDK-210912/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/include'
> '-O0' '-mfpu=neon' '-mfloat-abi=softfp' '-mcpu=cortex-a8' '-g3' '-Wall'
> '-Wextra' '-c' '-fmessage-length=0' '-v' '-MMD' '-MP' '-MF'
> 'src/systemConfig.d' '-MT' 'src/systemConfig.d' '-o' 'src/systemConfig.o'
> '-mtls-dialect=gnu'
> /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
> /lib/libpthread.so.0: file not recognized: File format not recognized
What does linker command looks like, its not in the above log you posted.
>
> collect2: error: ld returned 1 exit status
> make: *** [R0005] Error 1
>
>>
>> Thanks,
>> Laurentiu
>>>
>>> However, crtbeign.o is at the path:
>>>
>>> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ pwd
>>>
>>> /home/jack/Projects/R0005-SDK-210912/sysroots/armv7a-vfp-neon-poky-linux-gnueabi
>>> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ find . -name
>>> crtbegin.o
>>> ./usr/lib/arm-poky-linux-gnueabi/4.7.2/crtbegin.o
>>> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ ls usr/lib
>>> lib/ libexec/
>>> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$ ls usr/libexec/
>>> pt_chown
>>> [jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$
>>>
>>>
>>> Does anyone have an idea what is the issue here? Why can't it find the
>>> object file?
>>>
>
> --
>
> Jack Mitchell (jack@embed.me.uk)
> Embedded Systems Engineer
> http://www.embed.me.uk
>
> --
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: ld problems with relocated toolchain
2012-09-24 2:17 ` Khem Raj
@ 2012-09-24 8:37 ` Jack Mitchell
2012-09-24 8:44 ` Laurentiu Palcu
0 siblings, 1 reply; 15+ messages in thread
From: Jack Mitchell @ 2012-09-24 8:37 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
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
/lib/libpthread.so.0: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
make: *** [R0005] Error 1
Regards,
--
Jack Mitchell (jack@embed.me.uk)
Embedded Systems Engineer
http://www.embed.me.uk
--
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: ld problems with relocated toolchain
2012-09-24 8:37 ` Jack Mitchell
@ 2012-09-24 8:44 ` Laurentiu Palcu
2012-09-24 8:54 ` Jack Mitchell
0 siblings, 1 reply; 15+ messages in thread
From: Laurentiu Palcu @ 2012-09-24 8:44 UTC (permalink / raw)
To: openembedded-core
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.
Thanks,
Laurentiu
>
> collect2: error: ld returned 1 exit status
>
> make: *** [R0005] Error 1
>
> Regards,
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: ld problems with relocated toolchain
2012-09-24 8:44 ` Laurentiu Palcu
@ 2012-09-24 8:54 ` Jack Mitchell
2012-09-24 15:28 ` Khem Raj
0 siblings, 1 reply; 15+ messages in thread
From: Jack Mitchell @ 2012-09-24 8:54 UTC (permalink / raw)
To: openembedded-core
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
--
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: ld problems with relocated toolchain
2012-09-24 8:54 ` Jack Mitchell
@ 2012-09-24 15:28 ` Khem Raj
2012-09-25 8:29 ` Jack Mitchell
0 siblings, 1 reply; 15+ messages in thread
From: Khem Raj @ 2012-09-24 15:28 UTC (permalink / raw)
To: ml@communistcode.co.uk; +Cc: openembedded-core@lists.openembedded.org
[-- Attachment #1: Type: text/plain, Size: 4060 bytes --]
On Monday, September 24, 2012, Jack Mitchell <ml@communistcode.co.uk> wrote:
> 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?
>
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't valid after relocation
Btw I needed the real LD command which you will get with -v
> 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
>
> --
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
[-- Attachment #2: Type: text/html, Size: 5381 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: ld problems with relocated toolchain
2012-09-24 15:28 ` Khem Raj
@ 2012-09-25 8:29 ` Jack Mitchell
2012-09-25 13:41 ` Khem Raj
0 siblings, 1 reply; 15+ messages in thread
From: Jack Mitchell @ 2012-09-25 8:29 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On 24/09/12 16:28, Khem Raj wrote:
>
>
> On Monday, September 24, 2012, Jack Mitchell <ml@communistcode.co.uk
> <mailto:ml@communistcode.co.uk>> wrote:
> > 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?
> >
>
> 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't valid after relocation
>
> Btw I needed the real LD command which you will get with -v
> > I have attached the output from the test cases you propsed and
> attached them to the bug report.
Ok, I passed the compiler and the linker the sysroot flag and it
compiled successfully. Thank you everyone for all your help and I'll
brush up on my compiling/linking knowledge!
> >
> > 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
> <mailto:Openembedded-core@lists.openembedded.org>
> >> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
> >
> >
> > --
> >
> > Jack Mitchell (jack@embed.me.uk <mailto:jack@embed.me.uk>)
> > Embedded Systems Engineer
> > http://www.embed.me.uk
> >
> > --
> >
> >
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core@lists.openembedded.org
> <mailto: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
--
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: ld problems with relocated toolchain
2012-09-25 8:29 ` Jack Mitchell
@ 2012-09-25 13:41 ` Khem Raj
2012-09-25 13:58 ` Jack Mitchell
0 siblings, 1 reply; 15+ messages in thread
From: Khem Raj @ 2012-09-25 13:41 UTC (permalink / raw)
To: ml; +Cc: Patches and discussions about the oe-core layer
On Tue, Sep 25, 2012 at 1:29 AM, Jack Mitchell <ml@communistcode.co.uk> wrote:
> Ok, I passed the compiler and the linker the sysroot flag and it compiled
> successfully. Thank you everyone for all your help and I'll brush up on my
> compiling/linking knowledge!
Hmm if you installed toolchain in different prefix then it was built
on and then experience
<cross>-gcc hello.c not building thats a problem we have to fix in
relocatable SDK install or wherever
wasnt that the case ?
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: ld problems with relocated toolchain
2012-09-25 13:41 ` Khem Raj
@ 2012-09-25 13:58 ` Jack Mitchell
0 siblings, 0 replies; 15+ messages in thread
From: Jack Mitchell @ 2012-09-25 13:58 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On 25/09/12 14:41, Khem Raj wrote:
> On Tue, Sep 25, 2012 at 1:29 AM, Jack Mitchell <ml@communistcode.co.uk> wrote:
>> Ok, I passed the compiler and the linker the sysroot flag and it compiled
>> successfully. Thank you everyone for all your help and I'll brush up on my
>> compiling/linking knowledge!
> Hmm if you installed toolchain in different prefix then it was built
> on and then experience
>
> <cross>-gcc hello.c not building thats a problem we have to fix in
> relocatable SDK install or wherever
> wasnt that the case ?
I think the issue was that I am using Eclipse to manage my build and it
was over writing the GCC parameters.
I believe it was calling arm-*-*-* directly and not using ${CC} if that
makes sense? Therefore it didn't know where to find the libraries and
includes. Passing the --sysroot option to the compiler and the linker
now lets it build.
Eclipse is still having issues looking in the right directory for
includes and I don't know what is causing that - but it compiles and
links fine now.
If I can provide more information then I would be happy to. I think I
agree and I'm still not fully convinced that it's completely fixed.
Cheers,
--
Jack Mitchell (jack@embed.me.uk)
Embedded Systems Engineer
http://www.embed.me.uk
--
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2012-09-25 14:09 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox