The native pkg doesn't need the TOOLCHAIN_OPTIONS, but it maybe used by native pkgs, for example: The cmake.bbclass uses TOOLCHAIN_OPTIONS: OECMAKE_C_FLAGS ?= "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} ${CPPFLAGS}" and TOOLCHAIN_OPTIONS is: TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TARGET}" If a native pkg inherits cmake.bbclass, then: TOOLCHAIN_OPTIONS = " --sysroot=" and OECMAKE_C_FLAGS would be: ${HOST_CC_ARCH} --sysroot= ${CPPFLAGS} This would cause unexpected errors, I think that we can make TOOLCHAIN_OPTIONS empty in native.bbclass since native pkgs doesn't need it.
Fixed: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=5b67d645e33c304119257c59d41645b07df409c4
*** Bug 1505 has been marked as a duplicate of this bug. ***