Fatfs generates internal compiler error

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Guyzz

 

I have been toying a bit with fatfs , but it generates an internal compiler error on both the Atmel 3.4.4 and avr-gcc 4.9.1

 

Atmel 3.4.4

 

avr-gcc -v
Using built-in specs.
COLLECT_GCC=avr-gcc
COLLECT_LTO_WRAPPER=/usr/local/atmel-3.4.4/bin/../libexec/gcc/avr/4.8.1/lto-wrapper
Target: avr
Configured with: /home/cfo/1-Build-Avr-GCC/Atmel-3.4.4/builddir/src/gcc/configure LDFLAGS=-L/usr/local/avr/lib CPPFLAGS= --target=avr --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr/local/avr --libdir=/usr/local/avr/lib --enable-languages=c,c++ --with-dwarf2 --enable-doc --disable-shared --disable-libada --disable-libssp --disable-nls --with-avrlibc=yes --with-mpfr=/usr/local/avr --with-gmp=/usr/local/avr --with-mpc=/usr/local/avr --enable-fixed-point --with-pkgversion=AVR_8_bit_GNU_Toolchain_3.4.4-Bingo-_201406211801 --with-bugurl=http://www.atmel.com
Thread model: single
gcc version 4.8.1 (AVR_8_bit_GNU_Toolchain_3.4.4-Bingo-_201406211801)

make

-------- begin --------
avr-gcc (AVR_8_bit_GNU_Toolchain_3.4.4-Bingo-_201406211801) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiling: main.c
avr-gcc -c -mmcu=atmega64 -I. -gdwarf-2 -DF_CPU=14760300UL -DMEDIA=\"MMC\"  -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -save-temps -Wall -Wstrict-prototypes  -Wa,-adhlns=main.lst  -std=gnu99 -MD -MP -MF .dep/main.o.d main.c -o main.o
main.c: In function 'main':
main.c:699:1: internal compiler error: in push_reload, at reload.c:1360
 }
 ^
0x6a1508 push_reload(rtx_def*, rtx_def*, rtx_def**, rtx_def**, reg_class, machine_mode, machine_mode, int, int, int, reload_type)
    /home/cfo/1-Build-Avr-GCC/Atmel-3.4.4/builddir/src/gcc/gcc/reload.c:1359
0x6a0dfe push_reload(rtx_def*, rtx_def*, rtx_def**, rtx_def**, reg_class, machine_mode, machine_mode, int, int, int, reload_type)
    /home/cfo/1-Build-Avr-GCC/Atmel-3.4.4/builddir/src/gcc/gcc/reload.c:1164
0x6a7106 find_reloads(rtx_def*, int, int, int, short*)
    /home/cfo/1-Build-Avr-GCC/Atmel-3.4.4/builddir/src/gcc/gcc/reload.c:4099
0x6b4ac6 calculate_needs_all_insns
    /home/cfo/1-Build-Avr-GCC/Atmel-3.4.4/builddir/src/gcc/gcc/reload1.c:1520
0x6b4ac6 reload(rtx_def*, int)
    /home/cfo/1-Build-Avr-GCC/Atmel-3.4.4/builddir/src/gcc/gcc/reload1.c:941
0x5f9eab do_reload
    /home/cfo/1-Build-Avr-GCC/Atmel-3.4.4/builddir/src/gcc/gcc/ira.c:4631
0x5f9eab rest_of_handle_reload
    /home/cfo/1-Build-Avr-GCC/Atmel-3.4.4/builddir/src/gcc/gcc/ira.c:4731
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://www.atmel.com> for instructions.
make: *** [main.o] Error 1

 

 

And avr-gcc 4.9.1

 

avr-gcc -v
Using built-in specs.
COLLECT_GCC=avr-gcc
COLLECT_LTO_WRAPPER=/usr/local/avr-gcc-4.9.1-binutils-2.24-libc-1.8.1-gdb-7.8-dude-6.1-avarice-2.13/bin/../libexec/gcc/avr/4.9.1/lto-wrapper
Target: avr
Configured with: ../../source/gcc-4.9.1/configure -v --target=avr --disable-nls --prefix=/usr/local/avr --with-gnu-ld --with-gnu-as --enable-languages=c,c++ --disable-libssp --with-dwarf2 --with-gmp-include=/usr/local/avr/source/gcc-4.9.1/gmp
Thread model: single
gcc version 4.9.1 (GCC)

 

make

-------- begin --------
avr-gcc (GCC) 4.9.1
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiling: main.c
avr-gcc -c -mmcu=atmega64 -I. -gdwarf-2 -DF_CPU=14760300UL -DMEDIA=\"MMC\"  -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -save-temps -Wall -Wstrict-prototypes  -Wa,-adhlns=main.lst  -std=gnu99 -MD -MP -MF .dep/main.o.d main.c -o main.o
main.c: In function 'main':
main.c:699:1: internal compiler error: in push_reload, at reload.c:1360
 }
 ^
0x7ac358 push_reload(rtx_def*, rtx_def*, rtx_def**, rtx_def**, reg_class, machine_mode, machine_mode, int, int, int, reload_type)
    ../../../source/gcc-4.9.1/gcc/reload.c:1359
0x7abc4e push_reload(rtx_def*, rtx_def*, rtx_def**, rtx_def**, reg_class, machine_mode, machine_mode, int, int, int, reload_type)
    ../../../source/gcc-4.9.1/gcc/reload.c:1164
0x7b22b6 find_reloads(rtx_def*, int, int, int, short*)
    ../../../source/gcc-4.9.1/gcc/reload.c:4102
0x7bfc8e calculate_needs_all_insns
    ../../../source/gcc-4.9.1/gcc/reload1.c:1503
0x7bfc8e reload(rtx_def*, int)
    ../../../source/gcc-4.9.1/gcc/reload1.c:943
0x6e8000 do_reload
    ../../../source/gcc-4.9.1/gcc/ira.c:5469
0x6e8000 rest_of_handle_reload
    ../../../source/gcc-4.9.1/gcc/ira.c:5598
0x6e8000 execute
    ../../../source/gcc-4.9.1/gcc/ira.c:5627
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [main.o] Error 1

 

 

 

My old 4.5.1 (homemade) works ok

 

 

As all my toolchains are homemade , would anyone confirm my experience ?

 

Just unzip the zipfile , cd to unzip dir  , and do a make

 

/Bingo

Attachment(s): 

Last Edited: Mon. Sep 22, 2014 - 12:04 PM