<div dir="ltr">Just make sure you have span-lite installed first if you are installing everything locally <a href="https://github.com/martinmoene/span-lite">https://github.com/martinmoene/span-lite</a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 18, 2020 at 7:28 PM Patrick Venture <<a href="mailto:venture@google.com">venture@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, Nov 18, 2020 at 3:18 PM Patrick Voelker<br>
<<a href="mailto:Patrick_Voelker@phoenix.com" target="_blank">Patrick_Voelker@phoenix.com</a>> wrote:<br>
><br>
> I'm having an issue building burn_my_bmc with the instructions listed on <a href="https://github.com/openbmc/phosphor-ipmi-flash" rel="noreferrer" target="_blank">https://github.com/openbmc/phosphor-ipmi-flash</a> . Got through building all the dependencies but I get the following errors when building<br>
pci.cpp.  Looks like maybe stdplus changed?<br>
<br>
William, PTAL, thanks!<br>
<br>
><br>
> pvoelker@bmc-dev:~/bmc/host-tool/phosphor-ipmi-flash$ make<br>
> make  all-recursive<br>
> make[1]: Entering directory '/home/pvoelker/bmc/host-tool/phosphor-ipmi-flash'<br>
> Making all in .<br>
> make[2]: Entering directory '/home/pvoelker/bmc/host-tool/phosphor-ipmi-flash'<br>
>   CXX      internal/libfirmware_common_la-sys.lo<br>
>   CXXLD    <a href="http://libfirmware_common.la" rel="noreferrer" target="_blank">libfirmware_common.la</a><br>
> ar: `u' modifier ignored since `D' is the default (see `U')<br>
> make[2]: Leaving directory '/home/pvoelker/bmc/host-tool/phosphor-ipmi-flash'<br>
> Making all in tools<br>
> make[2]: Entering directory '/home/pvoelker/bmc/host-tool/phosphor-ipmi-flash/tools'<br>
> Making all in .<br>
> make[3]: Entering directory '/home/pvoelker/bmc/host-tool/phosphor-ipmi-flash/tools'<br>
>   CXX      libupdater_la-updater.lo<br>
>   CXX      libupdater_la-handler.lo<br>
>   CXX      libupdater_la-helper.lo<br>
>   CXX      libupdater_la-bt.lo<br>
>   CXX      libupdater_la-lpc.lo<br>
>   CXX      libupdater_la-io.lo<br>
>   CXX      libupdater_la-net.lo<br>
>   CXX      libupdater_la-pci.lo<br>
> In file included from pci.cpp:17:0:<br>
> pci.hpp:40:39: error: 'span' in namespace 'stdplus' does not name a template type<br>
>      virtual void write(const stdplus::span<const std::uint8_t> data) = 0;<br>
>                                        ^~~~<br>
> pci.hpp:40:43: error: expected ',' or '...' before '<' token<br>
>      virtual void write(const stdplus::span<const std::uint8_t> data) = 0;<br>
>                                            ^<br>
> pci.hpp:51:39: error: 'span' in namespace 'stdplus' does not name a template type<br>
>      virtual void write(const stdplus::span<const std::uint8_t> data) override;<br>
>                                        ^~~~<br>
> pci.hpp:51:43: error: expected ',' or '...' before '<' token<br>
>      virtual void write(const stdplus::span<const std::uint8_t> data) override;<br>
>                                            ^<br>
> pci.cpp:105:44: error: 'span' in namespace 'stdplus' does not name a template type<br>
>  void PciAccessBridge::write(const stdplus::span<const std::uint8_t> data)<br>
>                                             ^~~~<br>
> pci.cpp:105:48: error: expected ',' or '...' before '<' token<br>
>  void PciAccessBridge::write(const stdplus::span<const std::uint8_t> data)<br>
>                                                 ^<br>
> pci.cpp: In member function 'virtual void host_tool::PciAccessBridge::write(int)':<br>
> pci.cpp:107:9: error: 'data' was not declared in this scope<br>
>      if (data.size() > dataLength)<br>
>          ^~~~<br>
> pci.cpp:107:9: note: suggested alternatives:<br>
> In file included from /usr/include/c++/7/string:51:0,<br>
>                  from /usr/include/c++/7/stdexcept:39,<br>
>                  from /usr/include/c++/7/system_error:41,<br>
>                  from ../internal/sys.hpp:19,<br>
>                  from pci.hpp:20,<br>
>                  from pci.cpp:17:<br>
> /usr/include/c++/7/bits/range_access.h:318:5: note:   'std::data'<br>
>      data(initializer_list<_Tp> __il) noexcept<br>
>      ^~~~<br>
> In file included from pci.cpp:26:0:<br>
> /usr/local/include/fmt/format.h:952:8: note:   'fmt::v7::detail::data'<br>
>  struct data : basic_data<> {};<br>
>         ^~~~<br>
> pci.cpp:114:36: error: 'data' was not declared in this scope<br>
>      std::memcpy(addr + dataOffset, data.data(), data.size());<br>
>                                     ^~~~<br>
> pci.cpp:114:36: note: suggested alternatives:<br>
> In file included from /usr/include/c++/7/string:51:0,<br>
>                  from /usr/include/c++/7/stdexcept:39,<br>
>                  from /usr/include/c++/7/system_error:41,<br>
>                  from ../internal/sys.hpp:19,<br>
>                  from pci.hpp:20,<br>
>                  from pci.cpp:17:<br>
> /usr/include/c++/7/bits/range_access.h:318:5: note:   'std::data'<br>
>      data(initializer_list<_Tp> __il) noexcept<br>
>      ^~~~<br>
> In file included from pci.cpp:26:0:<br>
> /usr/local/include/fmt/format.h:952:8: note:   'fmt::v7::detail::data'<br>
>  struct data : basic_data<> {};<br>
>         ^~~~<br>
> Makefile:654: recipe for target 'libupdater_la-pci.lo' failed<br>
> make[3]: *** [libupdater_la-pci.lo] Error 1<br>
> make[3]: Leaving directory '/home/pvoelker/bmc/host-tool/phosphor-ipmi-flash/tools'<br>
> Makefile:708: recipe for target 'all-recursive' failed<br>
> make[2]: *** [all-recursive] Error 1<br>
> make[2]: Leaving directory '/home/pvoelker/bmc/host-tool/phosphor-ipmi-flash/tools'<br>
> Makefile:608: recipe for target 'all-recursive' failed<br>
> make[1]: *** [all-recursive] Error 1<br>
> make[1]: Leaving directory '/home/pvoelker/bmc/host-tool/phosphor-ipmi-flash'<br>
> Makefile:474: recipe for target 'all' failed<br>
> make: *** [all] Error 2<br>
><br>
</blockquote></div>