小事儿儿 2016-06-14 08:30 采纳率: 0%
浏览 9863

Ubuntu 16 64位安装gcc4.4.0 make失败,求大神解救

../.././gcc/gimple.h:67:54: warning: ISO C does not support ‘__FUNCTION__’ predefined identifier [-Wpedantic]
gimple_check_failed (__gs, FILE, LINE, FUNCTION, \
^
../.././gcc/gimple.h:4280:3: note: in expansion of macro ‘GIMPLE_CHECK’
GIMPLE_CHECK (gs, GIMPLE_PREDICT);
^
../.././gcc/gimple.h:68:17: warning: enum conversion when passing argument 6 of ‘gimple_check_failed’ is invalid in C++ -Wc++-compat, 0); \
^
../.././gcc/gimple.h:4280:3: note: in expansion of macro ‘GIMPLE_CHECK’
GIMPLE_CHECK (gs, GIMPLE_PREDICT);
^
../.././gcc/gimple.h:59:13: note: expected ‘enum tree_code’ but argument is of type ‘int’
extern void gimple_check_failed (const_gimple, const char , int, \
^
../.././gcc/toplev.c: At top level:
../.././gcc/toplev.c:536:1: error: redefinition of ‘floor_log2’
floor_log2 (unsigned HOST_WIDE_INT x)
^
In file included from ../.././gcc/toplev.c:58:0:
../.././gcc/toplev.h:190:1: note: previous definition of ‘floor_log2’ was here
floor_log2 (unsigned HOST_WIDE_INT x)
^
../.././gcc/toplev.c:571:1: error: redefinition of ‘exact_log2’
exact_log2 (unsigned HOST_WIDE_INT x)
^
In file included from ../.././gcc/toplev.c:58:0:
../.././gcc/toplev.h:196:1: note: previous definition of ‘exact_log2’ was here
exact_log2 (unsigned HOST_WIDE_INT x)
^
../.././gcc/toplev.c: In function ‘print_to_asm_out_file’:
../.././gcc/toplev.c:1185:7: warning: format not a string literal and no format arguments [-Wformat-security]
fprintf (asm_out_file, text);
^
../.././gcc/toplev.c: In function ‘print_to_stderr’:
../.././gcc/toplev.c:1214:7: warning: format not a string literal and no format arguments [-Wformat-security]
fprintf (stderr, text);
^
Makefile:2470: recipe for target 'toplev.o' failed
make[3]: *
* [toplev.o] Error 1
make[3]: Leaving directory '/home/zsj/下载/related/gcc-4.4.0/host-x86_64-unknown-linux-gnu/gcc'
Makefile:5144: recipe for target 'all-stage1-gcc' failed
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory '/home/zsj/下载/related/gcc-4.4.0'
Makefile:19883: recipe for target 'stage1-bubble' failed
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory '/home/zsj/下载/related/gcc-4.4.0'
Makefile:741: recipe for target 'all' failed
make: *** [all] Error 2

  • 写回答

3条回答 默认 最新

  • oyljerry 2016-06-14 08:40
    关注

    你Ubuntu16自带的GCC版本应该起码gcc5了吧,你再编译gcc4.4的源码可能有一些语法警告错误。

    评论

报告相同问题?

悬赏问题

  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示