google / certificate-transparency

Auditing for TLS certificates.
https://certificate.transparency.dev
Apache License 2.0
869 stars 283 forks source link

build error #1385

Open weijl6819 opened 7 years ago

weijl6819 commented 7 years ago

configure: exit 77 certificate-transparency/build/configure-ct: line 44: ./config.status: No such file or directory make: *** [_configure-ct] Error 1 Error: Command 'make -j 4 -f /home/weijunlin/certificatetransparency/ct/certificate-transparency/build.gclient _configure-ct' returned non-zero exit status 2 in /home/weijunlin/certificatetransparency/ct The error is in the gclient sync when I build. I don't know how to solve this problem.

pphaneuf commented 7 years ago

We'd need just a bit more of the output before that? It looks like the configure-ct script runs the configure script, but that one hits an error, and doesn't get to generate config.status like it's supposed to?

weijl6819 commented 7 years ago

[weijunlin@localhost certificate-transparency]$ cat config.log This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake.

It was created by certificate-transparency configure 0.9, which was generated by GNU Autoconf 2.69. Invocation command line was

$ ./configure GMOCK_DIR=/home/weijunlin/certificatetransparency/ct/googlemock PROTOC=/home/weijunlin/certificatetransparency/ct/install/bin/protoc PKG_CONFIG_PATH=/home/weijunlin/certificatetransparency/ct/install/lib/pkgconfig CPPFLAGS=-I/home/weijunlin/certificatetransparency/ct/install/include -I/home/weijunlin/certificatetransparency/ct/certificate-transparency/third_party/objecthash CXXFLAGS=-O2 -Wno-error=unused-variable -Wno-error=unused-local-typedefs -Wall -Werror -Qunused-arguments LDFLAGS=-L/home/weijunlin/certificatetransparency/ct/install/lib -L/home/weijunlin/certificatetransparency/ct/certificate-transparency/third_party/objecthash -Wl,-rpath=/home/weijunlin/certificatetransparency/ct/install/lib LIBS=-lunwind INSTALL_DIR=/home/weijunlin/certificatetransparency/ct/install

---------

Platform.

---------

hostname = localhost.localdomain uname -m = x86_64 uname -r = 3.10.0-514.el7.x86_64 uname -s = Linux uname -v = #1 SMP Tue Nov 22 16:42:41 UTC 2016

/usr/bin/uname -p = x86_64 /bin/uname -X = unknown

/bin/arch = x86_64 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown

PATH: /home/weijunlin/certificatetransparency/ct/install/bin PATH: /home/weijunlin/certificatetransparency/depot_tools PATH: /usr/local/bin PATH: /usr/bin PATH: /usr/local/sbin PATH: /usr/sbin PATH: /home/weijunlin/.local/bin PATH: /home/weijunlin/bin

-----------

Core tests.

-----------

