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 regardsAnwej AlamEngineer, System DesignUpheave Systems Pvt. Ltd.C-78, 1st Floor, Sec-2 Noida-201301Ph: +91.995.833.3456+91.901.573.3456Mail to: anwej.alam@upheave.in