openbmc.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* phosphor-ipmi-flash build error
@ 2020-11-17 21:23 Mohaimen Alsamarai
  2020-11-20  5:56 ` William Kennington
  0 siblings, 1 reply; 3+ messages in thread
From: Mohaimen Alsamarai @ 2020-11-17 21:23 UTC (permalink / raw)
  To: openbmc; +Cc: XP Chen, Lancelot Kao, Benjamin Fair

[-- Attachment #1: Type: text/plain, Size: 2040 bytes --]

Hi All,
                We are trying to build the phosphor-ipmi-flash<https://github.com/openbmc/phosphor-ipmi-flash> and we counter issue at the make step please see below for the error message, can you advise us what we can do to pass that error


[root@localhost phosphor-ipmi-flash]# make
make  all-recursive
make[1]: Entering directory '/root/phosphor-ipmi-flash'
Making all in .
make[2]: Entering directory '/root/phosphor-ipmi-flash'
make[2]: Leaving directory '/root/phosphor-ipmi-flash'
Making all in tools
make[2]: Entering directory '/root/phosphor-ipmi-flash/tools'
Making all in .
make[3]: Entering directory '/root/phosphor-ipmi-flash/tools'
  CXX      burn_my_bmc-main.o
In file included from p2a.hpp:5,
                 from main.cpp:21:
pci.hpp:40:39: error: 'span' in namespace 'stdplus' does not name a template type
     virtual void write(const stdplus::span<const std::uint8_t> data) = 0;
                                       ^~~~
pci.hpp:40:43: error: expected ',' or '...' before '<' token
     virtual void write(const stdplus::span<const std::uint8_t> data) = 0;
                                           ^
pci.hpp:51:39: error: 'span' in namespace 'stdplus' does not name a template type
     virtual void write(const stdplus::span<const std::uint8_t> data) override;
                                       ^~~~
pci.hpp:51:43: error: expected ',' or '...' before '<' token
     virtual void write(const stdplus::span<const std::uint8_t> data) override;
                                           ^
make[3]: *** [Makefile:699: burn_my_bmc-main.o] Error 1
make[3]: Leaving directory '/root/phosphor-ipmi-flash/tools'
make[2]: *** [Makefile:725: all-recursive] Error 1
make[2]: Leaving directory '/root/phosphor-ipmi-flash/tools'
make[1]: *** [Makefile:615: all-recursive] Error 1
make[1]: Leaving directory '/root/phosphor-ipmi-flash'
make: *** [Makefile:475: all] Error 2
[root@localhost phosphor-ipmi-flash]#



Thanks,
Mohaimen Alsamarai
BMC developer
FII USA



[-- Attachment #2: Type: text/html, Size: 7073 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: phosphor-ipmi-flash build error
  2020-11-17 21:23 phosphor-ipmi-flash build error Mohaimen Alsamarai
@ 2020-11-20  5:56 ` William Kennington
  2020-11-20 16:53   ` Mohaimen Alsamarai
  0 siblings, 1 reply; 3+ messages in thread
From: William Kennington @ 2020-11-20  5:56 UTC (permalink / raw)
  To: Mohaimen Alsamarai; +Cc: Lancelot Kao, openbmc, XP Chen, Benjamin Fair

[-- Attachment #1: Type: text/plain, Size: 165 bytes --]

If you are installing these manually, be sure to install
https://github.com/martinmoene/span-lite before building and installing
stdplus and phosphor-ipmi-flash.

>

[-- Attachment #2: Type: text/html, Size: 509 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: phosphor-ipmi-flash build error
  2020-11-20  5:56 ` William Kennington
