We are getting these constraint errors wherver OSAF calls like m_NCS_SEL_OBJ_ZERO(&nSelObjSet) is called in our code. This is while cross compiling using tilera compiler - tile-g++. With g++ it always compiles fine. Any pointers would be helpful.
Note: m_NCS_SEL_OBJ_ZERO is a macro and replaced by FD_ZERO
Sample Code:
// initialise and set selection object set
m_NCS_SEL_OBJ_ZERO(&nSelObjSet);
m_NCS_SEL_OBJ_SET(nMdsSelObj, &nSelObjSet);**
Errors are as follows:
/u/TILERA/STACK/DEV/lte/lte_enb/enb_cfgmgr/src/ConfigManagerThread.cxx:
"/u/TILERA/STACK/DEV/lte/lte_enb/enb_cfgmgr/src/ConfigManagerThread.cxx", line 103: error:
unknown asm constraint letter 'c'
m_NCS_SEL_OBJ_ZERO(&nSelObjSet);
^
"/u/TILERA/STACK/DEV/lte/lte_enb/enb_cfgmgr/src/ConfigManagerThread.cxx", line 103: error:
unknown asm constraint letter 'D'
m_NCS_SEL_OBJ_ZERO(&nSelObjSet);
^
"/u/TILERA/STACK/DEV/lte/lte_enb/enb_cfgmgr/src/ConfigManagerThread.cxx", line 103: error:
unknown asm constraint letter 'a'
m_NCS_SEL_OBJ_ZERO(&nSelObjSet);
^
"/u/TILERA/STACK/DEV/lte/lte_enb/enb_cfgmgr/src/ConfigManagerThread.cxx", line 110: error:
unknown asm constraint letter 'q'
if (m_NCS_SEL_OBJ_ISSET(nMdsSelObj, &nSelObjSet))
^
4 errors detected in the compilation of "/u/TILERA/STACK/DEV/lte/lte_enb/enb_cfgmgr/src/ConfigManagerThread.cxx".
/u/TILERA/STACK/DEV/lte/lte_enb/enb_cfgmgr/src/EnbCfgMgr.cxx:
Arun L.