<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thank you, I will update the entire project file to the latest version.<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>发件人:</b> Anton Kachalov <rnouse@google.com><br>
<b>发送时间:</b> 2020年10月8日 3:09<br>
<b>收件人:</b> 周 远清 <zhouyuanqing8@outlook.com><br>
<b>抄送:</b> openbmc@lists.ozlabs.org <openbmc@lists.ozlabs.org>; uperic@163.com <uperic@163.com><br>
<b>主题:</b> Re: About intel-ipmi-oem compilation error</font>
<div> </div>
</div>
<div>
<div dir="ltr">Hello,
<div><br>
</div>
<div>How old is your openbmc checkout, especially the phosphor-host-ipmid?</div>
<div><br>
</div>
<div>The requested field "lun" has been added three months ago:</div>
<div><br>
</div>
<div><a href="https://github.com/openbmc/phosphor-host-ipmid/commit/c11cc5c06960d807bc0feb680346bf6f8e9f8adb">https://github.com/openbmc/phosphor-host-ipmid/commit/c11cc5c06960d807bc0feb680346bf6f8e9f8adb</a><br>
</div>
<div><br>
</div>
<div>From the build logs it seems like the existing headers doesn't include this field.</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Wed, 7 Oct 2020 at 09:27, 周 远清 <<a href="mailto:zhouyuanqing8@outlook.com">zhouyuanqing8@outlook.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello everyone, </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
      I downloaded intel-ipmi-oem from <a href="https://github.com/openbmc/intel-ipmi-oem" target="_blank">
https://github.com/openbmc/intel-ipmi-oem</a>, and encountered the following 2 problems when compiling. The first problem has been solved, but I think the code downloaded from the community should be able to compile and pass. I would like to ask if there is
 something wrong with my project configuration?<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Question1:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
In file included from /home/harleyzhou/openbmc/openbmc/build/tmp/work/arm1176jzs-openbmc-linux-gnueabi/intel-ipmi-oem/0.1+gitAUTOINC+d77489f18e-r0/git/include/ipmi_to_redfish_hooks.hpp:20,
<div>                 from /home/harleyzhou/openbmc/openbmc/build/tmp/work/arm1176jzs-openbmc-linux-gnueabi/intel-ipmi-oem/0.1+gitAUTOINC+d77489f18e-r0/git/src/sensorcommands.cpp:20:</div>
<div>/home/harleyzhou/openbmc/openbmc/build/tmp/work/arm1176jzs-openbmc-linux-gnueabi/intel-ipmi-oem/0.1+gitAUTOINC+d77489f18e-<span style="color:rgb(81,167,249)">r0/git/include/storagecommands.hpp:18:10: fatal error: phosphor-ipmi-host/sensorhandler.hpp: No
 such file or directory</span></div>
<div><span style="color:rgb(81,167,249)">   18 | #include <phosphor-ipmi-host/sensorhandler.hpp></span></div>
<div><span style="color:rgb(81,167,249)">      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span></div>
<div><span style="color:rgb(81,167,249)">compilation terminated.</span></div>
<br>
<span style="font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline">Question2:</span><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline">/home/harleyzhou/openbmc/openbmc/build/tmp/work/arm1176jzs-openbmc-linux-gnueabi/intel-ipmi-oem/0.1+gitAUTOINC+d77489f18e-r0/recipe-sysroot-native/usr/bin/arm-openbmc-linux-gnueabi/arm-openbmc-linux-gnueabi-g++
  -DBOOST_ALL_NO_LIB -DBOOST_ASIO_DISABLE_THREADS -DBOOST_COROUTINES_NO_DEPRECATION_WARNING -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_NO_RTTI -DBOOST_NO_TYPEID -DBOOST_SYSTEM_NO_DEPRECATED -DUSING_ENTITY_MANAGER_DECORATORS -Dzinteloemcmds_EXPORTS -I/home/harleyzhou/openbmc/openbmc/build/tmp/work/arm1176jzs-openbmc-linux-gnueabi/intel-ipmi-oem/0.1+gitAUTOINC+d77489f18e-r0/git/include
 -isystem . -marm -mcpu=arm1176jz-s  --sysroot=/home/harleyzhou/openbmc/openbmc/build/tmp/work/arm1176jzs-openbmc-linux-gnueabi/intel-ipmi-oem/0.1+gitAUTOINC+d77489f18e-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/harleyzhou/openbmc/openbmc/build/tmp/work/arm1176jzs-openbmc-linux-gnueabi/intel-ipmi-oem/0.1+gitAUTOINC+d77489f18e-r0=/usr/src/debug/intel-ipmi-oem/0.1+gitAUTOINC+d77489f18e-r0
                      -fdebug-prefix-map=/home/harleyzhou/openbmc/openbmc/build/tmp/work/arm1176jzs-openbmc-linux-gnueabi/intel-ipmi-oem/0.1+gitAUTOINC+d77489f18e-r0=/usr/src/debug/intel-ipmi-oem/0.1+gitAUTOINC+d77489f18e-r0                      -fdebug-prefix-map=/home/harleyzhou/openbmc/openbmc/build/tmp/work/arm1176jzs-openbmc-linux-gnueabi/intel-ipmi-oem/0.1+gitAUTOINC+d77489f18e-r0/recipe-sysroot=
                      -fdebug-prefix-map=/home/harleyzhou/openbmc/openbmc/build/tmp/work/arm1176jzs-openbmc-linux-gnueabi/intel-ipmi-oem/0.1+gitAUTOINC+d77489f18e-r0/recipe-sysroot-native=  -fvisibility-inlines-hidden  -marm -mcpu=arm1176jz-s  --sysroot=/home/harleyzhou/openbmc/openbmc/build/tmp/work/arm1176jzs-openbmc-linux-gnueabi/intel-ipmi-oem/0.1+gitAUTOINC+d77489f18e-r0/recipe-sysroot
 -fPIC   -Wno-psabi -std=gnu++17 -MD -MT CMakeFiles/zinteloemcmds.dir/src/sensorcommands.cpp.o -MF CMakeFiles/zinteloemcmds.dir/src/sensorcommands.cpp.o.d -o CMakeFiles/zinteloemcmds.dir/src/sensorcommands.cpp.o -c /home/harleyzhou/openbmc/openbmc/build/tmp/work/arm1176jzs-openbmc-linux-gnueabi/intel-ipmi-oem/0.1+gitAUTOINC+d77489f18e-r0/git/src/sensorcommands.cpp
