在suse10下构建gcc4.9,未声明某些变量

时间:2014-12-22 02:12:21

标签: suse

我使用以下步骤构建gcc4.9

  1. wget ftp://mirrors.kernel.org/gnu/gcc/gcc-4.9.0/gcc-4.9.0.tar.gz
  2. tar -zxvf gcc-4.9.0.tar.gz
  3. cd gcc-4.9.0
  4. ./的contrib / download_prerequisites
  5. cd ..
  6. mkdir gcc-build-4.9.0
  7. cd gcc-build-4.9.0
  8. ../ gcc-4.9.0 / configure --enable-checking = release --enable-languages = c,c ++ --disable-multilib
  9. make -j4
  10. 显示错误消息:

    ../../../../gcc-4.9.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:232:27: error: ‘PTRACE_GETSIGINFO’ was not declared in this scope
       int ptrace_getsiginfo = PTRACE_GETSIGINFO;
                               ^
    ../../../../gcc-4.9.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:233:27: error: ‘PTRACE_SETSIGINFO’ was not declared in this scope
       int ptrace_setsiginfo = PTRACE_SETSIGINFO;
                               ^
    ../../../../gcc-4.9.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:390:30: error: ‘EVIOCGREP’ was not declared in this scope
       unsigned IOCTL_EVIOCGREP = EVIOCGREP;
                                  ^
    ../../../../gcc-4.9.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:399:30: error: ‘EVIOCSREP’ was not declared in this scope
       unsigned IOCTL_EVIOCSREP = EVIOCSREP;
                                  ^
    ../../../../gcc-4.9.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:682:36: error: ‘FS_IOC_GETFLAGS’ was not declared in this scope
       unsigned IOCTL_FS_IOC_GETFLAGS = FS_IOC_GETFLAGS;
                                        ^
    ../../../../gcc-4.9.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:683:38: error: ‘FS_IOC_GETVERSION’ was not declared in this scope
       unsigned IOCTL_FS_IOC_GETVERSION = FS_IOC_GETVERSION;
                                          ^
    ../../../../gcc-4.9.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:684:36: error: ‘FS_IOC_SETFLAGS’ was not declared in this scope
       unsigned IOCTL_FS_IOC_SETFLAGS = FS_IOC_SETFLAGS;
                                        ^
    ../../../../gcc-4.9.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:685:38: error: ‘FS_IOC_SETVERSION’ was not declared in this scope
       unsigned IOCTL_FS_IOC_SETVERSION = FS_IOC_SETVERSION;
                                          ^
    make[4]: *** [sanitizer_platform_limits_posix.lo] Error 1
    

    我尝试重建,但它再次显示错误。

0 个答案:

没有答案