openbmc / phosphor-time-manager

Local time policy and emulated host RTC manager
Apache License 2.0
6 stars 10 forks source link

build failed #10

Open MinzChan opened 1 year ago

MinzChan commented 1 year ago

asus@asus-ASUS-TUF-Gaming-F15-FX507ZM:~/sdk/phosphor-time-manager$ meson setup build meson-wrapper: Running meson with setup options: " --cross-file=/home/asus/sdk/romulus-2023-07-28/sysroots/x86_64-oesdk-linux/usr/share/meson/arm-openbmc-linux-gnueabi-meson.cross --native-file=/home/asus/sdk/romulus-2023-07-28/sysroots/x86_64-oesdk-linux/usr/share/meson/meson.native " The Meson build system Version: 1.1.1 Source dir: /home/asus/sdk/phosphor-time-manager Build dir: /home/asus/sdk/phosphor-time-manager/build Build type: cross build Project name: phosphor-time-manager Project version: 0.1 C++ compiler for the host machine: arm-openbmc-linux-gnueabi-g++ -marm -mcpu=arm1176jz-s -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/asus/sdk/romulus-2023-07-28/sysroots/arm1176jzs-openbmc-linux-gnueabi (gcc 13.1.1 "arm-openbmc-linux-gnueabi-g++ (GCC) 13.1.1 20230520") C++ linker for the host machine: arm-openbmc-linux-gnueabi-g++ -marm -mcpu=arm1176jz-s -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/asus/sdk/romulus-2023-07-28/sysroots/arm1176jzs-openbmc-linux-gnueabi ld.bfd 2.40.0.20230419 C++ compiler for the build machine: g++ (gcc 13.1.0 "g++ (Ubuntu 13.1.0-8ubuntu1) 13.1.0") C++ linker for the build machine: g++ ld.bfd 2.40.90.20230705 Build machine cpu family: x86_64 Build machine cpu: x86_64 Host machine cpu family: x86_64 Host machine cpu: x86_64 Target machine cpu family: x86_64 Target machine cpu: x86_64 Found pkg-config: /home/asus/sdk/romulus-2023-07-28/sysroots/x86_64-oesdk-linux/usr/bin/pkg-config (0.29.2) Run-time dependency sdbusplus found: YES 1.0.0 Run-time dependency phosphor-logging found: YES 1.0.0 Run-time dependency phosphor-dbus-interfaces found: YES 1.0.0 Configuring config.h using configuration Run-time dependency systemd found: YES 253 Run-time dependency GTest found: YES 1.13.0 Run-time dependency GMock found: YES 1.13.0 Build targets in project: 7

phosphor-time-manager 0.1

Report Issues Issue : https://github.com/openbmc/phosphor-time-manager/issues/new

User defined options Cross files : /home/asus/sdk/romulus-2023-07-28/sysroots/x86_64-oesdk-linux/usr/share/meson/arm-openbmc-linux-gnueabi-meson.cross Native files: /home/asus/sdk/romulus-2023-07-28/sysroots/x86_64-oesdk-linux/usr/share/meson/meson.native

Found ninja-1.11.1 at /home/asus/sdk/romulus-2023-07-28/sysroots/x86_64-oesdk-linux/usr/bin/ninja asus@asus-ASUS-TUF-Gaming-F15-FX507ZM:~/sdk/phosphor-time-manager$ asus@asus-ASUS-TUF-Gaming-F15-FX507ZM:~/sdk/phosphor-time-manager$ asus@asus-ASUS-TUF-Gaming-F15-FX507ZM:~/sdk/phosphor-time-manager$ ninja -C build -j4 ninja: Entering directory `build' [1/15] Compiling C++ object liblibtimemanager.a.p/bmc_epoch.cpp.o FAILED: liblibtimemanager.a.p/bmc_epoch.cpp.o arm-openbmc-linux-gnueabi-g++ -marm -mcpu=arm1176jz-s -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/asus/sdk/romulus-2023-07-28/sysroots/arm1176jzs-openbmc-linux-gnueabi -Iliblibtimemanager.a.p -I. -I.. -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -std=c++23 -O2 -g -fPIC -DBOOST_ASIO_DISABLE_THREADS -DBOOST_ALL_NO_LIB -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_COROUTINES_NO_DEPRECATION_WARNING -MD -MQ liblibtimemanager.a.p/bmc_epoch.cpp.o -MF liblibtimemanager.a.p/bmc_epoch.cpp.o.d -o liblibtimemanager.a.p/bmc_epoch.cpp.o -c ../bmc_epoch.cpp ../bmc_epoch.cpp: In member function ‘void phosphor::time::BmcEpoch::initialize()’: ../bmc_epoch.cpp:50:45: error: narrowing conversion of ‘9223372036854775807’ from ‘std::chrono::duration<long long int, std::ratio<1, 1000000000> >::rep’ {aka ‘long long int’} to ‘__time_t’ {aka ‘long int’} [-Wnarrowing] 50 | {system_clock::duration::max().count(), 0}, // it_value | ~~~~~~~^~ [4/15] Compiling C++ object liblibtimemanager.a.p/manager.cpp.o ninja: build stopped: subcommand failed. asus@asus-ASUS-TUF-Gaming-F15-FX507ZM:~/sdk/phosphor-time-manager$

mine260309 commented 1 year ago

Could you verify your revision? Possibly https://gerrit.openbmc.org/c/openbmc/phosphor-time-manager/+/65373 fixed the issue.

MinzChan commented 1 year ago

I just pulled the code up to date without making any changes and tried to build it, but it failed image

williamspatrick commented 1 year ago

I thought @geissonator was fixing the 64-bit time_t calls? Looks like this should have been fixed with 714a20b5f28f97fcbb2881b72049b11f6b64aead . What is the new error you are seeing?