Altera Nios2 troubles

Khem Raj khem at mvista.com
Wed Jul 12 12:38:18 PDT 2006


Cristiano Ghirardi said the following on 07/12/2006 07:24 AM:
> Hi all,
> I have had some troubles  compiling  buildroot for Altera Nios2 
> architecture. First of all I got this error:
>
> <<
>    ../buildroot/toolchain_build
> _nios2/binutils-2.15/gas/config/tc-nios2.c: In function 'md_apply_fix3':
>     
> ../buildroot/toolchain_build_nios2/binutils-2.15/gas/config/tc-nios2.c:1664: 
> error: invalid lvalue in assignment
> >>
this might be due to some casting you are doing on left hand side

like

(const gchar*)a = b;

gcc 4.x barfed at it and it worked with older gcc versions.

you can change that to 
a=b;

-Khem






More information about the uClibc mailing list