Opened 13 years ago

Closed 10 years ago

#27370 closed defect (wontfix)

Error by building gmock. error: 'NO_CONSTRUCTOR_NEEDED_FOR_STATIC_MUTEX' is not a member of 'testing::internal::Mutex'

Reported by: blueduck@… Owned by: josephholsten@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: cdeil (Christoph Deil), ryandesign (Ryan Carsten Schmidt)
Port: gmock

Description

I got an error if I install tht gmock port

$ sudo port -v install gmock
Password:
--->  Building gmock
depbase=`echo src/gmock-internal-utils.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
	/bin/sh ./libtool --tag=CXX   --mode=compile /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I./build-aux  -I/opt/local/include -I./include -I/opt/local/include  -O2 -arch x86_64 -MT src/gmock-internal-utils.lo -MD -MP -MF $depbase.Tpo -c -o src/gmock-internal-utils.lo src/gmock-internal-utils.cc &&\
	mv -f $depbase.Tpo $depbase.Plo
 /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I./build-aux -I/opt/local/include -I./include -I/opt/local/include -O2 -arch x86_64 -MT src/gmock-internal-utils.lo -MD -MP -MF src/.deps/gmock-internal-utils.Tpo -c src/gmock-internal-utils.cc  -fno-common -DPIC -o src/.libs/gmock-internal-utils.o
src/gmock-internal-utils.cc:106: error: 'NO_CONSTRUCTOR_NEEDED_FOR_STATIC_MUTEX' is not a member of 'testing::internal::Mutex'
make[1]: *** [src/gmock-internal-utils.lo] Error 1
make: *** [all-recursive] Error 1
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gmock/work/gmock-1.4.0" && /usr/bin/make all " returned error 2
Error: Target org.macports.build returned: shell command failed (see log for details)
Warning: the following items did not execute (for gmock): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Log for gmock is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gmock/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Thanks in advance! Stefano

Attachments (1)

log (16.2 KB) - added by cdeil (Christoph Deil) 13 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 13 years ago by jmroot (Joshua Root)

Cc: josephholsten.com:joseph@… removed
Owner: changed from macports-tickets@… to josephholsten@…

comment:2 Changed 13 years ago by josephholsten@…

Can't reproduce.

I do note that your libtool and g++ commands are different than what my system is setting, I've got an additional -I./gtest/include and -pipe. I doubt the -pipe matters, but -I./gtest/include strikes me as important.

Think you could clean and get me a complete build log?

comment:3 Changed 13 years ago by blueduck@…

Sure, here we go:

$ sudo port -v install gmock
--->  Fetching gmock
--->  Verifying checksum(s) for gmock
--->  Checksumming gmock-1.4.0.tar.gz
--->  Extracting gmock
--->  Extracting gmock-1.4.0.tar.gz
--->  Configuring gmock
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... /usr/bin/gcc-4.2
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc-4.2 accepts -g... yes
checking for /usr/bin/gcc-4.2 option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of /usr/bin/gcc-4.2... gcc3
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/bin/g++-4.2 accepts -g... yes
checking dependency style of /usr/bin/g++-4.2... gcc3
checking build system type... i386-apple-darwin10.4.0
checking host system type... i386-apple-darwin10.4.0
checking for a sed that does not truncate output... /opt/local/bin/gsed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ld used by /usr/bin/gcc-4.2... /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU ld... no
checking for /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... /usr/bin/gcc-4.2 -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... /usr/bin/g++-4.2 -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm output from /usr/bin/gcc-4.2 object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking if /usr/bin/gcc-4.2 supports -fno-rtti -fno-exceptions... no
checking for /usr/bin/gcc-4.2 option to produce PIC... -fno-common
checking if /usr/bin/gcc-4.2 PIC flag -fno-common works... yes
checking if /usr/bin/gcc-4.2 static flag -static works... no
checking if /usr/bin/gcc-4.2 supports -c -o file.o... yes
checking whether the /usr/bin/gcc-4.2 linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin10.4.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by /usr/bin/g++-4.2... /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU ld... no
checking whether the /usr/bin/g++-4.2 linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries... yes
checking for /usr/bin/g++-4.2 option to produce PIC... -fno-common
checking if /usr/bin/g++-4.2 PIC flag -fno-common works... yes
checking if /usr/bin/g++-4.2 static flag -static works... no
checking if /usr/bin/g++-4.2 supports -c -o file.o... yes
checking whether the /usr/bin/g++-4.2 linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin10.4.0 dyld
(cached) (cached) checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for python... /opt/local/bin/python
checking for gtest-config... /opt/local/bin/gtest-config
checking for Google Test version >= 1.4.0... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating scripts/gmock-config
config.status: creating build-aux/config.h
config.status: executing depfiles commands
--->  Building gmock
depbase=`echo src/gmock.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
	/bin/sh ./libtool --tag=CXX   --mode=compile /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I./build-aux  -I/opt/local/include -I./include -I/opt/local/include  -O2 -arch x86_64 -MT src/gmock.lo -MD -MP -MF $depbase.Tpo -c -o src/gmock.lo src/gmock.cc &&\
	mv -f $depbase.Tpo $depbase.Plo
