免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3377 | 回复: 0
打印 上一主题 下一主题

交叉编译 make出错 -Wendif-labels [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-10-31 14:21 |只看该作者 |倒序浏览
本帖最后由 zrgay 于 2011-10-31 14:23 编辑
  1. 第一步解压后configure的时候没出错。
  2. [root@localhost pbc-0.5.12]# CC=arm-linux-gcc ./configure -host=arm-linux --prefix=/usr/local/arm
  3. configure: WARNING: if you wanted to set the --build type, don't use --host.
  4.   If a cross compiler is detected then cross compile mode will be used
  5. checking for a BSD-compatible install... /usr/bin/install -c
  6. checking whether build environment is sane... yes
  7. checking for arm-linux-strip... arm-linux-strip
  8. checking for a thread-safe mkdir -p... /bin/mkdir -p
  9. checking for gawk... gawk
  10. checking for suffix of object files... o
  11. checking whether we are using the GNU C compiler... yes
  12. checking whether arm-linux-gcc accepts -g... yes
  13. checking for unistd.h... yes
  14. checking for dlfcn.h... yes
  15. checking for objdir... .libs
  16. checking if arm-linux-gcc supports -fno-rtti -fno-exceptions... yes
  17. checking for arm-linux-gcc option to produce PIC... -fPIC -DPIC
  18. checking if arm-linux-gcc PIC flag -fPIC -DPIC works... yes
  19. checking whether arm-linux-gcc accepts -g... (cached) yes
  20. global build variables
  21. ...
  22. -----------------------------------------
  23. Tue Oct 11 13:56:18 CST 2011
  24. host info: arm-unknown-linux-gnu
  25. optimized build: no
  26. LDFLAGS:   
  27. CPPFLAGS:   
  28. 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
  29. -----------------------------------------
  30. 第二步我make,结果就出错了
  31. [root@localhost pbc-0.5.12]# make
  32. make all-recursive
  33. make[1]: 进入目录"root/pbc-0.5.12"
  34. Making all in .
  35. make[2]: 进入目录"root/pbc-0.5.12"
  36. /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
  37. 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
  38. cc1: unrecognized option `-Wendif-labels'
  39. make[2]: *** [libpbc_la-field.lo] 错误 1
  40. make[2]:离开目录"root/pbc-0.5.12"
  41. make[1]: *** [all-recursive] 错误 1
  42. make[1]: 离开目录"root/pbc-0.5.12"
  43. make: *** [all] 错误 2
复制代码
cc1: unrecognized option `-Wendif-labels'
这个错误是因为什么?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP