Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20705 Discussions

undefined symbol 'Infinity' in operation setting 'nasys_icache_line_size_log2

Altera_Forum
Honored Contributor II
1,111 Views

In Nios II SDK Shell 5.1, I compile the hello_world.c with the command 'nios-build hello_world.c' issued with 'nios-build error: last system call returned256', then the fault of the nios2_crt0.s was not compiled successfully,so I  

make the whole folder'/cpu_0_sdk/lib',the error occuerd like this: 

nios2_crt0.s:184:Error: undefined symbol 'Infinity' in operation setting 'nasys_icache_line_size_log2' nios2_crt0.s:184:Error: undefined symbol 'Infinity' in operation setting 'nasys_dcache_line_size_log2' make:*** Error 1  

Could anyone give some clue? THANKS!
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
366 Views

The value of the 'nasys_dcache_line_size_log2' & 'nasys_icache_line_size_log2' with the same '-infinity' which maybe the latest version of nios II's default setting is different from old one, are in the file '..\A19_CFI_FLASH_RDWR\cpu_0_sdk\inc\excalibur.s'. 

It must be set to the specific number instead of the '-infinity'!
0 Kudos
Reply