mkdir src/.libs
 /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I./build-aux -I/opt/local/include -I./include -I/opt/local/include -O2 -arch x86_64 -MT src/gmock.lo -MD -MP -MF src/.deps/gmock.Tpo -c src/gmock.cc  -fno-common -DPIC -o src/.libs/gmock.o
 /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I./build-aux -I/opt/local/include -I./include -I/opt/local/include -O2 -arch x86_64 -MT src/gmock.lo -MD -MP -MF src/.deps/gmock.Tpo -c src/gmock.cc -o src/gmock.o >/dev/null 2>&1
depbase=`echo src/gmock-cardinalities.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
	/bin/sh ./libtool --tag=CXX   --mode=compile /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I./build-aux  -I/opt/local/include -I./include -I/opt/local/include  -O2 -arch x86_64 -MT src/gmock-cardinalities.lo -MD -MP -MF $depbase.Tpo -c -o src/gmock-cardinalities.lo src/gmock-cardinalities.cc &&\
	mv -f $depbase.Tpo $depbase.Plo
 /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I./build-aux -I/opt/local/include -I./include -I/opt/local/include -O2 -arch x86_64 -MT src/gmock-cardinalities.lo -MD -MP -MF src/.deps/gmock-cardinalities.Tpo -c src/gmock-cardinalities.cc  -fno-common -DPIC -o src/.libs/gmock-cardinalities.o
 /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I./build-aux -I/opt/local/include -I./include -I/opt/local/include -O2 -arch x86_64 -MT src/gmock-cardinalities.lo -MD -MP -MF src/.deps/gmock-cardinalities.Tpo -c src/gmock-cardinalities.cc -o src/gmock-cardinalities.o >/dev/null 2>&1
depbase=`echo src/gmock-internal-utils.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
	/bin/sh ./libtool --tag=CXX   --mode=compile /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I./build-aux  -I/opt/local/include -I./include -I/opt/local/include  -O2 -arch x86_64 -MT src/gmock-internal-utils.lo -MD -MP -MF $depbase.Tpo -c -o src/gmock-internal-utils.lo src/gmock-internal-utils.cc &&\
	mv -f $depbase.Tpo $depbase.Plo
 /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I./build-aux -I/opt/local/include -I./include -I/opt/local/include -O2 -arch x86_64 -MT src/gmock-internal-utils.lo -MD -MP -MF src/.deps/gmock-internal-utils.Tpo -c src/gmock-internal-utils.cc  -fno-common -DPIC -o src/.libs/gmock-internal-utils.o
src/gmock-internal-utils.cc:106: error: 'NO_CONSTRUCTOR_NEEDED_FOR_STATIC_MUTEX' is not a member of 'testing::internal::Mutex'
make[1]: *** [src/gmock-internal-utils.lo] Error 1
make: *** [all-recursive] Error 1
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gmock/work/gmock-1.4.0" && /usr/bin/make all " returned error 2
Error: Target org.macports.build returned: shell command failed (see log for details)
Warning: the following items did not execute (for gmock): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Log for gmock is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gmock/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Changed 13 years ago by cdeil (Christoph Deil)

Attachment: log added

comment:4 Changed 13 years ago by cdeil (Christoph Deil)

I have the same problem. See attached log.

comment:5 Changed 13 years ago by jmroot (Joshua Root)

Both failure logs appear to be on a system where an older version of gmock is already installed (/opt/local/bin/gtest-config exists).

comment:6 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: Deil.Christoph@… ryandesign@… added
Resolution: wontfix
Status: newclosed

gmock has been deleted; see #38356.

Note: See TracTickets for help on using tickets.