[Nexus 6  Original Android Development] PerfectSlayer:
Hi all,

I'm trying to build the rom by myself but I get stuck on the following error :

target thumb C++: EGL_test <= frameworks/native/opengl/tests/EGLTest/egl_cache_test.cpp

In file included from external/gtest/include/gtest/gtest.h:1929:0,

from frameworks/native/libs/gui/tests/Surface_test.cpp:17:

frameworks/native/libs/gui/tests/Surface_test.cpp: In member function 'virtual void android::SurfaceTest_ScreenshotsOfProtectedBuffersSucceed_Test::TestBody()':

frameworks/native/libs/gui/tests/Surface_test.cpp:99:41: error: no matching function for call to 'android::ISurfaceComposer::captureScreen(android::sp<android::IBinder>&, android::sp<android::IGraphicBufferProducer>&, android::Rect, int, int, int, int, bool)'

64, 64, 0, 0x7fffffff, false));

^

external/gtest/include/gtest/gtest_pred_impl.h:77:52: note: in definition of macro 'GTEST_ASSERT_'

if (const ::testing::AssertionResult gtest_ar = (expression)) \

^

external/gtest/include/gtest/gtest_pred_impl.h:166:3: note: in expansion of macro 'GTEST_PRED_FORMAT2_'

GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_FATAL_FAILURE_)

^

external/gtest/include/gtest/gtest.h:1993:3: note: in expansion of macro 'ASSERT_PRED_FORMAT2'

ASSERT_PRED_FORMAT2(::testing::internal:: \

^

external/gtest/include/gtest/gtest.h:2011:32: note: in expansion of macro 'GTEST_ASSERT_EQ'

# define ASSERT_EQ(val1, val2) GTEST_ASSERT_EQ(val1, val2)

^

frameworks/native/libs/gui/tests/Surface_test.cpp:98:5: note: in expansion of macro 'ASSERT_EQ'

ASSERT_EQ(NO_ERROR, sf->captureScreen(display, producer, Rect(),

^

frameworks/native/libs/gui/tests/Surface_test.cpp:99:41: note: candidate is:

64, 64, 0, 0x7fffffff, false));

^

external/gtest/include/gtest/gtest_pred_impl.h:77:52: note: in definition of macro 'GTEST_ASSERT_'

if (const ::testing::AssertionResult gtest_ar = (expression)) \

^

external/gtest/include/gtest/gtest_pred_impl.h:166:3: note: in expansion of macro 'GTEST_PRED_FORMAT2_'

GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_FATAL_FAILURE_)

^

external/gtest/include/gtest/gtest.h:1993:3: note: in expansion of macro 'ASSERT_PRED_FORMAT2'