configure:2574: checking for a BSD-compatible install configure:2642: result: /usr/bin/install -c configure:2653: checking whether build environment is sane configure:2708: result: yes configure:2859: checking for a thread-safe mkdir -p configure:2898: result: /usr/bin/mkdir -p configure:2905: checking for gawk configure:2921: found /usr/bin/gawk configure:2932: result: gawk configure:2943: checking whether make sets $(MAKE) configure:2965: result: yes configure:2994: checking whether make supports nested variables configure:3011: result: yes configure:3110: checking whether make supports nested variables configure:3127: result: yes configure:3163: checking for gawk configure:3190: result: gawk configure:3313: checking for C++ compiler version configure:3322: clang++ --version >&5 clang version 3.4.2 (tags/RELEASE_34/dot2-final) Target: x86_64-redhat-linux-gnu Thread model: posix configure:3333: $? = 0 configure:3322: clang++ -v >&5 clang version 3.4.2 (tags/RELEASE_34/dot2-final) Target: x86_64-redhat-linux-gnu Thread model: posix Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.2 Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.5 Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.2 Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.5 Selected GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.5 configure:3333: $? = 0 configure:3322: clang++ -V >&5 clang: error: argument to '-V' is missing (expected 1 value) clang: error: no input files configure:3333: $? = 1 configure:3322: clang++ -qversion >&5 clang: error: unknown argument: '-qversion' clang: error: no input files configure:3333: $? = 1 configure:3353: checking whether the C++ compiler works configure:3375: clang++ -O2 -Wno-error=unused-variable -Wno-error=unused-local-typedefs -Wall -Werror -Qunused-arguments -I/home/weijunlin/certificatetransparency/ct/install/include -I/home/weijunlin/certificatetransparency/ct/certificate-transparency/third_party/objecthash -L/home/weijunlin/certificatetransparency/ct/install/lib -L/home/weijunlin/certificatetransparency/ct/certificate-transparency/third_party/objecthash -Wl,-rpath=/home/weijunlin/certificatetransparency/ct/install/lib conftest.cpp -lunwind >&5 error: unknown warning option '-Werror=unused-local-typedefs' [-Werror,-Wunknown-warning-option] configure:3379: $? = 1 configure:3417: result: no configure: failed program was: / confdefs.h / #define PACKAGE_NAME "certificate-transparency" #define PACKAGE_TARNAME "certificate-transparency" #define PACKAGE_VERSION "0.9" #define PACKAGE_STRING "certificate-transparency 0.9" #define PACKAGE_BUGREPORT "certificate-transparency@googlegroups.com mailto:certificate-transparency@googlegroups.com" #define PACKAGE_URL "" #define PACKAGE "certificate-transparency" #define VERSION "0.9" / end confdefs.h. /
int
main ()
{
;
return 0;
}

configure:3422: error: in /home/weijunlin/certificatetransparency/ct/certificate-transparency': configure:3424: error: C++ compiler cannot create executables Seeconfig.log' for more details

----------------

Cache variables.

----------------

ac_cv_env_CCC_set= ac_cv_env_CCC_value= ac_cv_env_CC_set=set ac_cv_env_CC_value=clang ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value='-I/home/weijunlin/certificatetransparency/ct/install/include -I/home/weijunlin/certificatetransparency/ct/certificate-transparency/third_party/objecthash' ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_CXXCPP_set= ac_cv_env_CXXCPP_value= ac_cv_env_CXXFLAGS_set=set ac_cv_env_CXXFLAGS_value='-O2 -Wno-error=unused-variable -Wno-error=unused-local-typedefs -Wall -Werror -Qunused-arguments' ac_cv_env_CXX_set=set ac_cv_env_CXX_value=clang++ ac_cv_env_GMOCK_DIR_set=set ac_cv_env_GMOCK_DIR_value=/home/weijunlin/certificatetransparency/ct/googlemock ac_cv_env_GTEST_DIR_set= ac_cv_env_GTEST_DIR_value= ac_cv_env_INSTALL_DIR_set=set ac_cv_env_INSTALL_DIR_value=/home/weijunlin/certificatetransparency/ct/install ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value='-L/home/weijunlin/certificatetransparency/ct/install/lib -L/home/weijunlin/certificatetransparency/ct/certificate-transparency/third_party/objecthash -Wl,-rpath=/home/weijunlin/certificatetransparency/ct/install/lib' ac_cv_env_LIBS_set=set ac_cv_env_LIBS_value=-lunwind ac_cv_env_PKG_CONFIG_LIBDIR_set= ac_cv_env_PKG_CONFIG_LIBDIR_value= ac_cv_env_PKG_CONFIG_PATH_set=set ac_cv_env_PKG_CONFIG_PATH_value=/home/weijunlin/certificatetransparency/ct/install/lib/pkgconfig ac_cv_env_PKG_CONFIG_set= ac_cv_env_PKG_CONFIG_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_evhtp_CFLAGS_set= ac_cv_env_evhtp_CFLAGS_value= ac_cv_env_evhtp_LIBS_set= ac_cv_env_evhtp_LIBS_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_icu_CFLAGS_set= ac_cv_env_icu_CFLAGS_value= ac_cv_env_icu_LIBS_set= ac_cv_env_icu_LIBS_value= ac_cv_env_json_c_CFLAGS_set= ac_cv_env_json_c_CFLAGS_value= ac_cv_env_json_c_LIBS_set= ac_cv_env_json_c_LIBS_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_path_install='/usr/bin/install -c' ac_cv_path_mkdir=/usr/bin/mkdir ac_cv_prog_AWK=gawk ac_cv_prog_make_make_set=yes am_cv_make_support_nested_variables=yes