<div>In file included from /home/harleyzhou/openbmc/openbmc/build/tmp/work/arm1176jzs-openbmc-linux-gnueabi/intel-ipmi-oem/0.1+gitAUTOINC+d77489f18e-r0/git/src/sensorcommands.cpp:17:</div>
<div>/home/harleyzhou/openbmc/openbmc/build/tmp/work/arm1176jzs-openbmc-linux-gnueabi/intel-ipmi-oem/0.1+gitAUTOINC+d77489f18e-r0/git/include/sensorcommands.hpp: In function 'ipmi_ret_t ipmi::getSensorConnection(ipmi::Context::ptr, uint8_t, std::string&, std::string&)':</div>
<div><span style="color:rgb(81,167,249)">/home/harleyzhou/openbmc/openbmc/build/tmp/work/arm1176jzs-openbmc-linux-gnueabi/intel-ipmi-oem/0.1+gitAUTOINC+d77489f18e-r0/git/include/sensorcommands.hpp:138:42: error: 'using element_type = struct ipmi::Context' {aka
 'struct ipmi::Context'} has no member named 'lun'</span></div>
<div><span style="color:rgb(81,167,249)">  138 |     path = getPathFromSensorNumber((ctx->lun << 8) | sensnum);</span></div>
<div><span style="color:rgb(81,167,249)">      |                                          ^~~</span></div>
<div><span style="color:rgb(81,167,249)">/home/harleyzhou/openbmc/openbmc/build/tmp/work/arm1176jzs-openbmc-linux-gnueabi/intel-ipmi-oem/0.1+gitAUTOINC+d77489f18e-r0/git/src/sensorcommands.cpp: In function 'ipmi::RspType<unsigned char, unsigned char, unsigned
 int> ipmi::ipmiSensorGetDeviceSdrInfo(ipmi::Context::ptr, std::optional<unsigned char>)':</span></div>
<div><span style="color:rgb(81,167,249)">/home/harleyzhou/openbmc/openbmc/build/tmp/work/arm1176jzs-openbmc-linux-gnueabi/intel-ipmi-oem/0.1+gitAUTOINC+d77489f18e-r0/git/src/sensorcommands.cpp:1438:26: error: 'using element_type = struct ipmi::Context' {aka
 'struct ipmi::Context'} has no member named 'lun'</span></div>
<div><span style="color:rgb(81,167,249)"> 1438 |                 if (ctx->lun == record->key.owner_lun)</span></div>
<div><span style="color:rgb(81,167,249)">      |                          ^~~</span></div>
<div><span style="color:rgb(81,167,249)">/home/harleyzhou/openbmc/openbmc/build/tmp/work/arm1176jzs-openbmc-linux-gnueabi/intel-ipmi-oem/0.1+gitAUTOINC+d77489f18e-r0/git/src/sensorcommands.cpp:1448:19: error: 'using element_type = struct ipmi::Context' {aka
 'struct ipmi::Context'} has no member named 'lun'</span></div>
<div><span style="color:rgb(81,167,249)"> 1448 |         if ((ctx->lun == 0) && (numSensors > 0))</span></div>
<div><span style="color:rgb(81,167,249)">      |                   ^~~</span></div>
<div><span style="color:rgb(81,167,249)">/home/harleyzhou/openbmc/openbmc/build/tmp/work/arm1176jzs-openbmc-linux-gnueabi/intel-ipmi-oem/0.1+gitAUTOINC+d77489f18e-r0/git/src/sensorcommands.cpp:1453:24: error: 'using element_type = struct ipmi::Context' {aka
 'struct ipmi::Context'} has no member named 'lun'</span></div>
<div><span style="color:rgb(81,167,249)"> 1453 |         else if ((ctx->lun == 1) && (numSensors > maxSensorsPerLUN))</span></div>
<div><span style="color:rgb(81,167,249)">      |                        ^~~</span></div>
<div><span style="color:rgb(81,167,249)">/home/harleyzhou/openbmc/openbmc/build/tmp/work/arm1176jzs-openbmc-linux-gnueabi/intel-ipmi-oem/0.1+gitAUTOINC+d77489f18e-r0/git/src/sensorcommands.cpp:1459:23: error: 'using element_type = struct ipmi::Context' {aka
 'struct ipmi::Context'} has no member named 'lun'</span></div>
<div><span style="color:rgb(81,167,249)"> 1459 |         else if (ctx->lun == 3)</span></div>
<div><span style="color:rgb(81,167,249)">      |                       ^~~</span></div>
<br>
<br>
</span></div>
</div>
</blockquote>
</div>
</div>
</body>
</html>