obmc-phosphor-buttons build error
Brad Chou
chou.brad at gmail.com
Mon May 13 17:38:58 AEST 2019
Hi All,
I try to include obmc-phosphor-buttons into my image, but when compile it shows a lot of errors.
Can anyone help me to see what’s going wrong ?
Thanks.
obmc-phosphor-buttons_git.bb
SUMMARY = "OpenBMC Buttons"
DESCRIPTION = "OpenBMC All buttons"
PR = "r1"
PV = "1.0+git${SRCPV}"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
S = "${WORKDIR}/git"
SRC_URI += "git://github.com/openbmc/phosphor-buttons.git"
SRCREV = "391a21a1bb002a62ce336bfacdd8fdf888b7909a"
inherit cmake pkgconfig systemd
SYSTEMD_SERVICE_${PN} += "xyz.openbmc_project.Chassis.Buttons.service"
DEPENDS += " \
systemd \
sdbusplus \
phosphor-dbus-interfaces \
phosphor-logging \
nlohmann-json \
gpioplus \
"
DEBUG: Executing shell function do_compile
NOTE: VERBOSE=1 cmake --build /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/build --target all -- -j 32
[1/9] /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot-native/usr/bin/arm-openbmc-linux-gnueabi/arm-openbmc-linux-gnueabi-g++ -DCHASSIS_STATE_OBJECT_NAME=\"/xyz/openbmc_project/state/chassis0\" -DGPIO_BASE_LABEL_NAME=\"1e780000.gpio\" -DHOST_STATE_OBJECT_NAME=\"/xyz/openbmc_project/state/host0\" -DID_DBUS_OBJECT_NAME=\"/xyz/openbmc_project/Chassis/Buttons/ID0\" -DLONG_PRESS_TIME_MS=3000 -DPOWER_DBUS_OBJECT_NAME=\"/xyz/openbmc_project/Chassis/Buttons/Power0\" -DRESET_DBUS_OBJECT_NAME=\"/xyz/openbmc_project/Chassis/Buttons/Reset0\" -I/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/git/inc -Iinc -march=armv6 -marm -mtune=arm1176jz-s --sysroot=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1=/usr/src/debug/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1 -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot= -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot-native= -fvisibility-inlines-hidden -march=armv6 -marm -mtune=arm1176jz-s --sysroot=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot -std=gnu++1z -MD -MT CMakeFiles/button-handler.dir/src/button_handler_main.cpp.o -MF CMakeFiles/button-handler.dir/src/button_handler_main.cpp.o.d -o CMakeFiles/button-handler.dir/src/button_handler_main.cpp.o -c /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/git/src/button_handler_main.cpp
[2/9] /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot-native/usr/bin/arm-openbmc-linux-gnueabi/arm-openbmc-linux-gnueabi-g++ -DCHASSIS_STATE_OBJECT_NAME=\"/xyz/openbmc_project/state/chassis0\" -DGPIO_BASE_LABEL_NAME=\"1e780000.gpio\" -DHOST_STATE_OBJECT_NAME=\"/xyz/openbmc_project/state/host0\" -DID_DBUS_OBJECT_NAME=\"/xyz/openbmc_project/Chassis/Buttons/ID0\" -DLONG_PRESS_TIME_MS=3000 -DPOWER_DBUS_OBJECT_NAME=\"/xyz/openbmc_project/Chassis/Buttons/Power0\" -DRESET_DBUS_OBJECT_NAME=\"/xyz/openbmc_project/Chassis/Buttons/Reset0\" -I/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/git/inc -Iinc -march=armv6 -marm -mtune=arm1176jz-s --sysroot=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1=/usr/src/debug/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1 -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot= -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot-native= -fvisibility-inlines-hidden -march=armv6 -marm -mtune=arm1176jz-s --sysroot=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot -std=gnu++1z -MD -MT CMakeFiles/buttons.dir/src/power_button.cpp.o -MF CMakeFiles/buttons.dir/src/power_button.cpp.o.d -o CMakeFiles/buttons.dir/src/power_button.cpp.o -c /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/git/src/power_button.cpp
[3/9] /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot-native/usr/bin/arm-openbmc-linux-gnueabi/arm-openbmc-linux-gnueabi-g++ -DCHASSIS_STATE_OBJECT_NAME=\"/xyz/openbmc_project/state/chassis0\" -DGPIO_BASE_LABEL_NAME=\"1e780000.gpio\" -DHOST_STATE_OBJECT_NAME=\"/xyz/openbmc_project/state/host0\" -DID_DBUS_OBJECT_NAME=\"/xyz/openbmc_project/Chassis/Buttons/ID0\" -DLONG_PRESS_TIME_MS=3000 -DPOWER_DBUS_OBJECT_NAME=\"/xyz/openbmc_project/Chassis/Buttons/Power0\" -DRESET_DBUS_OBJECT_NAME=\"/xyz/openbmc_project/Chassis/Buttons/Reset0\" -I/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/git/inc -Iinc -march=armv6 -marm -mtune=arm1176jz-s --sysroot=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1=/usr/src/debug/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1 -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot= -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot-native= -fvisibility-inlines-hidden -march=armv6 -marm -mtune=arm1176jz-s --sysroot=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot -std=gnu++1z -MD -MT CMakeFiles/buttons.dir/src/id_button.cpp.o -MF CMakeFiles/buttons.dir/src/id_button.cpp.o.d -o CMakeFiles/buttons.dir/src/id_button.cpp.o -c /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/git/src/id_button.cpp
[4/9] /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot-native/usr/bin/arm-openbmc-linux-gnueabi/arm-openbmc-linux-gnueabi-g++ -DCHASSIS_STATE_OBJECT_NAME=\"/xyz/openbmc_project/state/chassis0\" -DGPIO_BASE_LABEL_NAME=\"1e780000.gpio\" -DHOST_STATE_OBJECT_NAME=\"/xyz/openbmc_project/state/host0\" -DID_DBUS_OBJECT_NAME=\"/xyz/openbmc_project/Chassis/Buttons/ID0\" -DLONG_PRESS_TIME_MS=3000 -DPOWER_DBUS_OBJECT_NAME=\"/xyz/openbmc_project/Chassis/Buttons/Power0\" -DRESET_DBUS_OBJECT_NAME=\"/xyz/openbmc_project/Chassis/Buttons/Reset0\" -I/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/git/inc -Iinc -march=armv6 -marm -mtune=arm1176jz-s --sysroot=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1=/usr/src/debug/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1 -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot= -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot-native= -fvisibility-inlines-hidden -march=armv6 -marm -mtune=arm1176jz-s --sysroot=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot -std=gnu++1z -MD -MT CMakeFiles/buttons.dir/src/reset_button.cpp.o -MF CMakeFiles/buttons.dir/src/reset_button.cpp.o.d -o CMakeFiles/buttons.dir/src/reset_button.cpp.o -c /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/git/src/reset_button.cpp
[5/9] /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot-native/usr/bin/arm-openbmc-linux-gnueabi/arm-openbmc-linux-gnueabi-g++ -DCHASSIS_STATE_OBJECT_NAME=\"/xyz/openbmc_project/state/chassis0\" -DGPIO_BASE_LABEL_NAME=\"1e780000.gpio\" -DHOST_STATE_OBJECT_NAME=\"/xyz/openbmc_project/state/host0\" -DID_DBUS_OBJECT_NAME=\"/xyz/openbmc_project/Chassis/Buttons/ID0\" -DLONG_PRESS_TIME_MS=3000 -DPOWER_DBUS_OBJECT_NAME=\"/xyz/openbmc_project/Chassis/Buttons/Power0\" -DRESET_DBUS_OBJECT_NAME=\"/xyz/openbmc_project/Chassis/Buttons/Reset0\" -I/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/git/inc -Iinc -march=armv6 -marm -mtune=arm1176jz-s --sysroot=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1=/usr/src/debug/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1 -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot= -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot-native= -fvisibility-inlines-hidden -march=armv6 -marm -mtune=arm1176jz-s --sysroot=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot -std=gnu++1z -MD -MT CMakeFiles/buttons.dir/src/main.cpp.o -MF CMakeFiles/buttons.dir/src/main.cpp.o.d -o CMakeFiles/buttons.dir/src/main.cpp.o -c /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/git/src/main.cpp
[6/9] /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot-native/usr/bin/arm-openbmc-linux-gnueabi/arm-openbmc-linux-gnueabi-g++ -DCHASSIS_STATE_OBJECT_NAME=\"/xyz/openbmc_project/state/chassis0\" -DGPIO_BASE_LABEL_NAME=\"1e780000.gpio\" -DHOST_STATE_OBJECT_NAME=\"/xyz/openbmc_project/state/host0\" -DID_DBUS_OBJECT_NAME=\"/xyz/openbmc_project/Chassis/Buttons/ID0\" -DLONG_PRESS_TIME_MS=3000 -DPOWER_DBUS_OBJECT_NAME=\"/xyz/openbmc_project/Chassis/Buttons/Power0\" -DRESET_DBUS_OBJECT_NAME=\"/xyz/openbmc_project/Chassis/Buttons/Reset0\" -I/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/git/inc -Iinc -march=armv6 -marm -mtune=arm1176jz-s --sysroot=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1=/usr/src/debug/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1 -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot= -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot-native= -fvisibility-inlines-hidden -march=armv6 -marm -mtune=arm1176jz-s --sysroot=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot -std=gnu++1z -MD -MT CMakeFiles/button-handler.dir/src/button_handler.cpp.o -MF CMakeFiles/button-handler.dir/src/button_handler.cpp.o.d -o CMakeFiles/button-handler.dir/src/button_handler.cpp.o -c /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/git/src/button_handler.cpp
[7/9] : && /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot-native/usr/bin/arm-openbmc-linux-gnueabi/arm-openbmc-linux-gnueabi-g++ -march=armv6 -marm -mtune=arm1176jz-s --sysroot=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1=/usr/src/debug/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1 -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot= -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot-native= -fvisibility-inlines-hidden -march=armv6 -marm -mtune=arm1176jz-s --sysroot=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot -march=armv6 -marm -mtune=arm1176jz-s --sysroot=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1=/usr/src/debug/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1 -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot= -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot-native= -fvisibility-inlines-hidden -march=armv6 -marm -mtune=arm1176jz-s --sysroot=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -rdynamic CMakeFiles/button-handler.dir/src/button_handler_main.cpp.o CMakeFiles/button-handler.dir/src/button_handler.cpp.o -o button-handler -lsdbusplus -lsystemd -lphosphor_dbus && :
FAILED: button-handler
: && /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot-native/usr/bin/arm-openbmc-linux-gnueabi/arm-openbmc-linux-gnueabi-g++ -march=armv6 -marm -mtune=arm1176jz-s --sysroot=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1=/usr/src/debug/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1 -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot= -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot-native= -fvisibility-inlines-hidden -march=armv6 -marm -mtune=arm1176jz-s --sysroot=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot -march=armv6 -marm -mtune=arm1176jz-s --sysroot=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1=/usr/src/debug/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1 -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot= -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot-native= -fvisibility-inlines-hidden -march=armv6 -marm -mtune=arm1176jz-s --sysroot=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -rdynamic CMakeFiles/button-handler.dir/src/button_handler_main.cpp.o CMakeFiles/button-handler.dir/src/button_handler.cpp.o -o button-handler -lsdbusplus -lsystemd -lphosphor_dbus && :
CMakeFiles/button-handler.dir/src/button_handler.cpp.o: In function `void phosphor::logging::details::helper_log<std::tuple<char const*, phosphor::logging::level, char const*, char const*, char const*, unsigned long long, char const*, char const*>&, 0u, 1u, 2u, 3u, 4u, 5u, 6u, 7u>(std::tuple<char const*, phosphor::logging::level, char const*, char const*, char const*, unsigned long long, char const*, char const*>&, std::integer_sequence<unsigned int, 0u, 1u, 2u, 3u, 4u, 5u, 6u, 7u>) [clone .isra.44] [clone .constprop.171]':
/usr/include/phosphor-logging/log.hpp:104: undefined reference to `phosphor::logging::sdjournal_ptr'
CMakeFiles/button-handler.dir/src/button_handler.cpp.o: In function `phosphor::button::Handler::idPressed(sdbusplus::message::message&)':
/usr/include/sdbusplus/bus.hpp:259: undefined reference to `phosphor::logging::sdjournal_ptr'
CMakeFiles/button-handler.dir/src/button_handler.cpp.o: In function `void phosphor::logging::log<(phosphor::logging::level)6, char const*>(char const*)':
/usr/include/sdbusplus/server/transaction.hpp:143: undefined reference to `phosphor::logging::sdjournal_ptr'
collect2: error: ld returned 1 exit status
[8/9] /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot-native/usr/bin/arm-openbmc-linux-gnueabi/arm-openbmc-linux-gnueabi-g++ -DCHASSIS_STATE_OBJECT_NAME=\"/xyz/openbmc_project/state/chassis0\" -DGPIO_BASE_LABEL_NAME=\"1e780000.gpio\" -DHOST_STATE_OBJECT_NAME=\"/xyz/openbmc_project/state/host0\" -DID_DBUS_OBJECT_NAME=\"/xyz/openbmc_project/Chassis/Buttons/ID0\" -DLONG_PRESS_TIME_MS=3000 -DPOWER_DBUS_OBJECT_NAME=\"/xyz/openbmc_project/Chassis/Buttons/Power0\" -DRESET_DBUS_OBJECT_NAME=\"/xyz/openbmc_project/Chassis/Buttons/Reset0\" -I/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/git/inc -Iinc -march=armv6 -marm -mtune=arm1176jz-s --sysroot=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1=/usr/src/debug/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1 -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot= -fdebug-prefix-map=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot-native= -fvisibility-inlines-hidden -march=armv6 -marm -mtune=arm1176jz-s --sysroot=/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot -std=gnu++1z -MD -MT CMakeFiles/buttons.dir/src/gpio.cpp.o -MF CMakeFiles/buttons.dir/src/gpio.cpp.o.d -o CMakeFiles/buttons.dir/src/gpio.cpp.o -c /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/git/src/gpio.cpp
In file included from /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot/usr/include/c++/7.3.0/map:60:0,
from /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot/usr/include/sdbusplus/message/types.hpp:5,
from /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot/usr/include/sdbusplus/message/append.hpp:5,
from /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot/usr/include/sdbusplus/message.hpp:6,
from /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot/usr/include/sdbusplus/bus.hpp:7,
from /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/git/inc/gpio.hpp:18,
from /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/git/src/gpio.cpp:17:
/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot/usr/include/c++/7.3.0/bits/stl_tree.h: In member function 'std::pair<std::_Rb_tree_node_base*, std::_Rb_tree_node_base*> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_get_insert_hint_unique_pos(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, const key_type&) [with _Key = std::__cxx11::basic_string<char>; _Val = std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> >; _KeyOfValue = std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> > >; _Compare = std::less<void>; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> > >]':
/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot/usr/include/c++/7.3.0/bits/stl_tree.h:2130:5: note: parameter passing for argument of type 'std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> >, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> > >, std::less<void>, std::allocator<std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> > > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> > >}' changed in GCC 7.1
_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot/usr/include/c++/7.3.0/vector:69:0,
from /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot/usr/include/sdbusplus/message/types.hpp:12,
from /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot/usr/include/sdbusplus/message/append.hpp:5,
from /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot/usr/include/sdbusplus/message.hpp:6,
from /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot/usr/include/sdbusplus/bus.hpp:7,
from /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/git/inc/gpio.hpp:18,
from /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/git/src/gpio.cpp:17:
/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot/usr/include/c++/7.3.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {nlohmann::detail::value_t}; _Tp = nlohmann::basic_json<>; _Alloc = std::allocator<nlohmann::basic_json<> >]':
/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot/usr/include/c++/7.3.0/bits/vector.tcc:394:7: note: parameter passing for argument of type 'std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > >::iterator {aka __gnu_cxx::__normal_iterator<nlohmann::basic_json<>*, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >}' changed in GCC 7.1
vector<_Tp, _Alloc>::
^~~~~~~~~~~~~~~~~~~
/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot/usr/include/c++/7.3.0/bits/vector.tcc: In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {nlohmann::detail::value_t}; _Tp = nlohmann::basic_json<>; _Alloc = std::allocator<nlohmann::basic_json<> >]':
/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot/usr/include/c++/7.3.0/bits/vector.tcc:105:21: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator<nlohmann::basic_json<>*, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >' changed in GCC 7.1
_M_realloc_insert(end(), std::forward<_Args>(__args)...);
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot/usr/include/c++/7.3.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {std::nullptr_t}; _Tp = nlohmann::basic_json<>; _Alloc = std::allocator<nlohmann::basic_json<> >]':
/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot/usr/include/c++/7.3.0/bits/vector.tcc:394:7: note: parameter passing for argument of type 'std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > >::iterator {aka __gnu_cxx::__normal_iterator<nlohmann::basic_json<>*, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >}' changed in GCC 7.1
vector<_Tp, _Alloc>::
^~~~~~~~~~~~~~~~~~~
/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot/usr/include/c++/7.3.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}; _Tp = nlohmann::basic_json<>; _Alloc = std::allocator<nlohmann::basic_json<> >]':
/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot/usr/include/c++/7.3.0/bits/vector.tcc:394:7: note: parameter passing for argument of type 'std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > >::iterator {aka __gnu_cxx::__normal_iterator<nlohmann::basic_json<>*, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >}' changed in GCC 7.1
/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot/usr/include/c++/7.3.0/bits/vector.tcc:394:7: note: parameter passing for argument of type 'std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > >::iterator {aka __gnu_cxx::__normal_iterator<nlohmann::basic_json<>*, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >}' changed in GCC 7.1
/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot/usr/include/c++/7.3.0/bits/vector.tcc: In member function 'bool nlohmann::detail::parser<BasicJsonType>::sax_parse_internal(SAX*) [with SAX = nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<> >; BasicJsonType = nlohmann::basic_json<>]':
/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot/usr/include/c++/7.3.0/bits/vector.tcc:105:21: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator<nlohmann::basic_json<>*, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >' changed in GCC 7.1
_M_realloc_insert(end(), std::forward<_Args>(__args)...);
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/recipe-sysroot/usr/include/c++/7.3.0/bits/vector.tcc:105:21: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator<nlohmann::basic_json<>*, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >' changed in GCC 7.1
_M_realloc_insert(end(), std::forward<_Args>(__args)...);
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
WARNING: /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/temp/run.do_compile.8464:1 exit 1 from 'VERBOSE=1 cmake --build /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/build --target all -- -j 32'
ERROR: Function failed: do_compile (log file is located at /home/bradchou/Documents/mct_openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/obmc-phosphor-buttons/1.0+gitAUTOINC+391a21a1bb-r1/temp/log.do_compile.8464)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log.do_compile.8464
Type: application/octet-stream
Size: 32192 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20190513/b1c9eddb/attachment-0001.obj>
More information about the openbmc
mailing list