Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

msp430-gcc 4.9.1 fails to build program that builds with 4.6.3

$
0
0

I have a program of about 40 KB (I use FAT32 through FatFs, that takes a lot of memory) that I developed using msp430-gcc 4.6.3 for a MSP430F5529 (that has 128 KB Flash). 

 

I am trying to move it to msp430-gcc 4.9.1 (downloaded from TI) but am getting the following errors upon linking:

/opt/ti/gcc/bin/msp430-elf-gcc -I /opt/ti/gcc/include -mmcu=msp430f5529 -Os -g   -c -o main.o main.c
/opt/ti/gcc/bin/msp430-elf-gcc -I /opt/ti/gcc/include -mmcu=msp430f5529 -Os -g   -c -o ccsbcs.o ccsbcs.c
/opt/ti/gcc/bin/msp430-elf-gcc -I /opt/ti/gcc/include -mmcu=msp430f5529 -Os -g   -c -o delay.o delay.c
/opt/ti/gcc/bin/msp430-elf-gcc -I /opt/ti/gcc/include -mmcu=msp430f5529 -Os -g   -c -o fat32.o fat32.c
/opt/ti/gcc/bin/msp430-elf-gcc -I /opt/ti/gcc/include -mmcu=msp430f5529 -Os -g   -c -o lis3dh.o lis3dh.c
/opt/ti/gcc/bin/msp430-elf-gcc -I /opt/ti/gcc/include -mmcu=msp430f5529 -Os -g   -c -o mmc.o mmc.c
/opt/ti/gcc/bin/msp430-elf-gcc -I /opt/ti/gcc/include -mmcu=msp430f5529 -Os -g   -c -o nrf24l01p.o nrf24l01p.c
/opt/ti/gcc/bin/msp430-elf-gcc -I /opt/ti/gcc/include -mmcu=msp430f5529 -Os -g   -c -o pcf2123.o pcf2123.c
/opt/ti/gcc/bin/msp430-elf-gcc -I /opt/ti/gcc/include -mmcu=msp430f5529 -Os -g   -c -o port_int.o port_int.c
/opt/ti/gcc/bin/msp430-elf-gcc -I /opt/ti/gcc/include -mmcu=msp430f5529 -Os -g   -c -o spi.o spi.c
/opt/ti/gcc/bin/msp430-elf-gcc -I /opt/ti/gcc/include -mmcu=msp430f5529 -Os -g   -c -o spi2_small.o spi2_small.c
/opt/ti/gcc/bin/msp430-elf-gcc -I /opt/ti/gcc/include -mmcu=msp430f5529 -Os -g   -c -o tools.o tools.c
/opt/ti/gcc/bin/msp430-elf-gcc -I /opt/ti/gcc/include -mmcu=msp430f5529 -Os -g   -c -o uart.o uart.c
/opt/ti/gcc/bin/msp430-elf-gcc -I /opt/ti/gcc/include -mmcu=msp430f5529 -Os -g   -c -o ucs.o ucs.c
/opt/ti/gcc/bin/msp430-elf-gcc -I /opt/ti/gcc/include -mmcu=msp430f5529 -Os -g -L /opt/ti/gcc/include -T/usr/msp430/lib/ldscripts/msp430.x main.o ccsbcs.o delay.o fat32.o lis3dh.o mmc.o nrf24l01p.o pcf2123.o port_int.o spi.o spi2_small.o tools.o uart.o ucs.o -o main.elf
/opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/bin/ld: main.elf section `.text' will not fit in region `rom'
/opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/bin/ld: region `rom' overflowed by 25014 bytes
/opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/lib/crt0.o: In function `.Loc.113.1':
/opt/redhat/msp430-14r1-10/sources/tools/libgloss/msp430/crt0.S:36: undefined reference to `__init_array_start'
/opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/lib/crt0.o: In function `.Loc.114.1':
/opt/redhat/msp430-14r1-10/sources/tools/libgloss/msp430/crt0.S:36: undefined reference to `__init_array_end'
/opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/lib/crt0.o: In function `.Loc.121.1':
/opt/redhat/msp430-14r1-10/sources/tools/libgloss/msp430/crt0.S:36: undefined reference to `__preinit_array_start'
/opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/lib/crt0.o: In function `.Loc.122.1':
/opt/redhat/msp430-14r1-10/sources/tools/libgloss/msp430/crt0.S:36: undefined reference to `__preinit_array_end'
/opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/lib/crt0.o: In function `.Loc.129.1':
/opt/redhat/msp430-14r1-10/sources/tools/libgloss/msp430/crt0.S:36: undefined reference to `__fini_array_start'
/opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/lib/crt0.o: In function `.Loc.130.1':
/opt/redhat/msp430-14r1-10/sources/tools/libgloss/msp430/crt0.S:36: undefined reference to `__fini_array_end'
/opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/crtend.o:(.init+0x2): relocation truncated to fit: R_MSP430X_ABS16 against `__do_global_ctors_aux'
main.o: In function `sd_card_handler':
/mnt/dados/Pegaso/src_5529_newgcc/main.c:36:(.text+0xc): relocation truncated to fit: R_MSP430X_ABS16 against `.rodata'
/mnt/dados/Pegaso/src_5529_newgcc/main.c:36:(.text+0x16): relocation truncated to fit: R_MSP430X_ABS16 against `.rodata'
/mnt/dados/Pegaso/src_5529_newgcc/main.c:36:(.text+0x3a): relocation truncated to fit: R_MSP430X_ABS16 against `.rodata'
/mnt/dados/Pegaso/src_5529_newgcc/main.c:36:(.text+0x4c): relocation truncated to fit: R_MSP430X_ABS16 against `.rodata'
/mnt/dados/Pegaso/src_5529_newgcc/main.c:36:(.text+0x64): relocation truncated to fit: R_MSP430X_ABS16 against `.rodata'
/mnt/dados/Pegaso/src_5529_newgcc/main.c:36:(.text+0x72): relocation truncated to fit: R_MSP430X_ABS16 against `.rodata'
/mnt/dados/Pegaso/src_5529_newgcc/main.c:36:(.text+0x94): relocation truncated to fit: R_MSP430X_ABS16 against `.rodata'
/mnt/dados/Pegaso/src_5529_newgcc/main.c:36:(.text+0xa0): relocation truncated to fit: R_MSP430X_ABS16 against `.rodata'
/mnt/dados/Pegaso/src_5529_newgcc/main.c:36:(.text+0xa6): relocation truncated to fit: R_MSP430X_ABS16 against `.rodata'
/mnt/dados/Pegaso/src_5529_newgcc/main.c:36:(.text+0xb6): additional relocation overflows omitted from the output
/opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/lib/libcrt.a(crt_bss.o): In function `.Loc.50.1':
/opt/redhat/msp430-14r1-10/sources/tools/libgloss/msp430/crt0.S:50: undefined reference to `__bssstart'
/opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/lib/libcrt.a(crt_bss.o): In function `.Loc.52.1':
/opt/redhat/msp430-14r1-10/sources/tools/libgloss/msp430/crt0.S:50: undefined reference to `__bsssize'
/opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/lib/libcrt.a(crt_movedata.o): In function `.Loc.65.1':
/opt/redhat/msp430-14r1-10/sources/tools/libgloss/msp430/crt0.S:65: undefined reference to `__datastart'
/opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/lib/libcrt.a(crt_movedata.o): In function `.Loc.66.1':
/opt/redhat/msp430-14r1-10/sources/tools/libgloss/msp430/crt0.S:65: undefined reference to `__romdatastart'
/opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/lib/libcrt.a(crt_movedata.o): In function `.Loc.72.1':
/opt/redhat/msp430-14r1-10/sources/tools/libgloss/msp430/crt0.S:65: undefined reference to `__romdatacopysize'
/opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/lib/libnosys.a(sbrk.o):(.data+0x0): undefined reference to `end'
collect2: error: ld returned 1 exit status
makefile.new:17: recipe for target 'all' failed
What's wrong here?

Viewing all articles
Browse latest Browse all 2077

Trending Articles