使错误为:无法识别的选项'-mcpu = ARM1176JZF-S“ [英] make error as: unrecognized option '-mcpu=arm1176jzf-s'
本文介绍了使错误为:无法识别的选项'-mcpu = ARM1176JZF-S“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图编译一些C上friendlyARM几天,现在没有任何运气跑,我想我接近,但得到这个错误:
凯文@凯文 - VirtualBox的:〜/桌面/ makef $化妆
臂无-Linux的gnueabi-GCC -c -o OBJ / main.o中main.c中-I./
如:无法识别的选项'-mcpu = ARM1176JZF-S
使:*** [OBJ / main.o中]错误1
有谁知道如何这是什么错误意味着,以及如何解决它?
步骤我曾尝试:
1
触摸*。*
使清洁
使
(错误为:无法识别的选项'-mcpu = ARM1176JZF-S)
2
触摸*。*
使清洁
让ARCH =手臂CROSS_COMPILE =臂无-Linux的gnueabi-L
(错误为:无法识别的选项'-mcpu = ARM1176JZF-S)
在Makefile:
IDIR = /
CC =臂无-Linux的gnueabi-GCC
CFLAGS = -I $(IDIR)ODIR = OBJ
LDIR = /LIBS = -lgd -lrt_DEPS = main.h Makefile文件
DEPS = $(patsubst%,$(IDIR)/%,$(_ DEPS))_OBJ = main.o中serial.o fb.o menu_main.o timer.o cmdin.o buzzer.o statemachine.o inout.o network.o text_file_input.o text_file_input_oven.o
OBJ = $(patsubst%,$(ODIR)/%,$(_ OBJ))$(ODIR)/%○:%.C $(DEPS)
$(CC)-c -o $ @ $< $(CFLAGS)主:$(OBJ)
$(CC)-o $ @ $ ^ $(CFLAGS)$(LIBS).PHONY:干净清洁:
RM -f $(ODIR)/ *。Ø*〜$核心(INCDIR)/ *〜
解决方案
这意味着 GCC
您已经安装了不理解的选项 -mcpu = ARM1176JZF-S
或者你在 GCC
的旧版本不接受该选项,或者你有一个版本 GCC
已经交叉编译的支持关闭。
I am trying to compile some C to run on a friendlyARM for days now without any luck, i think im close but getting this error:
kevin@kevin-VirtualBox:~/Desktop/makef$ make
arm-none-linux-gnueabi-gcc -c -o obj/main.o main.c -I./
as: unrecognized option '-mcpu=arm1176jzf-s'
make: *** [obj/main.o] Error 1
Does anyone know how to what this error means and how to fix it?
steps i have tried:
1
touch *.*
make clean
make
(error as: unrecognized option '-mcpu=arm1176jzf-s)
2
touch *.*
make clean
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-l
(error as: unrecognized option '-mcpu=arm1176jzf-s)
the Makefile :
IDIR =./
CC=arm-none-linux-gnueabi-gcc
CFLAGS=-I$(IDIR)
ODIR=obj
LDIR =./
LIBS=-lgd -lrt
_DEPS = main.h Makefile
DEPS = $(patsubst %,$(IDIR)/%,$(_DEPS))
_OBJ = main.o serial.o fb.o menu_main.o timer.o cmdin.o buzzer.o statemachine.o inout.o network.o text_file_input.o text_file_input_oven.o
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
$(ODIR)/%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
main: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
.PHONY: clean
clean:
rm -f $(ODIR)/*.o *~ core $(INCDIR)/*~
解决方案
It means the version of gcc
that you have installed does not understand the option -mcpu=arm1176jzf-s
Either you have an older version of gcc
which does not accept that option, or you have a version of gcc
that has cross compiling support turned off.
这篇关于使错误为:无法识别的选项'-mcpu = ARM1176JZF-S“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文