Dear Sir,
Thanks for you page. it is really very helpful to us. We are facing a problem during compiling GCC for our ARMv7-a Cortex-a9. We are using following option:
1. ../gcc-linaro*/configure --disable-bootstrap --enable-languages=c,c++ --with-mode=thumb --with-arch=armv7-a --with-tune=cortex-a9 --with-float=hard --with-fpu=vpfv3-d16 --prefix=$home/gcc/gcc-linaro
2. make -j`getconf _NPROCESSORS_ONLN`
after 2 step we are getting following error:
checking whether putc_unlocked is declared... yes checking whether getrlimit is declared... yes checking whether setrlimit is declared... yes checking whether getrusage is declared... yes checking whether ldgetname is declared... no checking whether times is declared... yes checking whether sigaltstack is declared... yes checking whether madvise is declared... yes checking for struct tms... yes checking for clock_t... yes checking for F_SETLKW... yes checking if mkdir takes one argument... no Unknown CPU given in --with-arch=armv7-a. make[1]: *** [configure-gcc] Error 1 make[1]: Leaving directory `/home/anwej/src/build' make: *** [all] Error 2
Please suggest the solution. where is the problem and what will be our next steps.
Thanks in advance.
-best regards Anwej Alam Ph: +91.995.833.3456
Hi Anwej,
what kind of machine are you building on? my guess is that you try to do a native build whereas it is a cross one that you need.
rgds, Yvan
On 9 April 2014 16:32, Anwej Alam anwej.alam@upheave.in wrote:
Dear Sir,
Thanks for you page. it is really very helpful to us. We are facing a problem during compiling GCC for our ARMv7-a Cortex-a9. We are using following option:
../gcc-linaro*/configure --disable-bootstrap --enable-languages=c,c++ --with-mode=thumb --with-arch=armv7-a --with-tune=cortex-a9 --with-float=hard --with-fpu=vpfv3-d16 --prefix=$home/gcc/gcc-linaro
make -j`getconf _NPROCESSORS_ONLN`
after 2 step we are getting following error:
checking whether putc_unlocked is declared... yes checking whether getrlimit is declared... yes checking whether setrlimit is declared... yes checking whether getrusage is declared... yes checking whether ldgetname is declared... no checking whether times is declared... yes checking whether sigaltstack is declared... yes checking whether madvise is declared... yes checking for struct tms... yes checking for clock_t... yes checking for F_SETLKW... yes checking if mkdir takes one argument... no Unknown CPU given in --with-arch=armv7-a. make[1]: *** [configure-gcc] Error 1 make[1]: Leaving directory `/home/anwej/src/build' make: *** [all] Error 2
Please suggest the solution. where is the problem and what will be our next steps.
Thanks in advance.
-best regards Anwej Alam Ph: +91.995.833.3456
linaro-toolchain mailing list linaro-toolchain@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-toolchain
Dear Yvan,
Thanks for your reply. We are trying to build native gcc compiler for CPU: nViDia Tegra 2 which has ARMv7-a, Cortex-A9 core. We are using host machine as i686 and OS: ubuntu 12.04.
-br, Anwej 9958333456
On Wed, Apr 9, 2014 at 9:13 PM, Yvan Roux yvan.roux@linaro.org wrote:
Hi Anwej,
what kind of machine are you building on? my guess is that you try to do a native build whereas it is a cross one that you need.
rgds, Yvan
On 9 April 2014 16:32, Anwej Alam anwej.alam@upheave.in wrote:
Dear Sir,
Thanks for you page. it is really very helpful to us. We are facing a problem during compiling GCC for our ARMv7-a Cortex-a9. We are using following option:
../gcc-linaro*/configure --disable-bootstrap --enable-languages=c,c++ --with-mode=thumb --with-arch=armv7-a --with-tune=cortex-a9 --with-float=hard --with-fpu=vpfv3-d16 --prefix=$home/gcc/gcc-linaro
make -j`getconf _NPROCESSORS_ONLN`
after 2 step we are getting following error:
checking whether putc_unlocked is declared... yes checking whether getrlimit is declared... yes checking whether setrlimit is declared... yes checking whether getrusage is declared... yes checking whether ldgetname is declared... no checking whether times is declared... yes checking whether sigaltstack is declared... yes checking whether madvise is declared... yes checking for struct tms... yes checking for clock_t... yes checking for F_SETLKW... yes checking if mkdir takes one argument... no Unknown CPU given in --with-arch=armv7-a. make[1]: *** [configure-gcc] Error 1 make[1]: Leaving directory `/home/anwej/src/build' make: *** [all] Error 2
Please suggest the solution. where is the problem and what will be our
next
steps.
Thanks in advance.
-best regards Anwej Alam Ph: +91.995.833.3456
linaro-toolchain mailing list linaro-toolchain@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-toolchain
On 10/04/14 16:22, Anwej Alam wrote:
Dear Yvan,
Thanks for your reply. We are trying to build native gcc compiler for CPU: nViDia Tegra 2 which has ARMv7-a, Cortex-A9 core. We are using host machine as i686 and OS: ubuntu 12.04.
Since your host machine is i686, it is a cross compiler. Is there any specific reason why you don’t want to use toolchain binary releases for this? If you want to build a toolchain yourself, you could consider using a tool like crosstool-ng.
Thanks, Kugan
I am referring below link for gcc configuration options.
http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
On Thu, Apr 10, 2014 at 11:52 AM, Anwej Alam anwej.alam@upheave.in wrote:
Dear Yvan,
Thanks for your reply. We are trying to build native gcc compiler for CPU: nViDia Tegra 2 which has ARMv7-a, Cortex-A9 core. We are using host machine as i686 and OS: ubuntu 12.04.
-br, Anwej 9958333456
On Wed, Apr 9, 2014 at 9:13 PM, Yvan Roux yvan.roux@linaro.org wrote:
Hi Anwej,
what kind of machine are you building on? my guess is that you try to do a native build whereas it is a cross one that you need.
rgds, Yvan
On 9 April 2014 16:32, Anwej Alam anwej.alam@upheave.in wrote:
Dear Sir,
Thanks for you page. it is really very helpful to us. We are facing a problem during compiling GCC for our ARMv7-a Cortex-a9. We are using following option:
../gcc-linaro*/configure --disable-bootstrap --enable-languages=c,c++ --with-mode=thumb --with-arch=armv7-a --with-tune=cortex-a9 --with-float=hard --with-fpu=vpfv3-d16 --prefix=$home/gcc/gcc-linaro
make -j`getconf _NPROCESSORS_ONLN`
after 2 step we are getting following error:
checking whether putc_unlocked is declared... yes checking whether getrlimit is declared... yes checking whether setrlimit is declared... yes checking whether getrusage is declared... yes checking whether ldgetname is declared... no checking whether times is declared... yes checking whether sigaltstack is declared... yes checking whether madvise is declared... yes checking for struct tms... yes checking for clock_t... yes checking for F_SETLKW... yes checking if mkdir takes one argument... no Unknown CPU given in --with-arch=armv7-a. make[1]: *** [configure-gcc] Error 1 make[1]: Leaving directory `/home/anwej/src/build' make: *** [all] Error 2
Please suggest the solution. where is the problem and what will be our
next
steps.
Thanks in advance.
-best regards Anwej Alam Ph: +91.995.833.3456
linaro-toolchain mailing list linaro-toolchain@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-toolchain
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
Hi Anwej,
these are the right options for an ARM compiler, but you have to tell gcc that you want to build a compiler on an x86 platform that will be use on an ARM one to produce ARM executable, to do so you have to specify the target triplet of the flags --build, --host and --target, but to build the compiler you will also need to build the binutils, and the libc (and if you build for loinux you need the kernel headers as well). This why kugan suggested to use crosstool-ng (I guess the Linaro wiki page you have seen is about building a native ARM one)
Rgds, Yvan
On 10 April 2014 19:05, Anwej Alam anwej.alam@upheave.in wrote:
I am referring below link for gcc configuration options.
http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
On Thu, Apr 10, 2014 at 11:52 AM, Anwej Alam anwej.alam@upheave.in wrote:
Dear Yvan,
Thanks for your reply. We are trying to build native gcc compiler for CPU: nViDia Tegra 2 which has ARMv7-a, Cortex-A9 core. We are using host machine as i686 and OS: ubuntu 12.04.
-br, Anwej 9958333456
On Wed, Apr 9, 2014 at 9:13 PM, Yvan Roux yvan.roux@linaro.org wrote:
Hi Anwej,
what kind of machine are you building on? my guess is that you try to do a native build whereas it is a cross one that you need.
rgds, Yvan
On 9 April 2014 16:32, Anwej Alam anwej.alam@upheave.in wrote:
Dear Sir,
Thanks for you page. it is really very helpful to us. We are facing a problem during compiling GCC for our ARMv7-a Cortex-a9. We are using following option:
../gcc-linaro*/configure --disable-bootstrap --enable-languages=c,c++ --with-mode=thumb --with-arch=armv7-a --with-tune=cortex-a9 --with-float=hard --with-fpu=vpfv3-d16 --prefix=$home/gcc/gcc-linaro
make -j`getconf _NPROCESSORS_ONLN`
after 2 step we are getting following error:
checking whether putc_unlocked is declared... yes checking whether getrlimit is declared... yes checking whether setrlimit is declared... yes checking whether getrusage is declared... yes checking whether ldgetname is declared... no checking whether times is declared... yes checking whether sigaltstack is declared... yes checking whether madvise is declared... yes checking for struct tms... yes checking for clock_t... yes checking for F_SETLKW... yes checking if mkdir takes one argument... no Unknown CPU given in --with-arch=armv7-a. make[1]: *** [configure-gcc] Error 1 make[1]: Leaving directory `/home/anwej/src/build' make: *** [all] Error 2
Please suggest the solution. where is the problem and what will be our next steps.
Thanks in advance.
-best regards Anwej Alam Ph: +91.995.833.3456
linaro-toolchain mailing list linaro-toolchain@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-toolchain
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
Dear Sir,
Thank you so much for your reply.
I would like to tell you the exact scenario of my end. I have a SBC (nViDia Tegra 2) which have The Angstrom Linux Distro without GCC compiler. Currently i have a host PC (i686 and Ubuntu 12.04) on which i cross compiles the application for nViDia Tegra 2 and then transfer the executable to SBC. but now i want to build and compile application on nViDia Tegra 2 itself. for than I need a native GCC compiler on SBC (nViDia Tegra 2 ).
So, Sir please suggest the method to solve my problem.
Thanks in Advance
-br, Anwej 9968333456
On Thu, Apr 10, 2014 at 10:53 PM, Yvan Roux yvan.roux@linaro.org wrote:
Hi Anwej,
these are the right options for an ARM compiler, but you have to tell gcc that you want to build a compiler on an x86 platform that will be use on an ARM one to produce ARM executable, to do so you have to specify the target triplet of the flags --build, --host and --target, but to build the compiler you will also need to build the binutils, and the libc (and if you build for loinux you need the kernel headers as well). This why kugan suggested to use crosstool-ng (I guess the Linaro wiki page you have seen is about building a native ARM one)
Rgds, Yvan
On 10 April 2014 19:05, Anwej Alam anwej.alam@upheave.in wrote:
I am referring below link for gcc configuration options.
http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
On Thu, Apr 10, 2014 at 11:52 AM, Anwej Alam anwej.alam@upheave.in
wrote:
Dear Yvan,
Thanks for your reply. We are trying to build native gcc compiler for CPU: nViDia Tegra 2 which has ARMv7-a, Cortex-A9 core. We are using host machine as i686 and OS: ubuntu 12.04.
-br, Anwej 9958333456
On Wed, Apr 9, 2014 at 9:13 PM, Yvan Roux yvan.roux@linaro.org wrote:
Hi Anwej,
what kind of machine are you building on? my guess is that you try to do a native build whereas it is a cross one that you need.
rgds, Yvan
On 9 April 2014 16:32, Anwej Alam anwej.alam@upheave.in wrote:
Dear Sir,
Thanks for you page. it is really very helpful to us. We are facing a problem during compiling GCC for our ARMv7-a
Cortex-a9.
We are using following option:
../gcc-linaro*/configure --disable-bootstrap --enable-languages=c,c++ --with-mode=thumb --with-arch=armv7-a --with-tune=cortex-a9 --with-float=hard --with-fpu=vpfv3-d16 --prefix=$home/gcc/gcc-linaro
make -j`getconf _NPROCESSORS_ONLN`
after 2 step we are getting following error:
checking whether putc_unlocked is declared... yes checking whether getrlimit is declared... yes checking whether setrlimit is declared... yes checking whether getrusage is declared... yes checking whether ldgetname is declared... no checking whether times is declared... yes checking whether sigaltstack is declared... yes checking whether madvise is declared... yes checking for struct tms... yes checking for clock_t... yes checking for F_SETLKW... yes checking if mkdir takes one argument... no Unknown CPU given in --with-arch=armv7-a. make[1]: *** [configure-gcc] Error 1 make[1]: Leaving directory `/home/anwej/src/build' make: *** [all] Error 2
Please suggest the solution. where is the problem and what will be
our
next steps.
Thanks in advance.
-best regards Anwej Alam Ph: +91.995.833.3456
linaro-toolchain mailing list linaro-toolchain@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-toolchain
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
I never used Angstrom distro, but googling it shows that it seems possible to install gcc and the binutils on Tegra2 with opkg (to search the package names, try something opkg search 'gcc*' for instance).
On 10 April 2014 19:41, Anwej Alam anwej.alam@upheave.in wrote:
Dear Sir,
Thank you so much for your reply.
I would like to tell you the exact scenario of my end. I have a SBC (nViDia Tegra 2) which have The Angstrom Linux Distro without GCC compiler. Currently i have a host PC (i686 and Ubuntu 12.04) on which i cross compiles the application for nViDia Tegra 2 and then transfer the executable to SBC. but now i want to build and compile application on nViDia Tegra 2 itself. for than I need a native GCC compiler on SBC (nViDia Tegra 2).
So, Sir please suggest the method to solve my problem.
Thanks in Advance
-br, Anwej 9968333456
On Thu, Apr 10, 2014 at 10:53 PM, Yvan Roux yvan.roux@linaro.org wrote:
Hi Anwej,
these are the right options for an ARM compiler, but you have to tell gcc that you want to build a compiler on an x86 platform that will be use on an ARM one to produce ARM executable, to do so you have to specify the target triplet of the flags --build, --host and --target, but to build the compiler you will also need to build the binutils, and the libc (and if you build for loinux you need the kernel headers as well). This why kugan suggested to use crosstool-ng (I guess the Linaro wiki page you have seen is about building a native ARM one)
Rgds, Yvan
On 10 April 2014 19:05, Anwej Alam anwej.alam@upheave.in wrote:
I am referring below link for gcc configuration options.
http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
On Thu, Apr 10, 2014 at 11:52 AM, Anwej Alam anwej.alam@upheave.in wrote:
Dear Yvan,
Thanks for your reply. We are trying to build native gcc compiler for CPU: nViDia Tegra 2 which has ARMv7-a, Cortex-A9 core. We are using host machine as i686 and OS: ubuntu 12.04.
-br, Anwej 9958333456
On Wed, Apr 9, 2014 at 9:13 PM, Yvan Roux yvan.roux@linaro.org wrote:
Hi Anwej,
what kind of machine are you building on? my guess is that you try to do a native build whereas it is a cross one that you need.
rgds, Yvan
On 9 April 2014 16:32, Anwej Alam anwej.alam@upheave.in wrote:
Dear Sir,
Thanks for you page. it is really very helpful to us. We are facing a problem during compiling GCC for our ARMv7-a Cortex-a9. We are using following option:
../gcc-linaro*/configure --disable-bootstrap --enable-languages=c,c++ --with-mode=thumb --with-arch=armv7-a --with-tune=cortex-a9 --with-float=hard --with-fpu=vpfv3-d16 --prefix=$home/gcc/gcc-linaro
make -j`getconf _NPROCESSORS_ONLN`
after 2 step we are getting following error:
checking whether putc_unlocked is declared... yes checking whether getrlimit is declared... yes checking whether setrlimit is declared... yes checking whether getrusage is declared... yes checking whether ldgetname is declared... no checking whether times is declared... yes checking whether sigaltstack is declared... yes checking whether madvise is declared... yes checking for struct tms... yes checking for clock_t... yes checking for F_SETLKW... yes checking if mkdir takes one argument... no Unknown CPU given in --with-arch=armv7-a. make[1]: *** [configure-gcc] Error 1 make[1]: Leaving directory `/home/anwej/src/build' make: *** [all] Error 2
Please suggest the solution. where is the problem and what will be our next steps.
Thanks in advance.
-best regards Anwej Alam Ph: +91.995.833.3456
linaro-toolchain mailing list linaro-toolchain@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-toolchain
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
opkg is not working. thats why i am trying to build from host PC.
On Thu, Apr 10, 2014 at 11:40 PM, Yvan Roux yvan.roux@linaro.org wrote:
I never used Angstrom distro, but googling it shows that it seems possible to install gcc and the binutils on Tegra2 with opkg (to search the package names, try something opkg search 'gcc*' for instance).
On 10 April 2014 19:41, Anwej Alam anwej.alam@upheave.in wrote:
Dear Sir,
Thank you so much for your reply.
I would like to tell you the exact scenario of my end. I have a SBC
(nViDia
Tegra 2) which have The Angstrom Linux Distro without GCC compiler. Currently i have a host PC (i686 and Ubuntu 12.04) on which i cross compiles the application for nViDia Tegra 2 and then transfer the
executable
to SBC. but now i want to build and compile application on nViDia Tegra 2 itself. for than I need a native GCC compiler on SBC (nViDia Tegra 2).
So, Sir please suggest the method to solve my problem.
Thanks in Advance
-br, Anwej 9968333456
On Thu, Apr 10, 2014 at 10:53 PM, Yvan Roux yvan.roux@linaro.org
wrote:
Hi Anwej,
these are the right options for an ARM compiler, but you have to tell gcc that you want to build a compiler on an x86 platform that will be use on an ARM one to produce ARM executable, to do so you have to specify the target triplet of the flags --build, --host and --target, but to build the compiler you will also need to build the binutils, and the libc (and if you build for loinux you need the kernel headers as well). This why kugan suggested to use crosstool-ng (I guess the Linaro wiki page you have seen is about building a native ARM one)
Rgds, Yvan
On 10 April 2014 19:05, Anwej Alam anwej.alam@upheave.in wrote:
I am referring below link for gcc configuration options.
http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
On Thu, Apr 10, 2014 at 11:52 AM, Anwej Alam anwej.alam@upheave.in wrote:
Dear Yvan,
Thanks for your reply. We are trying to build native gcc compiler for CPU: nViDia Tegra 2 which has ARMv7-a, Cortex-A9 core. We are using host machine as i686 and
OS:
ubuntu 12.04.
-br, Anwej 9958333456
On Wed, Apr 9, 2014 at 9:13 PM, Yvan Roux yvan.roux@linaro.org
wrote:
Hi Anwej,
what kind of machine are you building on? my guess is that you try
to
do a native build whereas it is a cross one that you need.
rgds, Yvan
On 9 April 2014 16:32, Anwej Alam anwej.alam@upheave.in wrote: > Dear Sir, > > Thanks for you page. it is really very helpful to us. > We are facing a problem during compiling GCC for our ARMv7-a > Cortex-a9. > We are using following option: > > 1. > ../gcc-linaro*/configure --disable-bootstrap > --enable-languages=c,c++ > --with-mode=thumb --with-arch=armv7-a --with-tune=cortex-a9 > --with-float=hard --with-fpu=vpfv3-d16 > --prefix=$home/gcc/gcc-linaro > > 2. > make -j`getconf _NPROCESSORS_ONLN` > > after 2 step we are getting following error: > > > > checking whether putc_unlocked is declared... yes > checking whether getrlimit is declared... yes > checking whether setrlimit is declared... yes > checking whether getrusage is declared... yes > checking whether ldgetname is declared... no > checking whether times is declared... yes > checking whether sigaltstack is declared... yes > checking whether madvise is declared... yes > checking for struct tms... yes > checking for clock_t... yes > checking for F_SETLKW... yes > checking if mkdir takes one argument... no > Unknown CPU given in --with-arch=armv7-a. > make[1]: *** [configure-gcc] Error 1 > make[1]: Leaving directory `/home/anwej/src/build' > make: *** [all] Error 2 > > Please suggest the solution. where is the problem and what will be > our > next > steps. > > Thanks in advance. > > -best regards > Anwej Alam > Ph: +91.995.833.3456 > > > > _______________________________________________ > linaro-toolchain mailing list > linaro-toolchain@lists.linaro.org > http://lists.linaro.org/mailman/listinfo/linaro-toolchain >
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
ok, so you have to find what is the kernel and libc version of your Angstrom distro and look at crosstool-ng to build a toolchain that will match with your system.
On 10 April 2014 20:16, Anwej Alam anwej.alam@upheave.in wrote:
opkg is not working. thats why i am trying to build from host PC.
On Thu, Apr 10, 2014 at 11:40 PM, Yvan Roux yvan.roux@linaro.org wrote:
I never used Angstrom distro, but googling it shows that it seems possible to install gcc and the binutils on Tegra2 with opkg (to search the package names, try something opkg search 'gcc*' for instance).
On 10 April 2014 19:41, Anwej Alam anwej.alam@upheave.in wrote:
Dear Sir,
Thank you so much for your reply.
I would like to tell you the exact scenario of my end. I have a SBC (nViDia Tegra 2) which have The Angstrom Linux Distro without GCC compiler. Currently i have a host PC (i686 and Ubuntu 12.04) on which i cross compiles the application for nViDia Tegra 2 and then transfer the executable to SBC. but now i want to build and compile application on nViDia Tegra 2 itself. for than I need a native GCC compiler on SBC (nViDia Tegra 2).
So, Sir please suggest the method to solve my problem.
Thanks in Advance
-br, Anwej 9968333456
On Thu, Apr 10, 2014 at 10:53 PM, Yvan Roux yvan.roux@linaro.org wrote:
Hi Anwej,
these are the right options for an ARM compiler, but you have to tell gcc that you want to build a compiler on an x86 platform that will be use on an ARM one to produce ARM executable, to do so you have to specify the target triplet of the flags --build, --host and --target, but to build the compiler you will also need to build the binutils, and the libc (and if you build for loinux you need the kernel headers as well). This why kugan suggested to use crosstool-ng (I guess the Linaro wiki page you have seen is about building a native ARM one)
Rgds, Yvan
On 10 April 2014 19:05, Anwej Alam anwej.alam@upheave.in wrote:
I am referring below link for gcc configuration options.
http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
On Thu, Apr 10, 2014 at 11:52 AM, Anwej Alam anwej.alam@upheave.in wrote:
Dear Yvan,
Thanks for your reply. We are trying to build native gcc compiler for CPU: nViDia Tegra 2 which has ARMv7-a, Cortex-A9 core. We are using host machine as i686 and OS: ubuntu 12.04.
-br, Anwej 9958333456
On Wed, Apr 9, 2014 at 9:13 PM, Yvan Roux yvan.roux@linaro.org wrote: > > Hi Anwej, > > what kind of machine are you building on? my guess is that you try > to > do a native build whereas it is a cross one that you need. > > rgds, > Yvan > > On 9 April 2014 16:32, Anwej Alam anwej.alam@upheave.in wrote: > > Dear Sir, > > > > Thanks for you page. it is really very helpful to us. > > We are facing a problem during compiling GCC for our ARMv7-a > > Cortex-a9. > > We are using following option: > > > > 1. > > ../gcc-linaro*/configure --disable-bootstrap > > --enable-languages=c,c++ > > --with-mode=thumb --with-arch=armv7-a --with-tune=cortex-a9 > > --with-float=hard --with-fpu=vpfv3-d16 > > --prefix=$home/gcc/gcc-linaro > > > > 2. > > make -j`getconf _NPROCESSORS_ONLN` > > > > after 2 step we are getting following error: > > > > > > > > checking whether putc_unlocked is declared... yes > > checking whether getrlimit is declared... yes > > checking whether setrlimit is declared... yes > > checking whether getrusage is declared... yes > > checking whether ldgetname is declared... no > > checking whether times is declared... yes > > checking whether sigaltstack is declared... yes > > checking whether madvise is declared... yes > > checking for struct tms... yes > > checking for clock_t... yes > > checking for F_SETLKW... yes > > checking if mkdir takes one argument... no > > Unknown CPU given in --with-arch=armv7-a. > > make[1]: *** [configure-gcc] Error 1 > > make[1]: Leaving directory `/home/anwej/src/build' > > make: *** [all] Error 2 > > > > Please suggest the solution. where is the problem and what will > > be > > our > > next > > steps. > > > > Thanks in advance. > > > > -best regards > > Anwej Alam > > Ph: +91.995.833.3456 > > > > > > > > _______________________________________________ > > linaro-toolchain mailing list > > linaro-toolchain@lists.linaro.org > > http://lists.linaro.org/mailman/listinfo/linaro-toolchain > >
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
It seams to me you want a "cross-native" build. The process is similar with "canadian" build. If you want to try linaro crosstool-ng, I will give you some instructions.
-Zhenqiang
On 11 April 2014 01:41, Anwej Alam anwej.alam@upheave.in wrote:
Dear Sir,
Thank you so much for your reply.
I would like to tell you the exact scenario of my end. I have a SBC (nViDia Tegra 2) which have The Angstrom Linux Distro without GCC compiler. Currently i have a host PC (i686 and Ubuntu 12.04) on which i cross compiles the application for nViDia Tegra 2 and then transfer the executable to SBC. but now i want to build and compile application on nViDia Tegra 2 itself. for than I need a native GCC compiler on SBC (nViDia Tegra 2).
So, Sir please suggest the method to solve my problem.
Thanks in Advance
-br, Anwej 9968333456
On Thu, Apr 10, 2014 at 10:53 PM, Yvan Roux yvan.roux@linaro.org wrote:
Hi Anwej,
these are the right options for an ARM compiler, but you have to tell gcc that you want to build a compiler on an x86 platform that will be use on an ARM one to produce ARM executable, to do so you have to specify the target triplet of the flags --build, --host and --target, but to build the compiler you will also need to build the binutils, and the libc (and if you build for loinux you need the kernel headers as well). This why kugan suggested to use crosstool-ng (I guess the Linaro wiki page you have seen is about building a native ARM one)
Rgds, Yvan
On 10 April 2014 19:05, Anwej Alam anwej.alam@upheave.in wrote:
I am referring below link for gcc configuration options.
http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
On Thu, Apr 10, 2014 at 11:52 AM, Anwej Alam anwej.alam@upheave.in wrote:
Dear Yvan,
Thanks for your reply. We are trying to build native gcc compiler for CPU: nViDia Tegra 2 which has ARMv7-a, Cortex-A9 core. We are using host machine as i686 and OS: ubuntu 12.04.
-br, Anwej 9958333456
On Wed, Apr 9, 2014 at 9:13 PM, Yvan Roux yvan.roux@linaro.org wrote:
Hi Anwej,
what kind of machine are you building on? my guess is that you try to do a native build whereas it is a cross one that you need.
rgds, Yvan
On 9 April 2014 16:32, Anwej Alam anwej.alam@upheave.in wrote:
Dear Sir,
Thanks for you page. it is really very helpful to us. We are facing a problem during compiling GCC for our ARMv7-a Cortex-a9. We are using following option:
../gcc-linaro*/configure --disable-bootstrap --enable-languages=c,c++ --with-mode=thumb --with-arch=armv7-a --with-tune=cortex-a9 --with-float=hard --with-fpu=vpfv3-d16 --prefix=$home/gcc/gcc-linaro
make -j`getconf _NPROCESSORS_ONLN`
after 2 step we are getting following error:
checking whether putc_unlocked is declared... yes checking whether getrlimit is declared... yes checking whether setrlimit is declared... yes checking whether getrusage is declared... yes checking whether ldgetname is declared... no checking whether times is declared... yes checking whether sigaltstack is declared... yes checking whether madvise is declared... yes checking for struct tms... yes checking for clock_t... yes checking for F_SETLKW... yes checking if mkdir takes one argument... no Unknown CPU given in --with-arch=armv7-a. make[1]: *** [configure-gcc] Error 1 make[1]: Leaving directory `/home/anwej/src/build' make: *** [all] Error 2
Please suggest the solution. where is the problem and what will be our next steps.
Thanks in advance.
-best regards Anwej Alam Ph: +91.995.833.3456
linaro-toolchain mailing list linaro-toolchain@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-toolchain
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
linaro-toolchain mailing list linaro-toolchain@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-toolchain
Dear Yvan,
I am going to adopt crosstool-ng option. I will update you the status soon. Thank you so much for you support. Let me try first.
On Fri, Apr 11, 2014 at 6:41 AM, Zhenqiang Chen zhenqiang.chen@linaro.orgwrote:
It seams to me you want a "cross-native" build. The process is similar with "canadian" build. If you want to try linaro crosstool-ng, I will give you some instructions.
-Zhenqiang
On 11 April 2014 01:41, Anwej Alam anwej.alam@upheave.in wrote:
Dear Sir,
Thank you so much for your reply.
I would like to tell you the exact scenario of my end. I have a SBC
(nViDia
Tegra 2) which have The Angstrom Linux Distro without GCC compiler. Currently i have a host PC (i686 and Ubuntu 12.04) on which i cross compiles the application for nViDia Tegra 2 and then transfer the
executable
to SBC. but now i want to build and compile application on nViDia Tegra 2 itself. for than I need a native GCC compiler on SBC (nViDia Tegra 2).
So, Sir please suggest the method to solve my problem.
Thanks in Advance
-br, Anwej 9968333456
On Thu, Apr 10, 2014 at 10:53 PM, Yvan Roux yvan.roux@linaro.org
wrote:
Hi Anwej,
these are the right options for an ARM compiler, but you have to tell gcc that you want to build a compiler on an x86 platform that will be use on an ARM one to produce ARM executable, to do so you have to specify the target triplet of the flags --build, --host and --target, but to build the compiler you will also need to build the binutils, and the libc (and if you build for loinux you need the kernel headers as well). This why kugan suggested to use crosstool-ng (I guess the Linaro wiki page you have seen is about building a native ARM one)
Rgds, Yvan
On 10 April 2014 19:05, Anwej Alam anwej.alam@upheave.in wrote:
I am referring below link for gcc configuration options.
http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
On Thu, Apr 10, 2014 at 11:52 AM, Anwej Alam anwej.alam@upheave.in wrote:
Dear Yvan,
Thanks for your reply. We are trying to build native gcc compiler for CPU: nViDia Tegra 2 which has ARMv7-a, Cortex-A9 core. We are using host machine as i686 and
OS:
ubuntu 12.04.
-br, Anwej 9958333456
On Wed, Apr 9, 2014 at 9:13 PM, Yvan Roux yvan.roux@linaro.org
wrote:
Hi Anwej,
what kind of machine are you building on? my guess is that you try
to
do a native build whereas it is a cross one that you need.
rgds, Yvan
On 9 April 2014 16:32, Anwej Alam anwej.alam@upheave.in wrote: > Dear Sir, > > Thanks for you page. it is really very helpful to us. > We are facing a problem during compiling GCC for our ARMv7-a > Cortex-a9. > We are using following option: > > 1. > ../gcc-linaro*/configure --disable-bootstrap > --enable-languages=c,c++ > --with-mode=thumb --with-arch=armv7-a --with-tune=cortex-a9 > --with-float=hard --with-fpu=vpfv3-d16 > --prefix=$home/gcc/gcc-linaro > > 2. > make -j`getconf _NPROCESSORS_ONLN` > > after 2 step we are getting following error: > > > > checking whether putc_unlocked is declared... yes > checking whether getrlimit is declared... yes > checking whether setrlimit is declared... yes > checking whether getrusage is declared... yes > checking whether ldgetname is declared... no > checking whether times is declared... yes > checking whether sigaltstack is declared... yes > checking whether madvise is declared... yes > checking for struct tms... yes > checking for clock_t... yes > checking for F_SETLKW... yes > checking if mkdir takes one argument... no > Unknown CPU given in --with-arch=armv7-a. > make[1]: *** [configure-gcc] Error 1 > make[1]: Leaving directory `/home/anwej/src/build' > make: *** [all] Error 2 > > Please suggest the solution. where is the problem and what will be > our > next > steps. > > Thanks in advance. > > -best regards > Anwej Alam > Ph: +91.995.833.3456 > > > > _______________________________________________ > linaro-toolchain mailing list > linaro-toolchain@lists.linaro.org > http://lists.linaro.org/mailman/listinfo/linaro-toolchain >
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
linaro-toolchain mailing list linaro-toolchain@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-toolchain
Dear Chen,
Thanks for your reply.
Yes, I am cross compiling gcc for ARM native GCC compiler. I will follow the canadian build and i am also going to try linao crosstool-ng for the same.
Please suggest the steps for same.
Thanks in Advance
-br, Anwej 9958333456
On Fri, Apr 11, 2014 at 7:43 AM, Anwej Alam anwej.alam@upheave.in wrote:
Dear Yvan,
I am going to adopt crosstool-ng option. I will update you the status soon. Thank you so much for you support. Let me try first.
On Fri, Apr 11, 2014 at 6:41 AM, Zhenqiang Chen <zhenqiang.chen@linaro.org
wrote:
It seams to me you want a "cross-native" build. The process is similar with "canadian" build. If you want to try linaro crosstool-ng, I will give you some instructions.
-Zhenqiang
On 11 April 2014 01:41, Anwej Alam anwej.alam@upheave.in wrote:
Dear Sir,
Thank you so much for your reply.
I would like to tell you the exact scenario of my end. I have a SBC
(nViDia
Tegra 2) which have The Angstrom Linux Distro without GCC compiler. Currently i have a host PC (i686 and Ubuntu 12.04) on which i cross compiles the application for nViDia Tegra 2 and then transfer the
executable
to SBC. but now i want to build and compile application on nViDia Tegra
2
itself. for than I need a native GCC compiler on SBC (nViDia Tegra 2).
So, Sir please suggest the method to solve my problem.
Thanks in Advance
-br, Anwej 9968333456
On Thu, Apr 10, 2014 at 10:53 PM, Yvan Roux yvan.roux@linaro.org
wrote:
Hi Anwej,
these are the right options for an ARM compiler, but you have to tell gcc that you want to build a compiler on an x86 platform that will be use on an ARM one to produce ARM executable, to do so you have to specify the target triplet of the flags --build, --host and --target, but to build the compiler you will also need to build the binutils, and the libc (and if you build for loinux you need the kernel headers as well). This why kugan suggested to use crosstool-ng (I guess the Linaro wiki page you have seen is about building a native ARM one)
Rgds, Yvan
On 10 April 2014 19:05, Anwej Alam anwej.alam@upheave.in wrote:
I am referring below link for gcc configuration options.
http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
On Thu, Apr 10, 2014 at 11:52 AM, Anwej Alam anwej.alam@upheave.in wrote:
Dear Yvan,
Thanks for your reply. We are trying to build native gcc compiler for CPU: nViDia Tegra 2 which has ARMv7-a, Cortex-A9 core. We are using host machine as i686 and
OS:
ubuntu 12.04.
-br, Anwej 9958333456
On Wed, Apr 9, 2014 at 9:13 PM, Yvan Roux yvan.roux@linaro.org
wrote:
> > Hi Anwej, > > what kind of machine are you building on? my guess is that you try
to
> do a native build whereas it is a cross one that you need. > > rgds, > Yvan > > On 9 April 2014 16:32, Anwej Alam anwej.alam@upheave.in wrote: > > Dear Sir, > > > > Thanks for you page. it is really very helpful to us. > > We are facing a problem during compiling GCC for our ARMv7-a > > Cortex-a9. > > We are using following option: > > > > 1. > > ../gcc-linaro*/configure --disable-bootstrap > > --enable-languages=c,c++ > > --with-mode=thumb --with-arch=armv7-a --with-tune=cortex-a9 > > --with-float=hard --with-fpu=vpfv3-d16 > > --prefix=$home/gcc/gcc-linaro > > > > 2. > > make -j`getconf _NPROCESSORS_ONLN` > > > > after 2 step we are getting following error: > > > > > > > > checking whether putc_unlocked is declared... yes > > checking whether getrlimit is declared... yes > > checking whether setrlimit is declared... yes > > checking whether getrusage is declared... yes > > checking whether ldgetname is declared... no > > checking whether times is declared... yes > > checking whether sigaltstack is declared... yes > > checking whether madvise is declared... yes > > checking for struct tms... yes > > checking for clock_t... yes > > checking for F_SETLKW... yes > > checking if mkdir takes one argument... no > > Unknown CPU given in --with-arch=armv7-a. > > make[1]: *** [configure-gcc] Error 1 > > make[1]: Leaving directory `/home/anwej/src/build' > > make: *** [all] Error 2 > > > > Please suggest the solution. where is the problem and what will
be
> > our > > next > > steps. > > > > Thanks in advance. > > > > -best regards > > Anwej Alam > > Ph: +91.995.833.3456 > > > > > > > > _______________________________________________ > > linaro-toolchain mailing list > > linaro-toolchain@lists.linaro.org > > http://lists.linaro.org/mailman/listinfo/linaro-toolchain > >
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
linaro-toolchain mailing list linaro-toolchain@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-toolchain
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
Please try my hack based on Linaro crosstool-ng Canadian windows build.
1) wget http://cbuild.validation.linaro.org/snapshots/crosstool-ng-linaro-1.13.1-4.8... 2) tar -xf crosstool-ng-linaro-1.13.1-4.8-2014.02.tar.bz2 3) cd crosstool-ng-linaro-1.13.1-4.8-2014.02 4) sed -i 's/i586-mingw32msvc/arm-linux-gnueabihf/g' contrib/linaro/build.mk 5) sed -i 's/libiconv//g' steps.mk (libiconv is only for Windows) 6) make -f contrib/linaro/build.mk
Finally you will get a toolchain at
./builds/arm-linux-gnueabi-win32/install
(Please ignore the fails at the end to package windows staffs. )
Good luck! -Zhenqiang
On 11 April 2014 10:18, Anwej Alam anwej.alam@upheave.in wrote:
Dear Chen,
Thanks for your reply.
Yes, I am cross compiling gcc for ARM native GCC compiler. I will follow the canadian build and i am also going to try linao crosstool-ng for the same.
Please suggest the steps for same.
Thanks in Advance
-br, Anwej 9958333456
On Fri, Apr 11, 2014 at 7:43 AM, Anwej Alam anwej.alam@upheave.in wrote:
Dear Yvan,
I am going to adopt crosstool-ng option. I will update you the status soon. Thank you so much for you support. Let me try first.
On Fri, Apr 11, 2014 at 6:41 AM, Zhenqiang Chen zhenqiang.chen@linaro.org wrote:
It seams to me you want a "cross-native" build. The process is similar with "canadian" build. If you want to try linaro crosstool-ng, I will give you some instructions.
-Zhenqiang
On 11 April 2014 01:41, Anwej Alam anwej.alam@upheave.in wrote:
Dear Sir,
Thank you so much for your reply.
I would like to tell you the exact scenario of my end. I have a SBC (nViDia Tegra 2) which have The Angstrom Linux Distro without GCC compiler. Currently i have a host PC (i686 and Ubuntu 12.04) on which i cross compiles the application for nViDia Tegra 2 and then transfer the executable to SBC. but now i want to build and compile application on nViDia Tegra 2 itself. for than I need a native GCC compiler on SBC (nViDia Tegra 2).
So, Sir please suggest the method to solve my problem.
Thanks in Advance
-br, Anwej 9968333456
On Thu, Apr 10, 2014 at 10:53 PM, Yvan Roux yvan.roux@linaro.org wrote:
Hi Anwej,
these are the right options for an ARM compiler, but you have to tell gcc that you want to build a compiler on an x86 platform that will be use on an ARM one to produce ARM executable, to do so you have to specify the target triplet of the flags --build, --host and --target, but to build the compiler you will also need to build the binutils, and the libc (and if you build for loinux you need the kernel headers as well). This why kugan suggested to use crosstool-ng (I guess the Linaro wiki page you have seen is about building a native ARM one)
Rgds, Yvan
On 10 April 2014 19:05, Anwej Alam anwej.alam@upheave.in wrote:
I am referring below link for gcc configuration options.
http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
On Thu, Apr 10, 2014 at 11:52 AM, Anwej Alam anwej.alam@upheave.in wrote: > > Dear Yvan, > > Thanks for your reply. > We are trying to build native gcc compiler for CPU: nViDia Tegra 2 > which > has ARMv7-a, Cortex-A9 core. We are using host machine as i686 and > OS: > ubuntu 12.04. > > -br, > Anwej > 9958333456 > > > On Wed, Apr 9, 2014 at 9:13 PM, Yvan Roux yvan.roux@linaro.org > wrote: >> >> Hi Anwej, >> >> what kind of machine are you building on? my guess is that you try >> to >> do a native build whereas it is a cross one that you need. >> >> rgds, >> Yvan >> >> On 9 April 2014 16:32, Anwej Alam anwej.alam@upheave.in wrote: >> > Dear Sir, >> > >> > Thanks for you page. it is really very helpful to us. >> > We are facing a problem during compiling GCC for our ARMv7-a >> > Cortex-a9. >> > We are using following option: >> > >> > 1. >> > ../gcc-linaro*/configure --disable-bootstrap >> > --enable-languages=c,c++ >> > --with-mode=thumb --with-arch=armv7-a --with-tune=cortex-a9 >> > --with-float=hard --with-fpu=vpfv3-d16 >> > --prefix=$home/gcc/gcc-linaro >> > >> > 2. >> > make -j`getconf _NPROCESSORS_ONLN` >> > >> > after 2 step we are getting following error: >> > >> > >> > >> > checking whether putc_unlocked is declared... yes >> > checking whether getrlimit is declared... yes >> > checking whether setrlimit is declared... yes >> > checking whether getrusage is declared... yes >> > checking whether ldgetname is declared... no >> > checking whether times is declared... yes >> > checking whether sigaltstack is declared... yes >> > checking whether madvise is declared... yes >> > checking for struct tms... yes >> > checking for clock_t... yes >> > checking for F_SETLKW... yes >> > checking if mkdir takes one argument... no >> > Unknown CPU given in --with-arch=armv7-a. >> > make[1]: *** [configure-gcc] Error 1 >> > make[1]: Leaving directory `/home/anwej/src/build' >> > make: *** [all] Error 2 >> > >> > Please suggest the solution. where is the problem and what will >> > be >> > our >> > next >> > steps. >> > >> > Thanks in advance. >> > >> > -best regards >> > Anwej Alam >> > Ph: +91.995.833.3456 >> > >> > >> > >> > _______________________________________________ >> > linaro-toolchain mailing list >> > linaro-toolchain@lists.linaro.org >> > http://lists.linaro.org/mailman/listinfo/linaro-toolchain >> > > > > > > -- > -best regards > Anwej Alam > Engineer, System Design > Upheave Systems Pvt. Ltd. > C-78, 1st Floor, Sec-2 Noida-201301 > Ph: +91.995.833.3456 > +91.901.573.3456 > Mail to: anwej.alam@upheave.in
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
linaro-toolchain mailing list linaro-toolchain@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-toolchain
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
Thanks!
Sir, I am using Linux: Ubuntu 12.04.
On Fri, Apr 11, 2014 at 9:00 AM, Zhenqiang Chen zhenqiang.chen@linaro.orgwrote:
Please try my hack based on Linaro crosstool-ng Canadian windows build.
- wget
http://cbuild.validation.linaro.org/snapshots/crosstool-ng-linaro-1.13.1-4.8... 2) tar -xf crosstool-ng-linaro-1.13.1-4.8-2014.02.tar.bz2 3) cd crosstool-ng-linaro-1.13.1-4.8-2014.02 4) sed -i 's/i586-mingw32msvc/arm-linux-gnueabihf/g' contrib/linaro/ build.mk 5) sed -i 's/libiconv//g' steps.mk (libiconv is only for Windows) 6) make -f contrib/linaro/build.mk
Finally you will get a toolchain at
./builds/arm-linux-gnueabi-win32/install
(Please ignore the fails at the end to package windows staffs. )
Good luck! -Zhenqiang
On 11 April 2014 10:18, Anwej Alam anwej.alam@upheave.in wrote:
Dear Chen,
Thanks for your reply.
Yes, I am cross compiling gcc for ARM native GCC compiler. I will follow
the
canadian build and i am also going to try linao crosstool-ng for the same.
Please suggest the steps for same.
Thanks in Advance
-br, Anwej 9958333456
On Fri, Apr 11, 2014 at 7:43 AM, Anwej Alam anwej.alam@upheave.in
wrote:
Dear Yvan,
I am going to adopt crosstool-ng option. I will update you the status soon. Thank you so much for you support. Let me try first.
On Fri, Apr 11, 2014 at 6:41 AM, Zhenqiang Chen zhenqiang.chen@linaro.org wrote:
It seams to me you want a "cross-native" build. The process is similar with "canadian" build. If you want to try linaro crosstool-ng, I will give you some instructions.
-Zhenqiang
On 11 April 2014 01:41, Anwej Alam anwej.alam@upheave.in wrote:
Dear Sir,
Thank you so much for your reply.
I would like to tell you the exact scenario of my end. I have a SBC (nViDia Tegra 2) which have The Angstrom Linux Distro without GCC compiler. Currently i have a host PC (i686 and Ubuntu 12.04) on which i cross compiles the application for nViDia Tegra 2 and then transfer the executable to SBC. but now i want to build and compile application on nViDia
Tegra
2 itself. for than I need a native GCC compiler on SBC (nViDia Tegra
2).
So, Sir please suggest the method to solve my problem.
Thanks in Advance
-br, Anwej 9968333456
On Thu, Apr 10, 2014 at 10:53 PM, Yvan Roux yvan.roux@linaro.org wrote:
Hi Anwej,
these are the right options for an ARM compiler, but you have to
tell
gcc that you want to build a compiler on an x86 platform that will
be
use on an ARM one to produce ARM executable, to do so you have to specify the target triplet of the flags --build, --host and
--target,
but to build the compiler you will also need to build the binutils, and the libc (and if you build for loinux you need the kernel
headers
as well). This why kugan suggested to use crosstool-ng (I guess the Linaro wiki page you have seen is about building a native ARM one)
Rgds, Yvan
On 10 April 2014 19:05, Anwej Alam anwej.alam@upheave.in wrote: > I am referring below link for gcc configuration options. > > http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html > > > On Thu, Apr 10, 2014 at 11:52 AM, Anwej Alam <
anwej.alam@upheave.in>
> wrote: >> >> Dear Yvan, >> >> Thanks for your reply. >> We are trying to build native gcc compiler for CPU: nViDia Tegra
2
>> which >> has ARMv7-a, Cortex-A9 core. We are using host machine as i686
and
>> OS: >> ubuntu 12.04. >> >> -br, >> Anwej >> 9958333456 >> >> >> On Wed, Apr 9, 2014 at 9:13 PM, Yvan Roux yvan.roux@linaro.org >> wrote: >>> >>> Hi Anwej, >>> >>> what kind of machine are you building on? my guess is that you
try
>>> to >>> do a native build whereas it is a cross one that you need. >>> >>> rgds, >>> Yvan >>> >>> On 9 April 2014 16:32, Anwej Alam anwej.alam@upheave.in
wrote:
>>> > Dear Sir, >>> > >>> > Thanks for you page. it is really very helpful to us. >>> > We are facing a problem during compiling GCC for our ARMv7-a >>> > Cortex-a9. >>> > We are using following option: >>> > >>> > 1. >>> > ../gcc-linaro*/configure --disable-bootstrap >>> > --enable-languages=c,c++ >>> > --with-mode=thumb --with-arch=armv7-a --with-tune=cortex-a9 >>> > --with-float=hard --with-fpu=vpfv3-d16 >>> > --prefix=$home/gcc/gcc-linaro >>> > >>> > 2. >>> > make -j`getconf _NPROCESSORS_ONLN` >>> > >>> > after 2 step we are getting following error: >>> > >>> > >>> > >>> > checking whether putc_unlocked is declared... yes >>> > checking whether getrlimit is declared... yes >>> > checking whether setrlimit is declared... yes >>> > checking whether getrusage is declared... yes >>> > checking whether ldgetname is declared... no >>> > checking whether times is declared... yes >>> > checking whether sigaltstack is declared... yes >>> > checking whether madvise is declared... yes >>> > checking for struct tms... yes >>> > checking for clock_t... yes >>> > checking for F_SETLKW... yes >>> > checking if mkdir takes one argument... no >>> > Unknown CPU given in --with-arch=armv7-a. >>> > make[1]: *** [configure-gcc] Error 1 >>> > make[1]: Leaving directory `/home/anwej/src/build' >>> > make: *** [all] Error 2 >>> > >>> > Please suggest the solution. where is the problem and what
will
>>> > be >>> > our >>> > next >>> > steps. >>> > >>> > Thanks in advance. >>> > >>> > -best regards >>> > Anwej Alam >>> > Ph: +91.995.833.3456 >>> > >>> > >>> > >>> > _______________________________________________ >>> > linaro-toolchain mailing list >>> > linaro-toolchain@lists.linaro.org >>> > http://lists.linaro.org/mailman/listinfo/linaro-toolchain >>> > >> >> >> >> >> -- >> -best regards >> Anwej Alam >> Engineer, System Design >> Upheave Systems Pvt. Ltd. >> C-78, 1st Floor, Sec-2 Noida-201301 >> Ph: +91.995.833.3456 >> +91.901.573.3456 >> Mail to: anwej.alam@upheave.in > > > > > -- > -best regards > Anwej Alam > Engineer, System Design > Upheave Systems Pvt. Ltd. > C-78, 1st Floor, Sec-2 Noida-201301 > Ph: +91.995.833.3456 > +91.901.573.3456 > Mail to: anwej.alam@upheave.in
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
linaro-toolchain mailing list linaro-toolchain@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-toolchain
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
Hi Anwej,
I'm adding Koen who will be of a better help with regards to Angstrom (as he his the maintainer ;)
Rgds, Yvan
On 11 April 2014 06:23, Anwej Alam anwej.alam@upheave.in wrote:
Thanks!
Sir, I am using Linux: Ubuntu 12.04.
On Fri, Apr 11, 2014 at 9:00 AM, Zhenqiang Chen zhenqiang.chen@linaro.org wrote:
Please try my hack based on Linaro crosstool-ng Canadian windows build.
- wget
http://cbuild.validation.linaro.org/snapshots/crosstool-ng-linaro-1.13.1-4.8... 2) tar -xf crosstool-ng-linaro-1.13.1-4.8-2014.02.tar.bz2 3) cd crosstool-ng-linaro-1.13.1-4.8-2014.02 4) sed -i 's/i586-mingw32msvc/arm-linux-gnueabihf/g' contrib/linaro/build.mk 5) sed -i 's/libiconv//g' steps.mk (libiconv is only for Windows) 6) make -f contrib/linaro/build.mk
Finally you will get a toolchain at
./builds/arm-linux-gnueabi-win32/install
(Please ignore the fails at the end to package windows staffs. )
Good luck! -Zhenqiang
On 11 April 2014 10:18, Anwej Alam anwej.alam@upheave.in wrote:
Dear Chen,
Thanks for your reply.
Yes, I am cross compiling gcc for ARM native GCC compiler. I will follow the canadian build and i am also going to try linao crosstool-ng for the same.
Please suggest the steps for same.
Thanks in Advance
-br, Anwej 9958333456
On Fri, Apr 11, 2014 at 7:43 AM, Anwej Alam anwej.alam@upheave.in wrote:
Dear Yvan,
I am going to adopt crosstool-ng option. I will update you the status soon. Thank you so much for you support. Let me try first.
On Fri, Apr 11, 2014 at 6:41 AM, Zhenqiang Chen zhenqiang.chen@linaro.org wrote:
It seams to me you want a "cross-native" build. The process is similar with "canadian" build. If you want to try linaro crosstool-ng, I will give you some instructions.
-Zhenqiang
On 11 April 2014 01:41, Anwej Alam anwej.alam@upheave.in wrote:
Dear Sir,
Thank you so much for your reply.
I would like to tell you the exact scenario of my end. I have a SBC (nViDia Tegra 2) which have The Angstrom Linux Distro without GCC compiler. Currently i have a host PC (i686 and Ubuntu 12.04) on which i cross compiles the application for nViDia Tegra 2 and then transfer the executable to SBC. but now i want to build and compile application on nViDia Tegra 2 itself. for than I need a native GCC compiler on SBC (nViDia Tegra 2).
So, Sir please suggest the method to solve my problem.
Thanks in Advance
-br, Anwej 9968333456
On Thu, Apr 10, 2014 at 10:53 PM, Yvan Roux yvan.roux@linaro.org wrote: > > Hi Anwej, > > these are the right options for an ARM compiler, but you have to > tell > gcc that you want to build a compiler on an x86 platform that will > be > use on an ARM one to produce ARM executable, to do so you have to > specify the target triplet of the flags --build, --host and > --target, > but to build the compiler you will also need to build the binutils, > and the libc (and if you build for loinux you need the kernel > headers > as well). This why kugan suggested to use crosstool-ng (I guess > the > Linaro wiki page you have seen is about building a native ARM one) > > Rgds, > Yvan > > On 10 April 2014 19:05, Anwej Alam anwej.alam@upheave.in wrote: > > I am referring below link for gcc configuration options. > > > > http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html > > > > > > On Thu, Apr 10, 2014 at 11:52 AM, Anwej Alam > > anwej.alam@upheave.in > > wrote: > >> > >> Dear Yvan, > >> > >> Thanks for your reply. > >> We are trying to build native gcc compiler for CPU: nViDia Tegra > >> 2 > >> which > >> has ARMv7-a, Cortex-A9 core. We are using host machine as i686 > >> and > >> OS: > >> ubuntu 12.04. > >> > >> -br, > >> Anwej > >> 9958333456 > >> > >> > >> On Wed, Apr 9, 2014 at 9:13 PM, Yvan Roux yvan.roux@linaro.org > >> wrote: > >>> > >>> Hi Anwej, > >>> > >>> what kind of machine are you building on? my guess is that you > >>> try > >>> to > >>> do a native build whereas it is a cross one that you need. > >>> > >>> rgds, > >>> Yvan > >>> > >>> On 9 April 2014 16:32, Anwej Alam anwej.alam@upheave.in > >>> wrote: > >>> > Dear Sir, > >>> > > >>> > Thanks for you page. it is really very helpful to us. > >>> > We are facing a problem during compiling GCC for our ARMv7-a > >>> > Cortex-a9. > >>> > We are using following option: > >>> > > >>> > 1. > >>> > ../gcc-linaro*/configure --disable-bootstrap > >>> > --enable-languages=c,c++ > >>> > --with-mode=thumb --with-arch=armv7-a --with-tune=cortex-a9 > >>> > --with-float=hard --with-fpu=vpfv3-d16 > >>> > --prefix=$home/gcc/gcc-linaro > >>> > > >>> > 2. > >>> > make -j`getconf _NPROCESSORS_ONLN` > >>> > > >>> > after 2 step we are getting following error: > >>> > > >>> > > >>> > > >>> > checking whether putc_unlocked is declared... yes > >>> > checking whether getrlimit is declared... yes > >>> > checking whether setrlimit is declared... yes > >>> > checking whether getrusage is declared... yes > >>> > checking whether ldgetname is declared... no > >>> > checking whether times is declared... yes > >>> > checking whether sigaltstack is declared... yes > >>> > checking whether madvise is declared... yes > >>> > checking for struct tms... yes > >>> > checking for clock_t... yes > >>> > checking for F_SETLKW... yes > >>> > checking if mkdir takes one argument... no > >>> > Unknown CPU given in --with-arch=armv7-a. > >>> > make[1]: *** [configure-gcc] Error 1 > >>> > make[1]: Leaving directory `/home/anwej/src/build' > >>> > make: *** [all] Error 2 > >>> > > >>> > Please suggest the solution. where is the problem and what > >>> > will > >>> > be > >>> > our > >>> > next > >>> > steps. > >>> > > >>> > Thanks in advance. > >>> > > >>> > -best regards > >>> > Anwej Alam > >>> > Ph: +91.995.833.3456 > >>> > > >>> > > >>> > > >>> > _______________________________________________ > >>> > linaro-toolchain mailing list > >>> > linaro-toolchain@lists.linaro.org > >>> > http://lists.linaro.org/mailman/listinfo/linaro-toolchain > >>> > > >> > >> > >> > >> > >> -- > >> -best regards > >> Anwej Alam > >> Engineer, System Design > >> Upheave Systems Pvt. Ltd. > >> C-78, 1st Floor, Sec-2 Noida-201301 > >> Ph: +91.995.833.3456 > >> +91.901.573.3456 > >> Mail to: anwej.alam@upheave.in > > > > > > > > > > -- > > -best regards > > Anwej Alam > > Engineer, System Design > > Upheave Systems Pvt. Ltd. > > C-78, 1st Floor, Sec-2 Noida-201301 > > Ph: +91.995.833.3456 > > +91.901.573.3456 > > Mail to: anwej.alam@upheave.in
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
linaro-toolchain mailing list linaro-toolchain@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-toolchain
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
-- -best regards Anwej Alam Engineer, System Design Upheave Systems Pvt. Ltd. C-78, 1st Floor, Sec-2 Noida-201301 Ph: +91.995.833.3456 +91.901.573.3456 Mail to: anwej.alam@upheave.in
linaro-toolchain@lists.linaro.org