Altera Nios2 troubles

Cristiano Ghirardi cristiano.ghirardi at gmail.com
Thu Jul 13 14:12:35 UTC 2006


To tell the truth I was interested to solve the second problem that is
geting the 3.4.6 gcc working....

On 7/12/06, Rich Felker <dalias at aerifal.cx> wrote:
>
> 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
>
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://busybox.net/cgi-bin/mailman/listinfo/uclibc
>



-- 
-- Cristiano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20060713/220aa83d/attachment-0001.htm 


More information about the uClibc mailing list