-----------------

Output variables.

-----------------

ACLOCAL='${SHELL} /home/weijunlin/certificatetransparency/ct/certificate-transparency/missing aclocal-1.13' AMDEPBACKSLASH='' AMDEP_FALSE='' AMDEP_TRUE='' AMTAR='$${TAR-tar}' AM_BACKSLASH='\' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' AM_DEFAULT_VERBOSITY='0' AM_V='$(V)' ANT='' AR='' AUTOCONF='${SHELL} /home/weijunlin/certificatetransparency/ct/certificate-transparency/missing autoconf' AUTOHEADER='${SHELL} /home/weijunlin/certificatetransparency/ct/certificate-transparency/missing autoheader' AUTOMAKE='${SHELL} /home/weijunlin/certificatetransparency/ct/certificate-transparency/missing automake-1.13' AWK='gawk' CC='clang' CCDEPMODE='' CFLAGS='' CPP='' CPPFLAGS='-I/home/weijunlin/certificatetransparency/ct/install/include -I/home/weijunlin/certificatetransparency/ct/certificate-transparency/third_party/objecthash' CXX='clang++' CXXCPP='' CXXDEPMODE='' CXXFLAGS='-O2 -Wno-error=unused-variable -Wno-error=unused-local-typedefs -Wall -Werror -Qunused-arguments' CYGPATH_W='echo' DEFS='' DEPDIR='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='' EXEEXT='' GMOCK_DIR='/home/weijunlin/certificatetransparency/ct/googlemock' GREP='' GTEST_DIR='/home/weijunlin/certificatetransparency/ct/googlemock/gtest' HAVE_ANT_FALSE='' HAVE_ANT_TRUE='' HAVE_CXX11='' HAVE_LDNS_FALSE='' HAVE_LDNS_TRUE='' HAVE_OBJECTHASH_FALSE='' HAVE_OBJECTHASH_TRUE='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_DIR='/home/weijunlin/certificatetransparency/ct/install' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' LDFLAGS='-L/home/weijunlin/certificatetransparency/ct/install/lib -L/home/weijunlin/certificatetransparency/ct/certificate-transparency/third_party/objecthash -Wl,-rpath=/home/weijunlin/certificatetransparency/ct/install/lib' LIBOBJS='' LIBS='-lunwind' LN_S='' LTLIBOBJS='' MAKEINFO='${SHELL} /home/weijunlin/certificatetransparency/ct/certificate-transparency/missing makeinfo' MKDIR_P='/usr/bin/mkdir -p' OBJEXT='' OPENSSL_IS_BORINGSSL_FALSE='' OPENSSL_IS_BORINGSSL_TRUE='' PACKAGE='certificate-transparency' PACKAGE_BUGREPORT='certificate-transparency@googlegroups.com mailto:PACKAGE_BUGREPORT='certificate-transparency@googlegroups.com' PACKAGE_NAME='certificate-transparency' PACKAGE_STRING='certificate-transparency 0.9' PACKAGE_TARNAME='certificate-transparency' PACKAGE_URL='' PACKAGE_VERSION='0.9' PATH_SEPARATOR=':' PKG_CONFIG='' PKG_CONFIG_LIBDIR='' PKG_CONFIG_PATH='/home/weijunlin/certificatetransparency/ct/install/lib/pkgconfig' PROTOC='/home/weijunlin/certificatetransparency/ct/install/bin/protoc' RANLIB='' SET_MAKE='' SHELL='/bin/sh' STRIP='' VERSION='0.9' ac_ct_AR='' ac_ct_CC='' ac_ct_CXX='' amEXEEXT_FALSE='' am__EXEEXT_TRUE='' amfastdepCC_FALSE='' amfastdepCC_TRUE='' am__fastdepCXX_FALSE='' amfastdepCXX_TRUE='' aminclude='' amisrc='' am__leading_dot='.' amnodep='' amquote='' amtar='$${TAR-tar} chof - "$$tardir"' amuntar='$${TAR-tar} xf -' bindir='${exec_prefix}/bin' build_alias='' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' evhtp_CFLAGS='' evhtp_LIBS='' exec_prefix='NONE' host_alias='' htmldir='${docdir}' icu_CFLAGS='' icu_LIBS='' includedir='${prefix}/include' infodir='${datarootdir}/info' install_sh='${SHELL} /home/weijunlin/certificatetransparency/ct/certificate-transparency/install-sh' json_c_CFLAGS='' json_c_LIBS='' leveldb_LIBS='' libdir='${exec_prefix}/lib' libevent_LIBS='' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' mkdir_p='$(MKDIR_P)' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='NONE' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias=''

