ld problems with relocated toolchain
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?
Signature · 5 lines
Jack Mitchell ([email protected]) Embedded Systems Engineer http://www.embed.me.uk --
Quoted 28 lines · Jack Mitchell
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 1However, 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]$ lsusr/libexec/pt_chown
[jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$
Quoted 2 lines
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
Quoted 29 lines · Richard Purdie
Quoted 28 lines · Jack Mitchell
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 1However, 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]$ lsusr/libexec/pt_chown
[jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$
Quoted 9 lines
Quoted 2 lines
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,
Signature · 5 lines
Jack Mitchell ([email protected]) Embedded Systems Engineer http://www.embed.me.uk --
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: [email protected] [mailto:[email protected]] 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
Quoted 29 lines · Richard Purdie
Quoted 28 lines · Jack Mitchell
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 1However, 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]$ lsusr/libexec/pt_chown
[jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$
Quoted 9 lines
Quoted 2 lines
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 ([email protected])
Embedded Systems Engineer
http://www.embed.me.uk
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Quoted 62 lines · Jessica
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: [email protected] [mailto:[email protected]] 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 toolchainQuoted 29 lines · Richard Purdie
Quoted 28 lines · Jack Mitchell
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 1However, 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]$ lsusr/libexec/pt_chown
[jack@archHP armv7a-vfp-neon-poky-linux-gnueabi]$Quoted 9 lines
Quoted 2 lines
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 ([email protected])
Embedded Systems Engineer
http://www.embed.me.uk
Quoted 7 lines
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
https://bugzilla.yoctoproject.org/show_bug.cgi?id=3156
Thanks!
Signature · 5 lines
Jack Mitchell ([email protected]) Embedded Systems Engineer http://www.embed.me.uk --
Quoted 7 lines · Jack Mitchell
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.
Quoted 6 lines
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
Quoted 18 lines
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]$ lsusr/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?
Quoted 15 lines · Laurentiu Palcu
Quoted 7 lines · Jack Mitchell
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.
Quoted 6 lines
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
Quoted 5 lines
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
Quoted 20 lines
Thanks,
LaurentiuQuoted 17 lines
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]$ lsusr/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?
Signature · 5 lines
Jack Mitchell ([email protected]) Embedded Systems Engineer http://www.embed.me.uk --
Quoted 60 lines · Jack Mitchell
Quoted 19 lines · Laurentiu Palcu
Quoted 8 lines · Jack Mitchell
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.
Quoted 7 lines
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 1Quoted 5 lines
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
compileThis 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 -osrc/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
Quoted 3 lines
/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.
Quoted 40 lines
collect2: error: ld returned 1 exit status
make: *** [R0005] Error 1Quoted 22 lines
Thanks,
LaurentiuQuoted 19 lines
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]$ lsusr/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 ([email protected])
Embedded Systems Engineer
http://www.embed.me.uk--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
On 24/09/12 03:17, Khem Raj wrote:
[snip]
Quoted 5 lines
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,
Signature · 5 lines
Jack Mitchell ([email protected]) Embedded Systems Engineer http://www.embed.me.uk --
Quoted 39 lines · Jack Mitchell
On 24/09/12 03:17, Khem Raj wrote:
[snip]
Quoted 5 lines
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 Linkerarm-poky-linux-gnueabi-gcc
(quoted diff) +0
-2-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
Quoted 6 lines
/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.
Quoted 1 line
/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
Quoted 7 lines
collect2: error: ld returned 1 exit status
make: *** [R0005] Error 1
Regards,
Quoted 48 lines · Laurentiu Palcu
Quoted 37 lines · Jack Mitchell
On 24/09/12 03:17, Khem Raj wrote:
[snip]
Quoted 4 lines
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 Linkerarm-poky-linux-gnueabi-gcc
(quoted diff) +0
-2-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 -lpngQuoted 6 lines
/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 directoryCan 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.
Quoted 3 lines
Quoted 1 line
/lib/libpthread.so.0: file not recognized: File format not recognizedThis 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.
Quoted 13 lines
Thanks,
LaurentiuQuoted 6 lines
collect2: error: ld returned 1 exit status
make: *** [R0005] Error 1
Regards,
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Signature · 5 lines
Jack Mitchell ([email protected]) Embedded Systems Engineer http://www.embed.me.uk --
Quoted 10 lines · Jack Mitchell
Quoted 9 lines · Laurentiu Palcu
Quoted 7 lines · Jack Mitchell
On 24/09/12 03:17, Khem Raj wrote:
[snip]
Quoted 2 lines
What does linker command looks like, its not in the above log you
posted.
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 2 lines
Hi Khem,
Is this enough information?
Building target: R0005
Invoking: GCC C Linkerarm-poky-linux-gnueabi-gcc
-L/home/jack/Projects/R0005-SDK-210912/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/lib
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
-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
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
./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:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
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:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
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:
Quoted 11 lines
Quoted 9 lines
Quoted 1 line
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.
Quoted 1 line
/lib/libpthread.so.0: file not recognized: File format not recognizedThis 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?
Quoted 1 line
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
Quoted 1 line
I have attached the output from the test cases you propsed and attached
them to the bug report.
Quoted 33 lines
I also just tried passing the --sysroot= argument to no avail.
Quoted 6 lines
Thanks,
LaurentiuQuoted 3 lines
collect2: error: ld returned 1 exit status
Quoted 8 lines
Quoted 4 lines
make: *** [R0005] Error 1
Regards,
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core--
Jack Mitchell ([email protected])
Embedded Systems Engineer
http://www.embed.me.uk--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Quoted 68 lines · Khem Raj
Quoted 10 lines · On Monday, September 24, 2012, Jack Mitchell <[email protected]…
Quoted 9 lines · Laurentiu Palcu
Quoted 7 lines · Jack Mitchell
On 24/09/12 03:17, Khem Raj wrote:
[snip]
Quoted 2 lines
What does linker command looks like, its not in the above log you
posted.
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 2 lines
Hi Khem,
Is this enough information?
Building target: R0005
Invoking: GCC C Linkerarm-poky-linux-gnueabi-gcc
-L/home/jack/Projects/R0005-SDK-210912/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/lib
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
-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.oQuoted 4 lines
Quoted 4 lines
Quoted 4 lines
./src/hardwareProtocols/hardwareProtocol_B092SPIImage.o./src/hardwareProtocols/hardwareProtocol_axonSPI.o./src/hardwareInterfaces/interface_gpio_mmap.o./src/hardwareInterfaces/interface_gpio_sysfs.oQuoted 8 lines
Quoted 8 lines
Quoted 8 lines
./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.oQuoted 5 lines
Quoted 5 lines
Quoted 5 lines
./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:Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
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:Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
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:Quoted 8 lines
Quoted 8 lines
Quoted 1 line
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.
Quoted 1 line
/lib/libpthread.so.0: file not recognized: File format not recognizedThis is kind of weird... It looks like it tries to link against the
host
Quoted 3 lines
Quoted 1 line
libpthread library.
I agree, I also can't find libpthread.so.0 in my sysroot either,
Quoted 8 lines
only libpthread.so, so maybe it is trying to fallback to host libs?
Quoted 1 line
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
Quoted 1 line
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!
Quoted 35 lines
Quoted 16 lines
I also just tried passing the --sysroot= argument to no avail.
Quoted 13 lines
Thanks,
LaurentiuQuoted 7 lines
collect2: error: ld returned 1 exit status
make: *** [R0005] Error 1
Regards,
_______________________________________________
Openembedded-core mailing list
[email protected]<mailto:[email protected]>
Quoted 9 lines
--
Jack Mitchell ([email protected] <mailto:[email protected]>) Embedded Systems Engineer
http://www.embed.me.ukQuoted 6 lines
--
_______________________________________________
Openembedded-core mailing list
[email protected]<mailto:[email protected]>
Signature · 5 lines
Jack Mitchell ([email protected]) Embedded Systems Engineer http://www.embed.me.uk --
Quoted 3 lines · Jack Mitchell
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 ?
Quoted 10 lines · Khem Raj
Quoted 3 lines · Jack Mitchell
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.cnot 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,
Signature · 5 lines
Jack Mitchell ([email protected]) Embedded Systems Engineer http://www.embed.me.uk --