Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make check fails on Mac OS X #51

Closed
mvuksano opened this issue Oct 15, 2014 · 7 comments
Closed

Make check fails on Mac OS X #51

mvuksano opened this issue Oct 15, 2014 · 7 comments

Comments

@mvuksano
Copy link

I've tried following the instructions on installing protoc but there is a failure during make check step. The error I get is:

Making lib/libgtest.a lib/libgtest_main.a in gtest
depbase=`echo src/gtest-all.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
    /bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I./build-aux  -I. -I./include  -D_THREAD_SAFE  -DGTEST_HAS_PTHREAD=1 -g -DNDEBUG -MT src/gtest-all.lo -MD -MP -MF $depbase.Tpo -c -o src/gtest-all.lo src/gtest-all.cc &&\
    mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./build-aux -I. -I./include -D_THREAD_SAFE -DGTEST_HAS_PTHREAD=1 -g -DNDEBUG -MT src/gtest-all.lo -MD -MP -MF src/.deps/gtest-all.Tpo -c src/gtest-all.cc  -fno-common -DPIC -o src/.libs/gtest-all.o
In file included from src/gtest-all.cc:39:
In file included from ./include/gtest/gtest.h:57:
In file included from ./include/gtest/internal/gtest-internal.h:40:
./include/gtest/internal/gtest-port.h:449:10: fatal error: 'tr1/tuple' file not found
#include <tr1/tuple>  // NOLINT
         ^
1 error generated.
make[3]: *** [src/gtest-all.lo] Error 1
make[2]: *** [check-local] Error 2
make[1]: *** [check-am] Error 2
make: *** [check-recursive] Error 1

Is there any workaround for this?

@xfxyjwf
Copy link
Contributor

xfxyjwf commented Oct 15, 2014

What's the gtest version you are using? You can try to replace the gtest directory with the gtest that comes from our release packages (2.6.0 or 2.5.0).

@ari62
Copy link

ari62 commented Oct 20, 2014

xfxyjwf, running make check on the 2.6.0 release package gives the same error:

Making check in .
/Applications/Xcode.app/Contents/Developer/usr/bin/make  check-local
Making lib/libgtest.a lib/libgtest_main.a in gtest
depbase=`echo src/gtest-all.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
    /bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I./build-aux  -I. -I./include  -D_THREAD_SAFE  -DGTEST_HAS_PTHREAD=1 -g -DNDEBUG -MT src/gtest-all.lo -MD -MP -MF $depbase.Tpo -c -o src/gtest-all.lo src/gtest-all.cc &&\
    mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./build-aux -I. -I./include -D_THREAD_SAFE -DGTEST_HAS_PTHREAD=1 -g -DNDEBUG -MT src/gtest-all.lo -MD -MP -MF src/.deps/gtest-all.Tpo -c src/gtest-all.cc  -fno-common -DPIC -o src/.libs/gtest-all.o
In file included from src/gtest-all.cc:39:
In file included from ./include/gtest/gtest.h:57:
In file included from ./include/gtest/internal/gtest-internal.h:40:
./include/gtest/internal/gtest-port.h:449:10: fatal error: 'tr1/tuple' file not found
#include <tr1/tuple>  // NOLINT
         ^
1 error generated.
make[3]: *** [src/gtest-all.lo] Error 1
make[2]: *** [check-local] Error 2
make[1]: *** [check-am] Error 2
make: *** [check-recursive] Error 1

I'm on osX 10.9.4

@xfxyjwf
Copy link
Contributor

xfxyjwf commented Oct 21, 2014

How did you get the release package? Our release package has a bundled gtest directory and it appears the code line the error message points to doesn't exist in the bundled gtest code. Can you try this version:
https://github.com/google/protobuf/releases/download/v2.6.0/protoc-2.6.0-win32.zip

@ari62
Copy link

ari62 commented Oct 21, 2014

I downloaded it from:
https://github.com/google/protobuf/archive/v2.6.0.zip
by choosing the 2.6.0 tag from the branches dropdown in github.
I'm not sure what I should do with that zip, I'm on a mac and that zip contains a .exe.

@xfxyjwf
Copy link
Contributor

xfxyjwf commented Oct 21, 2014

Sorry, the link should be:
https://github.com/google/protobuf/releases/download/v2.6.0/protobuf-2.6.0.zip

You can find it on the releases page:
https://github.com/google/protobuf/releases

The zip file you downloaded is a snapshot of the git repository, not a release package. It doesn't contain the correct gtest code.

@xfxyjwf xfxyjwf closed this as completed Oct 21, 2014
@LKDraytonBrown
Copy link

I also had this issue, on OSX Yosemite, but managed to solve the problem by installing Xcode.

@MoBo
Copy link

MoBo commented Jun 11, 2015

Run ./configure CPPFLAGS=-DGTEST_USE_OWN_TR1_TUPLE=1 on OSX 10.10 to fixed it

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

No branches or pull requests

5 participants