-----------

confdefs.h.

-----------

/ confdefs.h /

define PACKAGE_NAME "certificate-transparency"

define PACKAGE_TARNAME "certificate-transparency"

define PACKAGE_VERSION "0.9"

define PACKAGE_STRING "certificate-transparency 0.9"

define PACKAGE_BUGREPORT "certificate-transparency@googlegroups.com mailto:certificate-transparency@googlegroups.com"

define PACKAGE_URL ""

define PACKAGE "certificate-transparency"

define VERSION "0.9"

configure: exit 77

This is the config.log. Can it be helpful?

在 2017年4月18日,下午7:12,Pierre Phaneuf <notifications@github.com mailto:notifications@github.com> 写道:

We'd need just a bit more of the output before that? It looks like the configure-ct script runs the configure script, but that one hits an error, and doesn't get to generate config.status like it's supposed to?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/google/certificate-transparency/issues/1385#issuecomment-294788022, or mute the thread https://github.com/notifications/unsubscribe-auth/AWHEJLCQHVr7fLtUZSumkUzz5xZuXKJxks5rxJqCgaJpZM4NAMPd.

pphaneuf commented 7 years ago

You could try removing the -Wno-error=unused-local-typedefs from here:

https://github.com/google/certificate-transparency/blob/master/build/configure-ct#L26

Try again with that change, and see if that works?

weijl6819 commented 7 years ago

Before I run : export CXX=clang++ CC=clang mkdir ct
cd ct gclient config --name="certificate-transparency" https://github.com/google/certificate-transparency.git gclient sync
make -C certificate-transparency check

I did build these dependency: cmake version 2.8.12.2 clang version 3.4.2 git version 1.8.3.1 tcl-8.5.13-8.el7.x86_64 already installed and latest version GNU shtool, version 2.0.8 (GNU libtool) 2.4.2 pkgconfig-0.27.1-4.el7.x86_64 already installed and latest version (GNU automake) 1.13.4 Python 2.7.5

Does this matter?

weijl6819 commented 7 years ago

Before I run :export CXX=clang++ CC=clang mkdir ct # or whatever directory you prefer cd ct gclient config --name="certificate-transparency" https://github.com/google/certificate-transparency.git gclient sync # retrieve and build dependencies

substitute gmake or gnumake below if that's what your platform calls it:

make -C certificate-transparency check # build the CT software & self-testI did build these dependency:cmake version 2.8.12.2clang version 3.4.2git version 1.8.3.1tcl-8.5.13-8.el7.x86_64 already installed and latest versionGNU shtool, version 2.0.8(GNU libtool) 2.4.2pkgconfig-0.27.1-4.el7.x86_64 already installed and latest version(GNU automake) 1.13.4Python 2.7.5Does this matter?———在 2017年4月18日,下午8:41,Pierre Phaneuf notifications@github.com 写道:You could try removing the -Wno-error=unused-local-typedefs from here:https://github.com/google/certificate-transparency/blob/master/build/configure-ct#L26Try again with that change, and see if that works?—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/google/certificate-transparency","title":"google/certificate-transparency","subtitle":"GitHub repository","main_image_url":"<a href="https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png" class="">https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"<a href="https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png" class="">https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"<a href="https://github.com/google/certificate-transparency" class="">https://github.com/google/certificate-transparency"}},"updates":{"snippets":[{"icon":"PERSON","message":"@pphaneuf in #1385: You could try removing the -Wno-error=unused-local-typedefs from here:\r\n\r\<a href="nhttps://github.com/google/certificate-transparency/blob/master/build/configure-ct#L26\r\n\r\nTry" class="">nhttps://github.com/google/certificate-transparency/blob/master/build/configure-ct#L26\r\n\r\nTry again with that change, and see if that works?"}],"action":{"name":"View Issue","url":"<a href="https://github.com/google/certificate-transparency/issues/1385#issuecomment-294824739" class="">https://github.com/google/certificate-transparency/issues/1385#issuecomment-294824739"}}}

