Linux 交叉编译出错,用的是arm-linux-gcc 简单的Hello world 程序
[复制链接]
程序hello.c: #include <stdio.h> main() { printf("Hello world!\n"); }
交叉编译环境已配置好,(路径:/up-Star2410/arm-linux-tools/gcc-3.4.6-glibc-2.3.6/arm-linux/bin/arm-linux-gcc) 编译: arm-linux-gcc -c hello.c
后面提示如下错误:
arm-linux-gcc: Internal error: Bus error (program ccl) Please submit a full bug report. See <URL:http://gcc.gnu.org/bugs.html> for instructions.
然后用老师给写好的Makefile来编译: Makefile内用如下:
CC=arm-linux-gcc EXEC=hello OBJS=hello.o CFLAGS+= LDFLAGS+=-static all: $(EXEC) $(EXEC): $(OBJS) $(CC) $(LDFLAGS) -o $@ $(OBJS) clean: -rm -f $(EXEC) *.elf *.gdb *.o
错误提示:
arm-linux-gcc -c -o hello.o hello.c arm-linux-gcc: Internal error: Bus error (program ccl) Please submit a full bug report. See <URL:http://gcc.gnu.org/bugs.html> for instructions. make: ***[hello.o] Error 1`
求助啊。
|