avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [avr-gcc-list] ICE in GNU ld


From: Weddington, Eric
Subject: RE: [avr-gcc-list] ICE in GNU ld
Date: Fri, 13 Feb 2009 15:24:15 -0700

 

> -----Original Message-----
> From: Daniel O'Connor [mailto:address@hidden 
> Sent: Friday, February 13, 2009 3:19 PM
> To: address@hidden
> Cc: Weddington, Eric
> Subject: Re: [avr-gcc-list] ICE in GNU ld
> 
> On Friday 13 February 2009 17:30:16 Daniel O'Connor wrote:
> > On Friday 13 February 2009 16:38:59 Weddington, Eric wrote:
> > > > I could try it on a FreeBSD box but the ports only go 
> up to 4.3.1.
> > >
> > > That would be acceptable too. Just not 4.3.0.
> >
> > OK, it's crunching its way through it..
> 
> It still crashes.
> [cain 8:47] ~/projects/sprink >make      
> avr-gcc -O2 -fno-strict-aliasing -pipe  -DF_CPU=8000000 -Os 
> -Wall -gdwarf-2 -mmcu=atmega8535 -Wa,-adhlmsn=sprink.lst -c 
> sprink.c -o sprink.o                                          
>                                             
> avr-gcc -O2 -fno-strict-aliasing -pipe  -DF_CPU=8000000 -Os 
> -Wall -gdwarf-2 -mmcu=atmega8535 -Wa,-adhlmsn=cons.lst -c 
> cons.c -o cons.o                                              
>                                               
> avr-gcc -O2 -fno-strict-aliasing -pipe  -DF_CPU=8000000 -Os 
> -Wall -gdwarf-2 -mmcu=atmega8535 -Wa,-adhlmsn=ds1307.lst -c 
> ds1307.c -o ds1307.o
> avr-gcc -O2 -fno-strict-aliasing -pipe  -DF_CPU=8000000 -Os 
> -Wall -gdwarf-2 -mmcu=atmega8535 -Wa,-adhlmsn=1wire.lst -c 
> 1wire.c -o 1wire.o
> avr-gcc -O2 -fno-strict-aliasing -pipe  -DF_CPU=8000000 -Os 
> -Wall -gdwarf-2 -mmcu=atmega8535  -Wl,-u,vfprintf 
> -lprintf_min -Wl,-relax -Wl,-Map=sprink.map,--cref  -g 
> sprink.o cons.o 
> ds1307.o 1wire.o -o sprink.elf
> avr-gcc: Internal error: Segmentation fault: 11 (program ld)
> Please submit a full bug report.
> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> *** Error code 1
> 

Several things to try, in order:
- Get rid of -pipe
- Try without -fno-strict-aliasing
- Try without -Wl,-relax
- Try using binutils 2.19.1 (recently released). If you use 2.19, you might 
need a patch.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]