[meta-intel] Can not compile with toolchain of populate-sdk

Nobuhiko Takesue n.takesue at mbel.co.jp
Tue Feb 2 22:39:48 PST 2016


Hello

I was download Intel Quark BSP 1.2 from Intel download site.
Then I was built image-full andtoolchain (meta-ide-support and populate-sdk).

So I did compile the following source by using toolchain (meta-ide-support and populate-sdk).

-----
#include <stdlib.h>
#include <stdio.h>

main() {
   printf("MB_CUR_MAX=%d\n", MB_CUR_MAX);
}
-----

The source code could compile with the toolchain of meta-ide-support.
However it could not compile with the toolchain of populate-sdk.

I investigated this case, the stdlib.h is different. Please refer to the following.

----- toolchain of meta-ide-support -----
/* Maximum length of a multibyte character in the current locale. */
#define MB_CUR_MAX (__ctype_get_mb_cur_max ())
extern size_t __ctype_get_mb_cur_max (void) __THROW __wur;
-----

----- toolchain of populate-sdk -----
/* Maximum length of a multibyte character in the current locale. */
#if 0
#define MB_CUR_MAX (__ctype_get_mb_cur_max ())
extern size_t __ctype_get_mb_cur_max (void) __THROW __wur;
#else
# define MB_CUR_MAX (_stdlib_mb_cur_max ())
extern size_t _stdlib_mb_cur_max (void) __THROW __wur;
#endif
-----

Why that is different?
Please advise how to fix this issue.
I know it can fix that change to "#if 1" from "#if 0".
I want to know another how to.

Thanks,
Nobuhiko Takesue





More information about the meta-intel mailing list