Alternative SDK installation directory working?
Hello,
I wonder if the installation of the SDK into an alternative directory is actually working?
Trying the latest snapshot
http://autobuilder.yoctoproject.org/pub/nightly/CURRENT/toolchain/x86_64/poky-eglibc-x86_64-arm-toolchain-gmae-1.3+snapshot-20121119.sh
I get this:
Installation:
-> sh ./poky-eglibc-x86_64-arm-toolchain-gmae-1.3+snapshot-20121119.sh Enter target directory for SDK (default: /opt/poky/1.3+snapshot): /opt/poky-test You are about to install the SDK to "/opt/poky-test". Proceed[Y/n]?Y Extracting SDK...done
Setting it up...done
SDK has been successfully set up and is ready to be used.
Test:
-> cat /tmp/x.c
int main (void)
{
return 0;
}-> source /opt/poky-test/environment-setup-armv5te-poky-linux-gnueabi
-> ${TARGET_PREFIX}gcc -v -o /tmp/x /tmp/x.c
Using built-in specs.
COLLECT_GCC=arm-poky-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/lto-wrapper
Target: arm-poky-linux-gnueabi
Configured with: /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-arm/build/build/tmp/work-shared/gcc-4.7.2-r13/gcc-4.7.2/configure --build=x86_64-linux --host=x86_64-pokysdk-linux --target=arm-poky-linux-gnueabi --prefix=/opt/poky/1.3+snapshot/sysroots/x86_64-pokysdk-linux/usr --exec_prefix=/opt/poky/1.3+snapshot/sysroots/x86_64-pokysdk-linux/usr --bindir=/opt/poky/1.3+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi --sbindir=/opt/poky/1.3+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi --libexecdir=/opt/poky/1.3+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/armv5te-poky-linux-gnueabi --datadir=/opt/poky/1.3+snapshot/sysroots/x86_64-pokysdk-linux/usr/share --sysconfdir=/opt/poky/1.3+snapshot/sysroots/x86_64-pokysdk-linux/etc --sharedstatedir=/opt/poky/1.3+snapshot/sysroots/x86_64-pokysdk-linux/com --localstatedir=/opt/poky/1.3+snapshot/sysroots/x86_64-pokysdk-linux/var --libdir=/opt/poky/1.3+snapshot/sysroots/x86_64-p
okysdk-linux/usr/lib/armv5te-poky-linux-gnueabi --includedir=/opt/poky/1.3+snapshot/sysroots/x86_64-pokysdk-linux/usr/include --oldincludedir=/opt/poky/1.3+snapshot/sysroots/x86_64-pokysdk-linux/usr/include --infodir=/opt/poky/1.3+snapshot/sysroots/x86_64-pokysdk-linux/usr/share/info --mandir=/opt/poky/1.3+snapshot/sysroots/x86_64-pokysdk-linux/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-arm/build/build/tmp/sysroots/x86_64-nativesdk-pokysdk-linux --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --disable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=arm-poky-linux-gnueabi- --without-local-prefix --enable-target-optspace --enable-lto --enable-libssp --disable-bootstrap --disable-libgomp --disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu --with-ppl=no --with-cloog=no --enable-check ing=release --enable-cheaders=c_global --with-float=soft --with-gxx-include-dir=/opt/poky/1.3+snapshot/sysroots/armv5te-poky-linux-gnueabi/usr/include/c++ --with-build-time-tools=/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-arm/build/build/tmp/sysroots/x86_64-linux/usr/arm-poky-linux-gnueabi/bin --with-sysroot=/opt/poky/1.3+snapshot/sysroots/armv5te-poky-linux-gnueabi --with-build-sysroot=/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-arm/build/build/tmp/sysroots/qemuarm --disable-libunwind-exceptions --disable-libssp --disable-libgomp --disable-libmudflap --with-mpfr=/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-arm/build/build/tmp/sysroots/x86_64-nativesdk-pokysdk-linux --with-mpc=/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-arm/build/build/tmp/sysroots/x86_64-nativesdk-pokysdk-linux --enable-nls
Thread model: posix
gcc version 4.7.2 (GCC)
COLLECT_GCC_OPTIONS='-v' '-o' '/tmp/x' '-mfloat-abi=soft' '-mtls-dialect=gnu'
/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/cc1 -quiet -v -iprefix /opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../lib/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ /tmp/x.c -quiet -dumpbase x.c -mfloat-abi=soft -mtls-dialect=gnu -auxbase x -version -o /tmp/ccPYybgy.s
GNU C (GCC) version 4.7.2 (arm-poky-linux-gnueabi)
compiled by GNU C version 4.7.2, GMP version 5.0.5, MPFR version 3.1.0, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../lib/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/../../../../../arm-poky-linux-gnueabi/include" ignoring duplicate directory "/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../lib/armv5te-poky-linux-gnueabi/gcc/../../../lib/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/include" ignoring nonexistent directory "/opt/poky/1.3+snapshot/sysroots/armv5te-poky-linux-gnueabi/usr/local/include"
ignoring duplicate directory "/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../lib/armv5te-poky-linux-gnueabi/gcc/../../../lib/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/include-fixed" ignoring nonexistent directory "/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../lib/armv5te-poky-linux-gnueabi/gcc/../../../lib/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/../../../../../arm-poky-linux-gnueabi/include" ignoring nonexistent directory "/opt/poky/1.3+snapshot/sysroots/armv5te-poky-linux-gnueabi/usr/include"
#include "..." search starts here:
#include <...> search starts here:
/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../lib/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/include /opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../lib/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/include-fixed
End of search list.
GNU C (GCC) version 4.7.2 (arm-poky-linux-gnueabi)
compiled by GNU C version 4.7.2, GMP version 5.0.5, MPFR version 3.1.0, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 4a741725e1b29efa4cbc59640ac72296
COLLECT_GCC_OPTIONS='-v' '-o' '/tmp/x' '-mfloat-abi=soft' '-mtls-dialect=gnu'
/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/as -v -mfloat-abi=soft -meabi=5 -o /tmp/ccQ6wgHT.o /tmp/ccPYybgy.s
GNU assembler version 2.22 (arm-poky-linux-gnueabi) using BFD version (GNU Binutils) 2.22
COMPILER_PATH=/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/:/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../libexec/armv5te-poky-linux-gnueabi/gcc/
LIBRARY_PATH=/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../lib/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/:/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../lib/armv5te-poky-linux-gnueabi/gcc/
COLLECT_GCC_OPTIONS='-v' '-o' '/tmp/x' '-mfloat-abi=soft' '-mtls-dialect=gnu'
/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/collect2 --sysroot=/opt/poky/1.3+snapshot/sysroots/armv5te-poky-linux-gnueabi --eh-frame-hdr --hash-style=gnu -dynamic-linker /lib/ld-linux.so.3 -X -m armelf_linux_eabi -o /tmp/x crt1.o crti.o crtbegin.o -L/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../lib/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2 -L/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../lib/armv5te-poky-linux-gnueabi/gcc /tmp/ccQ6wgHT.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed crtend.o crtn.o/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld: cannot find crt1.o: No such file or directory/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld: cannot find crti.o: No such file or directory/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld: cannot find crtbegin.o: No such file or directory/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld: cannot find -lgcc/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld: cannot find -lgcc_s/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld: cannot find -lc/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld: cannot find -lgcc/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld: cannot find -lgcc_s/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld: cannot find crtend.o: No such file or directory/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
What am I missing here?
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] Doubt isn't the opposite of faith; it is an element of faith. - Paul Tillich, German theologian and historian
Quoted 21 lines · Wolfgang Denk
Hello,
I wonder if the installation of the SDK into an alternative directory is actually working?
Trying the latest snapshot
http://autobuilder.yoctoproject.org/pub/nightly/CURRENT/toolchain/x86_64/poky-eglibc-x86_64-arm-toolchain-gmae-1.3+snapshot-20121119.sh
I get this:Installation:
-> sh ./poky-eglibc-x86_64-arm-toolchain-gmae-1.3+snapshot-20121119.sh Enter target directory for SDK (default:
/opt/poky/1.3+snapshot):/opt/poky-testYou are about to install the SDK to "/opt/poky-test". Proceed[Y/n]?Y Extracting SDK...done
Setting it up...done
SDK has been successfully set up and is ready to be used.Test:
Quoted 7 lines
-> cat
/tmp/x.c
int main (void){ return 0; }-> source
/opt/poky-test/environment-setup-armv5te-poky-linux-gnueabi-> ${TARGET_PREFIX}gcc -v -o/tmp/x/tmp/x.c
I think you need a --sysroot in there. e.g. --sysroot=/opt/poky-test/sysroots/arch-blah-blah-blah
Quoted 6 lines
What am I missing here?
Best regards,
Wolfgang Denk
Regards,
Signature · 5 lines
Jack Mitchell ([email protected]) Embedded Systems Engineer http://www.embed.me.uk --
Send the reply to the list too. My answer below.
Quoted 22 lines · Jack Mitchell
Quoted 21 lines · Wolfgang Denk
Hello,
I wonder if the installation of the SDK into an alternative directory is actually working?
Trying the latest snapshot
http://autobuilder.yoctoproject.org/pub/nightly/CURRENT/toolchain/x86_64/poky-eglibc-x86_64-arm-toolchain-gmae-1.3+snapshot-20121119.sh
I get this:Installation:
-> sh ./poky-eglibc-x86_64-arm-toolchain-gmae-1.3+snapshot-20121119.sh Enter target directory for SDK (default:
/opt/poky/1.3+snapshot):/opt/poky-testYou are about to install the SDK to "/opt/poky-test". Proceed[Y/n]?Y Extracting SDK...done
Setting it up...done
SDK has been successfully set up and is ready to be used.Test:
Quoted 7 lines
Quoted 7 lines
-> cat
/tmp/x.c
int main (void){ return 0; }-> source
/opt/poky-test/environment-setup-armv5te-poky-linux-gnueabi-> ${TARGET_PREFIX}gcc -v -o/tmp/x/tmp/x.c
Just do: $CC -o /tmp/x /tmp/x.c
It should work.
echo $CC
arm-poky-linux-gnueabi-gcc -march=armv5te -marm -mthumb-interwork -mtune=arm926ej-s --sysroot=/tests/sdk/sysroots/armv5te-poky-linux-gnueabi
Thanks,
Laurentiu
Quoted 12 lines
I think you need a --sysroot in there. e.g. --sysroot=/opt/poky-test/sysroots/arch-blah-blah-blah
Quoted 6 lines
What am I missing here?
Best regards,
Wolfgang Denk
Regards,
Dear Laurentiu,
Quoted 11 lines · In message <[email protected]> you wrote:
Quoted 3 lines
Quoted 3 lines
-> source
/opt/poky-test/environment-setup-armv5te-poky-linux-gnueabi-> ${TARGET_PREFIX}gcc -v -o/tmp/x/tmp/x.cJust do: $CC -o
/tmp/x/tmp/x.cIt should work.
echo $CC
arm-poky-linux-gnueabi-gcc -march=armv5te -marm -mthumb-interwork -mtune=arm926ej-s --sysroot=/tests/sdk/sysroots/armv5te-poky-linux-gnueabi
Argh... Isn't it somewhat ... unconventional (to avoid stonger words) to encode compiler options in a variable which is supposed to define the "Program for compiling C programs" ?
Should such options not go to one of the *FLAGS variables instead?
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] Bankers do it with interest (penalty for early withdrawal).
Quoted 11 lines · Wolfgang Denk
Dear Laurentiu,
Quoted 8 lines · In message <[email protected]> you wrote:
Quoted 3 lines
Quoted 3 lines
-> source
/opt/poky-test/environment-setup-armv5te-poky-linux-gnueabi-> ${TARGET_PREFIX}gcc -v -o/tmp/x/tmp/x.cJust do: $CC -o
/tmp/x/tmp/x.cIt should work.
Quoted 7 lines
Quoted 3 lines
echo $CC
arm-poky-linux-gnueabi-gcc -march=armv5te -marm -mthumb-interwork -mtune=arm926ej-s --sysroot=/tests/sdk/sysroots/armv5te-poky-linux-gnueabiArgh... Isn't it somewhat ... unconventional (to avoid stonger words) to encode compiler options in a variable which is supposed to define the "Program for compiling C programs" ?
It is unconventional, I admit. Unfortunately, it's not clear to me why this was done in the first place. I've just read the commit message for these changes and it didn't make it clearer. Maybe Mark, who made these changes, can give us a better answer.
Quoted 2 lines
Should such options not go to one of the *FLAGS variables instead?
I personally don't see any reason why they shouldn't.
Thanks,
Laurentiu
Quoted 5 lines
Best regards,
Wolfgang Denk
Dear Jack Mitchell,
Quoted 5 lines · In message <[email protected]> you wrote:
Quoted 3 lines
-> source
/opt/poky-test/environment-setup-armv5te-poky-linux-gnueabi-> ${TARGET_PREFIX}gcc -v -o/tmp/x/tmp/x.cI think you need a --sysroot in there. e.g. --sysroot=/opt/poky-test/sysroots/arch-blah-blah-blah
I see. Thanks for pointing out.
However, this still leaves a number of somewhat suspicious messages:
-> $CC -v -o /tmp/x /tmp/x.c
...
ignoring nonexistent directory "/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../lib/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/../../../../../arm-poky-linux-gnueabi/include" ignoring duplicate directory "/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../lib/armv5te-poky-linux-gnueabi/gcc/../../../lib/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/include" ignoring nonexistent directory "/opt/poky-test/sysroots/armv5te-poky-linux-gnueabi/usr/local/include"
ignoring duplicate directory "/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../lib/armv5te-poky-linux-gnueabi/gcc/../../../lib/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/include-fixed" ignoring nonexistent directory "/opt/poky-test/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/../../lib/armv5te-poky-linux-gnueabi/gcc/../../../lib/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/../../../../../arm-poky-linux-gnueabi/include" #include "..." search starts here:
...
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] This cultural mystique surrounding the biological function -- you realize humans are overly preoccupied with the subject. -- Kelinda the Kelvan, "By Any Other Name", stardate 4658.9
Hi Wolfgang,
Quoted 3 lines · Wolfgang Denk
I wonder if the installation of the SDK into an alternative directory is actually working?
I also didn't manage to use SDK relocation with Qt Embedded SDK as reported here :
https://bugzilla.yoctoproject.org/show_bug.cgi?id=3409
Eric