ASSERT_PRED_FORMAT2(::testing::internal:: \

^

external/gtest/include/gtest/gtest.h:2011:32: note: in expansion of macro 'GTEST_ASSERT_EQ'

# define ASSERT_EQ(val1, val2) GTEST_ASSERT_EQ(val1, val2)

^

frameworks/native/libs/gui/tests/Surface_test.cpp:98:5: note: in expansion of macro 'ASSERT_EQ'

ASSERT_EQ(NO_ERROR, sf->captureScreen(display, producer, Rect(),

^

In file included from frameworks/native/libs/gui/tests/Surface_test.cpp:20:0:

frameworks/native/include/gui/ISurfaceComposer.h:143:22: note: virtual android::status_t android::ISurfaceComposer::captureScreen(const android::sp<android::IBinder>&, const android::sp<android::IGraphicBufferProducer>&, android::Rect, uint32_t, uint32_t, uint32_t, uint32_t, bool, android::ISurfaceComposer::Rotation, bool)

virtual status_t captureScreen(const sp<IBinder>& display,

^

frameworks/native/include/gui/ISurfaceComposer.h:143:22: note: candidate expects 10 arguments, 8 provided

In file included from external/gtest/include/gtest/gtest.h:1929:0,

from frameworks/native/libs/gui/tests/Surface_test.cpp:17:

frameworks/native/libs/gui/tests/Surface_test.cpp:128:41: error: no matching function for call to 'android::ISurfaceComposer::captureScreen(android::sp<android::IBinder>&, android::sp<android::IGraphicBufferProducer>&, android::Rect, int, int, int, int, bool)'

64, 64, 0, 0x7fffffff, false));

^

external/gtest/include/gtest/gtest_pred_impl.h:77:52: note: in definition of macro 'GTEST_ASSERT_'

if (const ::testing::AssertionResult gtest_ar = (expression)) \

^

external/gtest/include/gtest/gtest_pred_impl.h:166:3: note: in expansion of macro 'GTEST_PRED_FORMAT2_'

GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_FATAL_FAILURE_)

^

external/gtest/include/gtest/gtest.h:1993:3: note: in expansion of macro 'ASSERT_PRED_FORMAT2'

ASSERT_PRED_FORMAT2(::testing::internal:: \

^

external/gtest/include/gtest/gtest.h:2011:32: note: in expansion of macro 'GTEST_ASSERT_EQ'

# define ASSERT_EQ(val1, val2) GTEST_ASSERT_EQ(val1, val2)

^

frameworks/native/libs/gui/tests/Surface_test.cpp:127:5: note: in expansion of macro 'ASSERT_EQ'

ASSERT_EQ(NO_ERROR, sf->captureScreen(display, producer, Rect(),

^

frameworks/native/libs/gui/tests/Surface_test.cpp:128:41: note: candidate is:

64, 64, 0, 0x7fffffff, false));

^

external/gtest/include/gtest/gtest_pred_impl.h:77:52: note: in definition of macro 'GTEST_ASSERT_'

if (const ::testing::AssertionResult gtest_ar = (expression)) \

^

external/gtest/include/gtest/gtest_pred_impl.h:166:3: note: in expansion of macro 'GTEST_PRED_FORMAT2_'

GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_FATAL_FAILURE_)

^

external/gtest/include/gtest/gtest.h:1993:3: note: in expansion of macro 'ASSERT_PRED_FORMAT2'

ASSERT_PRED_FORMAT2(::testing::internal:: \

^

external/gtest/include/gtest/gtest.h:2011:32: note: in expansion of macro 'GTEST_ASSERT_EQ'

# define ASSERT_EQ(val1, val2) GTEST_ASSERT_EQ(val1, val2)

^

frameworks/native/libs/gui/tests/Surface_test.cpp:127:5: note: in expansion of macro 'ASSERT_EQ'

ASSERT_EQ(NO_ERROR, sf->captureScreen(display, producer, Rect(),

^

In file included from frameworks/native/libs/gui/tests/Surface_test.cpp:20:0:

frameworks/native/include/gui/ISurfaceComposer.h:143:22: note: virtual android::status_t android::ISurfaceComposer::captureScreen(const android::sp<android::IBinder>&, const android::sp<android::IGraphicBufferProducer>&, android::Rect, uint32_t, uint32_t, uint32_t, uint32_t, bool, android::ISurfaceComposer::Rotation, bool)

virtual status_t captureScreen(const sp<IBinder>& display,

^

frameworks/native/include/gui/ISurfaceComposer.h:143:22: note: candidate expects 10 arguments, 8 provided

make: *** [/home/jcdenton/slimroms/out/target/product/shamu/obj/EXECUTABLES/libgui_test_intermediates/Surface_test.o] Error 1

make: *** Waiting for unfinished jobs....

frameworks/native/opengl/tests/EGLTest/egl_cache_test.cpp: In member function 'virtual void android::EGLCacheSerializationTest::SetUp()':

frameworks/native/opengl/tests/EGLTest/egl_cache_test.cpp:83:56: warning: call to 'tempnam' declared with attribute warning: tempnam possibly used unsafely; consider using mkstemp [enabled by default]

char* tn = tempnam("/sdcard", "EGL_test-cache-");

^

#### make failed to build some targets (53:15 (mm:ss)) ####

For information, I'm on debian 64b with required packages building shamu with TheLoonyBin binaries.

Thanks for your help ! :D

Note : I have no mesa/libGL.so to link… Can it be the cause ?