Forum Discussion
Altera_Forum
Honored Contributor
9 years agoHello,
after almost 12 years I've got a similar problem!! I am using Quartus 14.1sp1 and a NIOS II gen2. I get the following error while trying to compile my application (working in Quartus 7.1, NIOS II classic): obj/default/lpc_lib.o: in function `lsp_to_freq':lpc_lib.c:649: warning: unable to reach (null) (at 0x800476b8) from the global pointer (at 0x8003f5d8) because the offset (32992) is out of the allowed range, -32678 to 32767.
collect2: error: ld returned 1 exit status
make: *** [rio_audio_codec.elf] error 1 I tried to define all the extern variables with the "[]" at the end (as suggested above), but the problem is still present. I tried also to use the -G0 flag in the application, but the problem was not solved. Should I also specify the same flag for the BSP ? If so, how? Anyway I'd like to solve the problem definetely (without using the -G0), also because I need to reach some performance. Any hint is more than appreciated, thanks on advance