先是Development Tools安装时找不到安装包,后编译QE Proto-plugin时失败

133 views
Skip to first unread message

Richard Chen

unread,
Dec 8, 2014, 12:40:42 AM12/8/14
to tdw-...@googlegroups.com
系统CENTOS 7,安装 Development Tools 时提示如下:
 sudo yum groupinstall "Development Tools"
[sudo] password for richard: 
已加载插件:fastestmirror, langpacks, product-id, subscription-manager
This system is not registered with Subscription Management. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
 * extras: centos.ustc.edu.cn
 * updates: centos.ustc.edu.cn
Maybe run: yum groups mark install (see man yum)
指定组中没有可安装或升级的软件包

编译QE时 报错如下:

protoc-plugin:
     [echo] Building protoc-plugin ...
     [exec] aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
     [exec] automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
     [exec] configure.in:6: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.  For more info, see:
     [exec] automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
     [exec] checking for a BSD-compatible install... /usr/bin/install -c
     [exec] checking whether build environment is sane... yes
     [exec] configure: error: in `/home/richard/qe/protoc-plugin':
     [exec] checking for a thread-safe mkdir -p... /usr/bin/mkdir -pconfigure: error: C++ compiler cannot create executables
     [exec] 
     [exec] checking for gawk... gawk
     [exec] See `config.log' for more detailschecking whether make sets $(MAKE)... yes
     [exec] 
     [exec] checking whether make supports nested variables... yes
     [exec] checking for g++... g++
     [exec] checking whether the C++ compiler works... no

BUILD FAILED
/home/richard/qe/build.xml:179: exec returned: 77

Total time: 9 seconds

protoc-plugin的 config.log如下:
gcc version 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC)
configure:2940: $? = 0
configure:2929: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:2940: $? = 4
configure:2929: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'
g++: fatal error: no input files
compilation terminated.
configure:2940: $? = 4
configure:2960: checking whether the C++ compiler works
configure:2982: g++   -static conftest.cpp  >&5
/usr/bin/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status
configure:2986: $? = 1
configure:3024: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "protobuf-gen-tdw"
| #define PACKAGE_TARNAME "protobuf-gen-tdw"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "protobuf-gen-tdw 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "protobuf-gen-tdw"
| #define VERSION "1.0"
| /* end confdefs.h.  */



请问Development Tools 都有什么软件?   QE编译时为什么报错?我的GCC  C++  g++ 都装好了。

zhao...@gmail.com

unread,
Dec 8, 2014, 1:19:28 AM12/8/14
to tdw-...@googlegroups.com
     [exec] checking whether the C++ compiler works... no

/usr/bin/ld: cannot find -lstdc++

这两个都表示你的系统c++编译器不能正常工作。


在 2014年12月8日星期一UTC+8下午1时40分42秒,Richard Chen写道:

Richard Chen

unread,
Dec 8, 2014, 2:24:33 AM12/8/14
to tdw-...@googlegroups.com
devlopment tools  gcc  g++ 都已经安装好了,QE还是编译不过:
gcc -v
使用内建 specs。
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/lto-wrapper
目标:x86_64-redhat-linux
配置为:../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.2-20140120/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.2-20140120/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
线程模型:posix
gcc 版本 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC) 


g++ -v
使用内建 specs。
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/lto-wrapper
目标:x86_64-redhat-linux
配置为:../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.2-20140120/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.2-20140120/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
线程模型:posix
gcc 版本 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC) 

zhao...@gmail.com

unread,
Dec 8, 2014, 2:40:50 AM12/8/14
to tdw-...@googlegroups.com
看到你用的是CentOS 7,这个版本的TDW还不支持。我么这里只测试过CentOS 6。

在 2014年12月8日星期一UTC+8下午3时24分33秒,Richard Chen写道:
Reply all
Reply to author
Forward
0 new messages