Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

build error #1385

Open
weijl6819 opened this issue Apr 18, 2017 · 12 comments
Open

build error #1385

weijl6819 opened this issue Apr 18, 2017 · 12 comments
Assignees

Comments

@weijl6819
Copy link

No description provided.

@weijl6819
Copy link
Author

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
Copy link
Contributor

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?

@pphaneuf pphaneuf self-assigned this Apr 18, 2017
@weijl6819
Copy link
Author

weijl6819 commented Apr 18, 2017 via email

@pphaneuf
Copy link
Contributor

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
Copy link
Author

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
Copy link
Author

weijl6819 commented Apr 19, 2017 via email

@weijl6819
Copy link
Author

weijl6819 commented Apr 19, 2017 via email

@pphaneuf
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link

daneric commented Apr 8, 2018

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
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants