- 论坛徽章:
- 0
|
本帖最后由 zrgay 于 2011-10-31 14:23 编辑
- 第一步解压后configure的时候没出错。
- [root@localhost pbc-0.5.12]# CC=arm-linux-gcc ./configure -host=arm-linux --prefix=/usr/local/arm
- configure: WARNING: if you wanted to set the --build type, don't use --host.
- If a cross compiler is detected then cross compile mode will be used
- checking for a BSD-compatible install... /usr/bin/install -c
- checking whether build environment is sane... yes
- checking for arm-linux-strip... arm-linux-strip
- checking for a thread-safe mkdir -p... /bin/mkdir -p
- checking for gawk... gawk
- checking for suffix of object files... o
- checking whether we are using the GNU C compiler... yes
- checking whether arm-linux-gcc accepts -g... yes
- checking for unistd.h... yes
- checking for dlfcn.h... yes
- checking for objdir... .libs
- checking if arm-linux-gcc supports -fno-rtti -fno-exceptions... yes
- checking for arm-linux-gcc option to produce PIC... -fPIC -DPIC
- checking if arm-linux-gcc PIC flag -fPIC -DPIC works... yes
- checking whether arm-linux-gcc accepts -g... (cached) yes
- global build variables
- ...
- -----------------------------------------
- Tue Oct 11 13:56:18 CST 2011
- host info: arm-unknown-linux-gnu
- optimized build: no
- LDFLAGS:
- CPPFLAGS:
- CFLAGS: -Wall -W -Wfloat-equal -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wredundant-decls -Wendif-labels -Wshadow -pipe -ffast-math -U__STRICT_ANSI__ -std=gnu99 -g -O2
- -----------------------------------------
- 第二步我make,结果就出错了
- [root@localhost pbc-0.5.12]# make
- make all-recursive
- make[1]: 进入目录"root/pbc-0.5.12"
- Making all in .
- make[2]: 进入目录"root/pbc-0.5.12"
- /bin/sh ./libtool --tag=CC --mode=compile arm-linux-gcc -DHAVE_CONFIG_H -I. -Iinclude -Wall -W -Wfloat-equal -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wredundant-decls -Wendif-labels -Wshadow -pipe -ffast-math -U__STRICT_ANSI__ -std=gnu99 -g -O2 -MT libpbc_la-field.lo -MD -MP -MF .deps/libpbc_la-field.Tpo -c -o libpbc_la-field.lo `test -f 'arith/field.c' || echo './'`arith/field.c
- libtool: compile: arm-linux-gcc -DHAVE_CONFIG_H -I. -Iinclude -Wall -W -Wfloat-equal -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wredundant-decls -Wendif-labels -Wshadow -pipe -ffast-math -U__STRICT_ANSI__ -std=gnu99 -g -O2 -MT libpbc_la-field.lo -MD -MP -MF .deps/libpbc_la-field.Tpo -c arith/field.c -fPIC -DPIC -o .libs/libpbc_la-field.o
- cc1: unrecognized option `-Wendif-labels'
- make[2]: *** [libpbc_la-field.lo] 错误 1
- make[2]:离开目录"root/pbc-0.5.12"
- make[1]: *** [all-recursive] 错误 1
- make[1]: 离开目录"root/pbc-0.5.12"
- make: *** [all] 错误 2
复制代码 cc1: unrecognized option `-Wendif-labels'
这个错误是因为什么? |
|