@ 2020-11-20 16:53   ` Mohaimen Alsamarai
  0 siblings, 0 replies; 3+ messages in thread
From: Mohaimen Alsamarai @ 2020-11-20 16:53 UTC (permalink / raw)
  To: William Kennington; +Cc: Lancelot Kao, openbmc, XP Chen, Benjamin Fair

[-- Attachment #1: Type: text/plain, Size: 4353 bytes --]

Hi William,
we were able to build successfully on x86-64 (ubuntu) but fails in aarch64 (centOS8) see log below


[root@localhost phosphor-ipmi-flash]# make
make  all-recursive
make[1]: Entering directory '/root/phosphor-ipmi-flash'
Making all in .
make[2]: Entering directory '/root/phosphor-ipmi-flash'
make[2]: Leaving directory '/root/phosphor-ipmi-flash'
Making all in tools
make[2]: Entering directory '/root/phosphor-ipmi-flash/tools'
Making all in .
make[3]: Entering directory '/root/phosphor-ipmi-flash/tools'
  CXXLDburn_my_bmc
burn_my_bmc-main.o: In function `main':
main.cpp:(.text+0x7e0): undefined reference to `internal::sys_impl'
main.cpp:(.text+0x7e4): undefined reference to `internal::sys_impl'
burn_my_bmc-main.o: In function `std::_MakeUniq<host_tool::BtDataHandler>::__single_object std::make_unique<host_tool::BtDataHandler, ipmiblob::BlobHandler*, ho   st_tool::ProgressStdoutIndicator*>(ipmiblob::BlobHandler*&&, host_tool::ProgressStdoutIndicator*&&)':
main.cpp:(.text._ZSt11make_uniqueIN9host_tool13BtDataHandlerEJPN8ipmiblob11BlobHandlerEPNS0_23ProgressStdoutIndicatorEEENSt9_MakeUniqIT_E15__single_objectEDpOT0_[_ZSt11make_uniqueIN9host_tool13BtDataHandlerEJPN8ipmiblob11BlobHandlerEPNS0_23ProgressStdoutIndicatorEEENSt9_MakeUniqIT_E15__single_objectEDpOT0_]+0x40): undefined reference to `internal::sys_impl'
main.cpp:(.text._ZSt11make_uniqueIN9host_tool13BtDataHandlerEJPN8ipmiblob11BlobHandlerEPNS0_23ProgressStdoutIndicatorEEENSt9_MakeUniqIT_E15__single_objectEDpOT0_[_ZSt11make_uniqueIN9host_tool13BtDataHandlerEJPN8ipmiblob11BlobHandlerEPNS0_23ProgressStdoutIndicatorEEENSt9_MakeUniqIT_E15__single_objectEDpOT0_]+0x44): undefined reference to `internal::sys_impl'
burn_my_bmc-main.o: In function `std::_MakeUniq<host_tool::NetDataHandler>::__single_object std::make_unique<host_tool::NetDataHandler, ipmiblob::BlobHandler*,host_tool::ProgressStdoutIndicator*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(ipmiblob::BlobHandler*&&, host_tool::ProgressStdoutIndicator*&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
main.cpp:(.text._ZSt11make_uniqueIN9host_tool14NetDataHandlerEJPN8ipmiblob11BlobHandlerEPNS0_23ProgressStdoutIndicatorERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESD_EENSt9_MakeUniqIT_E15__single_objectEDpOT0_[_ZSt11make_uniqueIN9host_tool14NetDataHandlerEJPN8ipmiblob11BlobHandlerEPNS0_23ProgressStdoutIndicatorERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESD_EENSt9_MakeUniqIT_E15__single_objectEDpOT0_]+0x64): undefined reference to `internal::sys_impl'
burn_my_bmc-main.o:main.cpp:(.text._ZSt11make_uniqueIN9host_tool14NetDataHandlerEJPN8ipmiblob11BlobHandlerEPNS0_23ProgressStdoutIndicatorERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESD_EENSt9_MakeUniqIT_E15__single_objectEDpOT0_[_ZSt11make_uniqueIN9host_tool14NetDataHandlerEJPN8ipmiblob11BlobHandlerEPNS0_23ProgressStdoutIndicatorERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESD_EENSt9_MakeUniqIT_E15__single_objectEDpOT0_]+0x68): more undefined references to `internal::sys_impl' follow
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:570: burn_my_bmc] Error 1
make[3]: Leaving directory '/root/phosphor-ipmi-flash/tools'
make[2]: *** [Makefile:725: all-recursive] Error 1
make[2]: Leaving directory '/root/phosphor-ipmi-flash/tools'
make[1]: *** [Makefile:615: all-recursive] Error 1
make[1]: Leaving directory '/root/phosphor-ipmi-flash'
make: *** [Makefile:475: all] Error 2
[root@localhost phosphor-ipmi-flash]#



Thanks,
Mohaimen Alsamarai

________________________________
From: William Kennington <wak@google.com>
Sent: Thursday, November 19, 2020 11:56 PM
To: Mohaimen Alsamarai <Mohaimen.Alsamarai@fii-na.com>
Cc: openbmc@lists.ozlabs.org <openbmc@lists.ozlabs.org>; XP Chen <Xiao-Peng.Chen@fii-na.com>; Lancelot Kao <lancelot.cy.kao@fii-na.com>; Benjamin Fair <benjaminfair@google.com>
Subject: Re: phosphor-ipmi-flash build error

If you are installing these manually, be sure to install https://github.com/martinmoene/span-lite before building and installing stdplus and phosphor-ipmi-flash.

[-- Attachment #2: Type: text/html, Size: 7202 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-11-23  2:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-17 21:23 phosphor-ipmi-flash build error Mohaimen Alsamarai
2020-11-20  5:56 ` William Kennington
2020-11-20 16:53   ` Mohaimen Alsamarai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).