Build failed - webos OSE 2.7.0

Hi.

I got some error for building on webos OSE 2.7.0
Please let me know how to solve it.

Thank you.

FAILED: src/libluna-service2++/test/test_category
: && /home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot-native/usr/bin/arm-webos-linux-gnueabi/arm-webos-linux-gnueabi-g++ -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type --sysroot=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25=/usr/src/debug/luna-service2/3.21.2-6-r25 -fdebug-prefix-map=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25=/usr/src/debug/luna-service2/3.21.2-6-r25 -fdebug-prefix-map=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot= -fdebug-prefix-map=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot-native= -fvisibility-inlines-hidden -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type --sysroot=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot -DWEBOS_TARGET_MACHINE_IMPL_HARDWARE -DTARGET_DEVICE -include /home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/build/Configured/webospaths.h -UNDEBUG -DUSE_PMLOG_DECLARATION -DMEMCHECK -DLSHANDLE_CHECK -Wall -Werror=switch -DSECURITY_COMPATIBILITY -Wl,--no-undefined -Wall -std=c++11 -Wl,-lpbnjson_cpp -Wl,-lpbnjson_c -DNDEBUG -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type --sysroot=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25=/usr/src/debug/luna-service2/3.21.2-6-r25 -fdebug-prefix-map=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25=/usr/src/debug/luna-service2/3.21.2-6-r25 -fdebug-prefix-map=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot= -fdebug-prefix-map=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot-native= -fvisibility-inlines-hidden -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type --sysroot=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now -rdynamic src/libluna-service2++/test/CMakeFiles/test_category.dir/test_category.cpp.o -o src/libluna-service2++/test/test_category -Wl,-rpath,"$ORIGIN/../:$ORIGIN/../../libluna-service2:" src/libluna-service2++/libluna-service2++.so.3.21.2 lib/libgtest.a lib/libgtest_main.a src/libluna-service2/libluna-service2.so.3.21.2 -lglib-2.0 -lPmLogLib -ldl -lpthread -lrt -lpbnjson_cpp -lpbnjson_c lib/libgtest.a -lpthread && :
/usr/src/debug/luna-service2/3.21.2-6-r25/git/src/libluna-service2++/test/test_category.cpp:200: error: undefined reference to 'testing::internal::ScopedTrace::ScopedTrace(char const, int, testing::Message const&)'*
> /usr/src/debug/luna-service2/3.21.2-6-r25/git/src/libluna-service2++/test/test_category.cpp:200: error: undefined reference to 'testing::internal::ScopedTrace::~ScopedTrace()'
> /usr/src/debug/luna-service2/3.21.2-6-r25/git/src/libluna-service2++/test/test_category.cpp:215: error: undefined reference to 'testing::internal::ScopedTrace::ScopedTrace(char const, int, testing::Message const&)'*
> /usr/src/debug/luna-service2/3.21.2-6-r25/git/src/libluna-service2++/test/test_category.cpp:215: error: undefined reference to 'testing::internal::ScopedTrace::~ScopedTrace()'
> /usr/src/debug/luna-service2/3.21.2-6-r25/git/src/libluna-service2++/test/test_category.cpp:200: error: undefined reference to 'testing::internal::ScopedTrace::~ScopedTrace()'
> /usr/src/debug/luna-service2/3.21.2-6-r25/git/src/libluna-service2++/test/test_category.cpp:215: error: undefined reference to 'testing::internal::ScopedTrace::~ScopedTrace()'
> /usr/src/debug/luna-service2/3.21.2-6-r25/git/src/libluna-service2++/test/test_category.cpp:559: error: undefined reference to 'testing::internal::ScopedTrace::ScopedTrace(char const, int, testing::Message const&)'*
> /usr/src/debug/luna-service2/3.21.2-6-r25/git/src/libluna-service2++/test/test_category.cpp:597: error: undefined reference to 'testing::internal::ScopedTrace::ScopedTrace(char const, int, testing::Message const&)'*
> collect2: error: ld returned 1 exit status
> [99/275]
/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot-native/usr/bin/arm-webos-linux-gnueabi/arm-webos-linux-gnueabi-g++ -I/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/git/src/libluna-service2 -I/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/git/include/public -I/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/git/include/private -I/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot/usr/include/glib-2.0 -I/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot/usr/lib/glib-2.0/include -I/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/git/include/private/tests -I/usr/src/gtest/include -I/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/git/include/public/luna-service2++ -isystem /home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot/usr/src/gtest/include -isystem /home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot/usr/src/gtest -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type --sysroot=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25=/usr/src/debug/luna-service2/3.21.2-6-r25 -fdebug-prefix-map=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25=/usr/src/debug/luna-service2/3.21.2-6-r25 -fdebug-prefix-map=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot= -fdebug-prefix-map=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot-native= -fvisibility-inlines-hidden -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type --sysroot=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot -DWEBOS_TARGET_MACHINE_IMPL_HARDWARE -DTARGET_DEVICE -include /home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/build/Configured/webospaths.h -UNDEBUG -DUSE_PMLOG_DECLARATION -DMEMCHECK -DLSHANDLE_CHECK -Wall -Werror=switch -DSECURITY_COMPATIBILITY -Wl,--no-undefined -Wall -std=c++11 -Wl,-lpbnjson_cpp -Wl,-lpbnjson_c -DNDEBUG -DLS_SCHEMA_ROOT="/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/git/files/schema" -MD -MT src/libluna-service2++/test/CMakeFiles/test_jsonpayload.dir/test_jsonpayload.cpp.o -MF src/libluna-service2++/test/CMakeFiles/test_jsonpayload.dir/test_jsonpayload.cpp.o.d -o src/libluna-service2++/test/CMakeFiles/test_jsonpayload.dir/test_jsonpayload.cpp.o -c /home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/git/src/libluna-service2++/test/test_jsonpayload.cpp
[100/275] /home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot-native/usr/bin/arm-webos-linux-gnueabi/arm-webos-linux-gnueabi-g++ -I/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/git/src/libluna-service2 -I/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/git/include/public -I/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/git/include/private -I/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot/usr/include/glib-2.0 -I/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot/usr/lib/glib-2.0/include -I/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/git/include/private/tests -I/usr/src/gtest/include -I/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/git/include/public/luna-service2++ -isystem /home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot/usr/src/gtest/include -isystem /home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot/usr/src/gtest -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type --sysroot=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25=/usr/src/debug/luna-service2/3.21.2-6-r25 -fdebug-prefix-map=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25=/usr/src/debug/luna-service2/3.21.2-6-r25 -fdebug-prefix-map=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot= -fdebug-prefix-map=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot-native= -fvisibility-inlines-hidden -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type --sysroot=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot -DWEBOS_TARGET_MACHINE_IMPL_HARDWARE -DTARGET_DEVICE -include /home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/build/Configured/webospaths.h -UNDEBUG -DUSE_PMLOG_DECLARATION -DMEMCHECK -DLSHANDLE_CHECK -Wall -Werror=switch -DSECURITY_COMPATIBILITY -Wl,--no-undefined -Wall -std=c++11 -Wl,-lpbnjson_cpp -Wl,-lpbnjson_c -DNDEBUG -MD -MT src/libluna-service2++/test/CMakeFiles/test_call.dir/test_call.cpp.o -MF src/libluna-service2++/test/CMakeFiles/test_call.dir/test_call.cpp.o.d -o src/libluna-service2++/test/CMakeFiles/test_call.dir/test_call.cpp.o -c /home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/git/src/libluna-service2++/test/test_call.cpp
[101/275] /home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot-native/usr/bin/arm-webos-linux-gnueabi/arm-webos-linux-gnueabi-g++ -I/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/git/src/libluna-service2 -I/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/git/include/public -I/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/git/include/private -I/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot/usr/include/glib-2.0 -I/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot/usr/lib/glib-2.0/include -I/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/git/include/private/tests -I/usr/src/gtest/include -I/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/git/include/public/luna-service2++ -isystem /home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot/usr/src/gtest/include -isystem /home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot/usr/src/gtest -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type --sysroot=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25=/usr/src/debug/luna-service2/3.21.2-6-r25 -fdebug-prefix-map=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25=/usr/src/debug/luna-service2/3.21.2-6-r25 -fdebug-prefix-map=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot= -fdebug-prefix-map=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot-native= -fvisibility-inlines-hidden -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type --sysroot=/home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/recipe-sysroot -DWEBOS_TARGET_MACHINE_IMPL_HARDWARE -DTARGET_DEVICE -include /home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/build/Configured/webospaths.h -UNDEBUG -DUSE_PMLOG_DECLARATION -DMEMCHECK -DLSHANDLE_CHECK -Wall -Werror=switch -DSECURITY_COMPATIBILITY -Wl,--no-undefined -Wall -std=c++11 -Wl,-lpbnjson_cpp -Wl,-lpbnjson_c -DNDEBUG -MD -MT src/libluna-service2++/test/CMakeFiles/test_subscription_cxx.dir/test_subscription_cxx.cpp.o -MF src/libluna-service2++/test/CMakeFiles/test_subscription_cxx.dir/test_subscription_cxx.cpp.o.d -o src/libluna-service2++/test/CMakeFiles/test_subscription_cxx.dir/test_subscription_cxx.cpp.o -c /home/youngyunkim/00_webos/20201005/build-webos/BUILD/work/raspberrypi4-webos-linux-gnueabi/luna-service2/3.21.2-6-r25/git/src/libluna-service2++/test/test_subscription_cxx.cpp
ninja: build stopped: subcommand failed.
WARNING: exit code 1 from a shell command.

Temporarily, I comment out below lines.

There seems to be some problems with macro, SCOPED_TRACE.

Hi @youngyun,

Could you build again with lower value for mcf command?
If you assign too high values to -p and -b options, it might cause unexpected build errors when you execute the make command.

Thanks,

Hi @youngyun,

You may see a build error related to Ostree-kernel-initramfs.
In that case, please refer to [Notice] Build issue related to webOS OSE 2.7.0.

Thanks