weijl6819 commented 7 years ago

Before I run : export CXX=clang++ CC=clang mkdir ct # or whatever directory you prefer cd ct gclient config --name="certificate-transparency" https://github.com/google/certificate-transparency.git https://github.com/google/certificate-transparency.git gclient sync # retrieve and build dependencies

substitute gmake or gnumake below if that's what your platform calls it:

make -C certificate-transparency check # build the CT software & self-test I did build these dependency: cmake version 2.8.12.2 clang version 3.4.2 git version 1.8.3.1 tcl-8.5.13-8.el7.x86_64 already installed and latest version GNU shtool, version 2.0.8 (GNU libtool) 2.4.2 pkgconfig-0.27.1-4.el7.x86_64 already installed and latest version (GNU automake) 1.13.4 Python 2.7.5

Does this matter? ———

在 2017年4月18日,下午8:41,Pierre Phaneuf <notifications@github.com mailto:notifications@github.com> 写道:

You could try removing the -Wno-error=unused-local-typedefs from here:

https://github.com/google/certificate-transparency/blob/master/build/configure-ct#L26 https://github.com/google/certificate-transparency/blob/master/build/configure-ct#L26 Try again with that change, and see if that works?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/google/certificate-transparency/issues/1385#issuecomment-294824739, or mute the thread https://github.com/notifications/unsubscribe-auth/AWHEJJXk9-tWENSLTkGW9kmg9nxNOy86ks5rxK93gaJpZM4NAMPd.

pphaneuf commented 7 years ago

I think a newer version of Clang might fix the problem?

The error is because of a flag that we added is unknown, but that flag is to disable a warning/error that was added in a newer version of Clang. So the flag causing the error is not even needed for the version of Clang you have! (which is why I suggested editing the build/configure-ct file to remove the flag)

I don't use gclient much myself, I'll ask someone who does to chime in about how to best do this.

pphaneuf commented 7 years ago

We looked at this and it seems our "detection" of the compiler version is a bit simplistic, and only looks at the CXX variable!

So we think that if you changed the first command to be like this, and did the rest all the same, it should work:

export CXX=clang++-3.4 CC=clang-3.4
pphaneuf commented 7 years ago

Actually... We looked at the script again, and even the way you just said you did it, it should work correctly?

But reading the config.log, it says this:

ac_cv_env_CXXFLAGS_value='-O2 -Wno-error=unused-variable -Wno-error=unused-local-typedefs -Wall -Werror  -Qunused-arguments'

And that makes me think that you might have followed the instruction given here?

https://github.com/google/certificate-transparency#compiler-warningserrors

The ordering of the flags seems consistent with what would happen if you did this:

CXXFLAGS="-O2 -Wno-error=unused-variable -Wno-error=unused-local-typedefs" gclient sync

It's possible that some of this is "stuck" in your environment, for some reason? Maybe the env command could tell you?

daneric commented 6 years ago

I got the same issue: configure: exit 1 certificate-transparency/build/configure-ct: line 45: ./config.status: No such file or directory gnumake: *** [_configure-ct] Error 1 Error: Command 'gnumake -j 4 -f /Users/eric/ct/certificate-transparency/build.gclient _configure-ct' returned non-zero exit status 2 in /Users/eric/ct Hook 'gnumake -j 4 -f /Users/eric/ct/certificate-transparency/build.gclient _configure-ct' took 14.96 secs

RJPercival commented 6 years ago

@daneric: Could you provide the content of the config.log file please?