Closed Bug 750314 Opened 12 years ago Closed 12 years ago

build error on external/gtest

Categories

(Firefox OS Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: codeworkx, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.162 Safari/535.19

Steps to reproduce:

building gonk on arch linux:
make config-galaxy-s2-ics
make -j8 kernel
make -j8 gonk

gcc (GCC) 4.7.0 20120414 (prerelease)
GNU Make 3.82



Actual results:

In file included from external/gtest/src/../include/gtest/gtest-param-test.h:158:0,
                 from external/gtest/src/../include/gtest/gtest.h:69,
                 from external/gtest/src/gtest_main.cc:32:
external/gtest/src/../include/gtest/internal/gtest-param-util-generated.h: In instantiation of 'testing::internal::ValueArray2<T1, T2>::operator testing::internal::ParamGenerator<T>() const [with T = bool; T1 = bool; T2 = bool]':
external/gtest/src/../include/gtest/gtest-param-test.h:1185:28:   required from here
external/gtest/src/../include/gtest/internal/gtest-param-util-generated.h:77:26: error: 'ValuesIn' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from external/gtest/src/../include/gtest/gtest.h:69:0,
                 from external/gtest/src/gtest_main.cc:32:
external/gtest/src/../include/gtest/gtest-param-test.h:287:58: note: 'template<class Container> testing::internal::ParamGenerator<typename Container::value_type> testing::ValuesIn(const Container&)' declared here, later in the translation unit
host C++: libmtp <= frameworks/base/media/mtp/MtpEventPacket.cpp
make[1]: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libgtest_main_host_intermediates/gtest_main.o] Error 1
make[1]: *** Waiting for unfinished jobs....



Expected results:

build without errors.

this error doesn't occur on cyanogenmod.
https://github.com/cyanogenmod/android_external_gtest/tree/ics
This is already fixed.

In the future, please file an issue on the B2G issue tracker for B2G (non-gecko) build issues.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.