请教protoc-plugin编译失败

30 views
Skip to first unread message

Cai Cyouji

unread,
Jan 17, 2015, 11:00:17 PM1/17/15
to tdw-...@googlegroups.com
Hi amutu,各位
    大家好!我在centos6.4 64位linux下编译tdw出现如下错误:
protoc-plugin:
     [echo] Building protoc-plugin ...
     [exec] checking for a BSD-compatible install... /usr/bin/install -c
     [exec] checking whether build environment is sane... yes
     [exec] checking for a thread-safe mkdir -p... /bin/mkdir -p
     [exec] checking for gawk... gawk
     [exec] checking whether make sets $(MAKE)... yes
     [exec] checking for g++... g++
     [exec] checking for C++ compiler default output file name... 
     [exec] configure: error: in `/app/soft/qe/protoc-plugin':
     [exec] configure: error: C++ compiler cannot create executables
     [exec] See `config.log' for more details.

BUILD FAILED
/app/soft/qe/build.xml:188: exec returned: 77

Total time: 11 seconds

protoc-plugin下的config.log文件中的错误内容:

Configured with: ../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-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC) 
configure:2490: $? = 0
configure:2497: g++ -V >&5
g++: '-V' option must have argument
configure:2501: $? = 1
configure:2524: checking for C++ compiler default output file name
configure:2546: g++   -static conftest.cpp  >&5
/usr/bin/ld: cannot find -lm
collect2: ld returned 1 exit status
configure:2550: $? = 1
configure:2588: result: 
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 "protobuf-gen-tdw"
| #define VERSION "1.0"
| /* end confdefs.h.  */
| int
| main ()
| {
|   ;
|   return 0;
| }
configure:2594: error: in `/app/soft/qe/protoc-plugin':
configure:2597: error: C++ compiler cannot create executables
See `config.log' for more details.

经过检查centos6.4中已经安装如下组件:
 automake
 'Development Tools'

麻烦帮忙看看,具体是哪里出错了呢?谢谢!
    
    

Cai Cyouji

unread,
Jan 18, 2015, 4:48:29 AM1/18/15
to tdw-...@googlegroups.com

刚刚编译过去了:
需要安装:
yum install glibc*

谢谢大家,后续有问题再请教。

在 2015年1月18日星期日 UTC+8下午12:00:17,Cai Cyouji写道:
Reply all
Reply to author
Forward
0 new messages