sdbusplus make check error

常晓明 xiaoqian1641 at 163.com
Tue Sep 17 12:25:31 AEST 2019


Hi,All,


I'm running tests in SDK . In sdbusplus, follow the steps:
./bootstrap.sh
./configure ${CONFIGURE_FLAGS} --enable-oe-sdk
make check
when "make check", It shows next , I don't konw what went wrong, and how to fix it? 
Making check in .
make[1]: Entering directory `/home/root1/sdbusplus'
  CXX      sdbusplus/libsdbusplus_la-exception.lo
  CXX      sdbusplus/libsdbusplus_la-sdbus.lo
  CXXLD    libsdbusplus.la
make[1]: Leaving directory `/home/root1/sdbusplus'
Making check in tools
make[1]: Entering directory `/home/root1/sdbusplus/tools'
running build
make[1]: Leaving directory `/home/root1/sdbusplus/tools'
Making check in example
make[1]: Entering directory `/home/root1/sdbusplus/example'
../tools/sdbus++ \
            -r . -t ../tools/sdbusplus/templates \
            interface server-header net.poettering.Calculator > net/poettering/Calculator/server.hpp
../tools/sdbus++ \
            -r . -t ../tools/sdbusplus/templates \
            interface server-cpp net.poettering.Calculator > net/poettering/Calculator/server.cpp
../tools/sdbus++ \
            -r . -t ../tools/sdbusplus/templates \
            error exception-header net.poettering.Calculator > net/poettering/Calculator/error.hpp
../tools/sdbus++ \
            -r . -t ../tools/sdbusplus/templates \
            error exception-cpp net.poettering.Calculator > net/poettering/Calculator/error.cpp
../tools/sdbus++ \
            -r . -t ../tools/sdbusplus/templates \
            interface markdown net.poettering.Calculator > calculator.md
../tools/sdbus++ \
            -r . -t ../tools/sdbusplus/templates \
            error markdown net.poettering.Calculator >> calculator.md
make  check-am
make[2]: Entering directory `/home/root1/sdbusplus/example'
  CXX      list_users-list-users.o
  CXXLD    list-users
  CXX      calculator_server-calculator-server.o
  CXX      net/poettering/Calculator/calculator_server-server.o
  CXX      net/poettering/Calculator/calculator_server-error.o
  CXXLD    calculator-server
make[2]: Leaving directory `/home/root1/sdbusplus/example'
make[1]: Leaving directory `/home/root1/sdbusplus/example'
Making check in test
make[1]: Entering directory `/home/root1/sdbusplus/test'
make  bus_list_names bus_match exception_sdbus_error message_append message_read message_native_types message_types utility_tuple_to_array utility_type_traits vtable_vtable timer
make[2]: Entering directory `/home/root1/sdbusplus/test'
  CXX      bus/list_names.o
  CXXLD    bus_list_names
/home/root1/sdk/sysroots/x86_64-oesdk-linux/usr/libexec/arm-openbmc-linux-gnueabi/gcc/arm-openbmc-linux-gnueabi/9.2.0/real-ld: /home/root1/sdk/sysroots/armv5e-openbmc-linux-gnueabi/usr/lib/libgmock_main.a(gmock_main.cc.o): in function `main':
/usr/src/debug/googletest/1.8.1-r0/git/googlemock/src/gmock_main.cc:52: undefined reference to `testing::InitGoogleMock(int*, char**)'
collect2: error: ld returned 1 exit status
make[2]: *** [bus_list_names] Error 1
make[2]: Leaving directory `/home/root1/sdbusplus/test'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/home/root1/sdbusplus/test'
make: *** [check-recursive] Error 1

Johny
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20190917/3b7f853f/attachment.htm>


More information about the openbmc mailing list