<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi:</div><div>I am building beignet and some errors happend:</div><div><br></div><div><pre>/home/peng_xihan/beignet_project/Beignet-1.0.0-Source/backend/src/./ir/sampler.hpp: In member function ‘void gbe::ir::SamplerSet::getData(uint32_t*) const’:
/home/peng_xihan/beignet_project/Beignet-1.0.0-Source/backend/src/./ir/sampler.hpp:51: 错误:expected initializer before ‘:’ token
/home/peng_xihan/beignet_project/Beignet-1.0.0-Source/backend/src/./ir/sampler.hpp:53: 错误:expected primary-expression before ‘}’ token
/home/peng_xihan/beignet_project/Beignet-1.0.0-Source/backend/src/./ir/sampler.hpp:53: 错误:expected ‘;’ before ‘}’ token
/home/peng_xihan/beignet_project/Beignet-1.0.0-Source/backend/src/./ir/sampler.hpp:53: 错误:expected primary-expression before ‘}’ token
/home/peng_xihan/beignet_project/Beignet-1.0.0-Source/backend/src/./ir/sampler.hpp:53: 错误:expected ‘)’ before ‘}’ token
/home/peng_xihan/beignet_project/Beignet-1.0.0-Source/backend/src/./ir/sampler.hpp:53: 错误:expected primary-expression before ‘}’ token
/home/peng_xihan/beignet_project/Beignet-1.0.0-Source/backend/src/./ir/sampler.hpp:53: 错误:expected ‘;’ before ‘}’ token
In file included from /home/peng_xihan/beignet_project/Beignet-1.0.0-Source/backend/src/./ir/unit.hpp:27,
                 from /home/peng_xihan/beignet_project/Beignet-1.0.0-Source/backend/src/./ir/printf.hpp:29,
                 from /home/peng_xihan/beignet_project/Beignet-1.0.0-Source/backend/src/./ir/function.hpp:32,
                 from /home/peng_xihan/beignet_project/Beignet-1.0.0-Source/backend/src/./ir/context.hpp:28,
                 from /home/peng_xihan/beignet_project/Beignet-1.0.0-Source/backend/src/ir/context.cpp:24:



/home/peng_xihan/beignet_project/Beignet-1.0.0-Source/backend/src/./ir/sampler.hpp:51

 class SamplerSet : public Serializable
  {
  public:
    /*! Append the specified sampler and return the allocated offset.
     *  If the speficied sampler is exist, only return the previous offset and
     *  don't append it again. Return -1, if failed.*/
    uint8_t append(uint32_t clkSamplerValue, Context *ctx);
    /*! Append a sampler defined in kernel args. */
    uint8_t append(Register samplerArg, Context *ctx);
    size_t getDataSize(void) { return samplerMap.size(); }
    size_t getDataSize(void) const { return samplerMap.size(); }
    void getData(uint32_t *samplers) const {
      for(auto &it : samplerMap)
        samplers[it.second] = it.first;
    }</pre><pre><br></pre><pre>OS is CentOS 6.5 64bit, gcc version is <span style="line-height: 1.7;">4.4.7 20120313 (Red Hat 4.4.7-4), is it gcc version related?</span><br>

</pre></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"><span title="neteasefooter"><span id="netease_mail_footer"><a href="#" target="_blank"></a></span></span>
</span></span>