2013-06-25 03:15:09

by Chen Gang

[permalink] [raw]
Subject: [Suggestion] arch: avr32: compiler: compiling tools issue

Hello Maintainers:

With allmodconfig, and set "avr32-linux-gnu-" as cross compiler prefix.

It will report error:
avr32-linux-gnu-gcc: error: unrecognized command line option ?-mno-pic?
avr32-linux-gnu-gcc: error: unrecognized command line option ?-march=ap?

The related gcc version:
[root@dhcp122 linux-next]# rpm -qf /usr/bin/avr32-linux-gnu-gcc
gcc-avr32-linux-gnu-4.7.1-0.1.20120606.fc17.x86_64

Can we say: it is compiler's issue, and I need try to compile the cross
compiler to test it again ?

Welcome any additional suggestion or completions.

Thanks.
--
Chen Gang

Asianux Corporation


Subject: Re: [Suggestion] arch: avr32: compiler: compiling tools issue

Around Tue 25 Jun 2013 11:14:14 +0800 or thereabout, Chen Gang wrote:
> Hello Maintainers:
>
> With allmodconfig, and set "avr32-linux-gnu-" as cross compiler prefix.
>
> It will report error:
> avr32-linux-gnu-gcc: error: unrecognized command line option ‘-mno-pic’
> avr32-linux-gnu-gcc: error: unrecognized command line option ‘-march=ap’
>
> The related gcc version:
> [root@dhcp122 linux-next]# rpm -qf /usr/bin/avr32-linux-gnu-gcc
> gcc-avr32-linux-gnu-4.7.1-0.1.20120606.fc17.x86_64

Interesting version, 4.7.1.

> Can we say: it is compiler's issue, and I need try to compile the cross
> compiler to test it again ?

I would assume so, I didn't know Atmel finally pushed all the source code to
support avr32-linux from upstream.

I still use a jay old 4.2 based GCC port, which was the last one I used when
working for Atmel.

--
mvh
Hans-Christian Egtvedt

2013-06-25 07:44:00

by Chen Gang

[permalink] [raw]
Subject: Re: [Suggestion] arch: avr32: compiler: compiling tools issue

On 06/25/2013 02:48 PM, Hans-Christian Egtvedt wrote:
> Around Tue 25 Jun 2013 11:14:14 +0800 or thereabout, Chen Gang wrote:
>> > Hello Maintainers:
>> >
>> > With allmodconfig, and set "avr32-linux-gnu-" as cross compiler prefix.
>> >
>> > It will report error:
>> > avr32-linux-gnu-gcc: error: unrecognized command line option ‘-mno-pic’
>> > avr32-linux-gnu-gcc: error: unrecognized command line option ‘-march=ap’
>> >
>> > The related gcc version:
>> > [root@dhcp122 linux-next]# rpm -qf /usr/bin/avr32-linux-gnu-gcc
>> > gcc-avr32-linux-gnu-4.7.1-0.1.20120606.fc17.x86_64
> Interesting version, 4.7.1.
>
>> > Can we say: it is compiler's issue, and I need try to compile the cross
>> > compiler to test it again ?
> I would assume so, I didn't know Atmel finally pushed all the source code to
> support avr32-linux from upstream.
>
> I still use a jay old 4.2 based GCC port, which was the last one I used when
> working for Atmel.

Is it possible to use the compiler tools (may from source code and
compile the compiler tools firstly), to compile the latest upstream
kernel (e.g next-20130624) for avr32 ?

Thanks.
--
Chen Gang

Asianux Corporation