Altera Nios2 troubles
Rich Felker
dalias at aerifal.cx
Wed Jul 12 14:24:17 PDT 2006
On Wed, Jul 12, 2006 at 12:38:18PM -0700, Khem Raj wrote:
> 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;
The correct form of the cast is:
*(const gchar **)&a = b;
or:
a = (void *)b;
Rich
More information about the uClibc
mailing list