sammielove45 / propgcc

Automatically exported from code.google.com/p/propgcc
1 stars 1 forks source link

__enable_spi_locking_ret not defined #65

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Using update from code.google.com  from this morning

Try compiling/linking the "Console and File system driver initialization" 
listed in the documentation at
https://sites.google.com/site/propellergcc/documentation/libraries#TOC-Stdio-Dev
ices-Library

It fails to link with undefined reference to __enable_spi_locking_ret.  It 
looks like it need to be defined
as global in crt0_xmm.s

propeller-elf-gcc -Wall -I../include -mno-fcache -Os -mxmmc -Wall -I../include 
-mno-fcache -Os -mxmmc  -c -o file.o file.c
file.c:25:6: warning: return type of 'main' is not 'int' [-Wmain]
propeller-elf-gcc -o fopentest2 file.o   -mxmmc
/opt/parallax/lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/lib/xmmc/lib
c.a(file_io.o): In function `_dfs_use_lock':
(.text+0x14): undefined reference to `__enable_spi_locking_ret'
collect2: ld returned 1 exit status
make: *** [fopentest2] Error 1

Likewise, compilation under lmm fails with both `__enable_spi_locking_ret' and 
`__enable_spi_locking'
being undefined. Maybe null definitions need to be made for the other crt0s.

Original issue reported on code.google.com by Michael....@gmail.com on 23 Jan 2014 at 6:11