Gcc problem: internal compiler error: Illegal instruction

Hi,

I install gcc (gcc_4.8.3-1_ramips_24kec.ipk) in my device, but I cannot use it to build my C code.
The code is

#include<stdio.h>

int main()
{
    printf("test123\n");
    return 0;
}

and the error message is:

root@mylinkit:/tmp/run/mountd/mmcblk0p1# gcc test1.c -o test1
test1.c:1:0: internal compiler error: Illegal instruction
 #include<stdio.h>
 ^
mmap: Invalid argument
mmap: Invalid argument
mmap: Invalid argument
mmap: Invalid argument
mmap: Invalid argument
mmap: Invalid argument

I don't know what the problem is here.

I install gcc in the SD card of my device, not the ROM or RAM.

thanks

Space After #include ?

This package is from Openwrt 15 (CC)... Are you running CC on the router? Why not upgrade it?
Illigal instructions means you are not running the right architecture ... What is your router?

I'm using LinkIt Smart 7688, https://docs.labs.mediatek.com/resource/linkit-smart-7688/en/get-started/get-started-with-the-linkit-smart-7688-development-board

not the router...

no space.

sometimes gcc works, but most of the time gcc does not work.

I am not sure when I am lucky...

I add a micro SD card and use swap to establish additional virtual memory, then the issue is solved

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.