On Fri, Dec 21, 2018 at 8:19 AM Daniel Díaz daniel.diaz@linaro.org wrote:
Hello!
This is the failure that Andrey reported:
configure:3197: checking whether the C compiler works configure:3219: i686-linaro-linux-gcc -m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=/home/daniel.diaz/lkft-master/build-intel-core2-32/tmp-rpb-glibc/work/core2-32-linaro-linux/libxcrypt/4.4.1-r0/recipe-sysroot -I/home/daniel.diaz/lkft-master/build-intel-core2-32/tmp-rp b-glibc/work/core2-32-linaro-linux/libxcrypt/4.4.1-r0/recipe-sysroot/usr/include -Wno-error=missing-attributes -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/daniel.diaz/lkft-master/build-intel-core2-32/tmp-rpb-glibc/work/core2-32-linaro-linux/libxcrypt/4.4.1-r0= /usr/src/debug/libxcrypt/4.4.1-r0 -fdebug-prefix-map=/home/daniel.diaz/lkft-master/build-intel-core2-32/tmp-rpb-glibc/work/core2-32-linaro-linux/libxcrypt/4.4.1-r0/recipe-sysroot= -fdebug-prefix-map=/home/daniel.diaz/lkft-master/build-intel-core2-32/tmp-rpb-glibc/work/core2-32-linaro- linux/libxcrypt/4.4.1-r0/recipe-sysroot-native= -I/home/daniel.diaz/lkft-master/build-intel-core2-32/tmp-rpb-glibc/work/core2-32-linaro-linux/libxcrypt/4.4.1-r0/recipe-sysroot/usr/include -Wno-error=missing-attributes -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed conftest.c >&5 cc1: error: -Werror=missing-attributes: no option -Wmissing-attributes cc1: error: -Werror=missing-attributes: no option -Wmissing-attributes
you must be using older gcc to compile which does not have this option so I guess one option is that you remove it in your toolchain layer
TARGET_CPPFLAGS_remove = "-Wno-error=missing-attributes" CPPFLAGS_remove = "-Wno-error=missing-attributes"
other option is to make configury smart so it can detect if compiler supports this option before adding it directly via some m4 macro file.
configure:3223: $? = 1 configure:3261: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "xcrypt" | #define PACKAGE_TARNAME "libxcrypt" | #define PACKAGE_VERSION "4.4.1" | #define PACKAGE_STRING "xcrypt 4.4.1" | #define PACKAGE_BUGREPORT "https://github.com/besser82/libxcrypt/issues" | #define PACKAGE_URL "https://github.com/besser82/libxcrypt" | #define PACKAGE "libxcrypt" | #define VERSION "4.4.1" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3266: error: in `/home/daniel.diaz/lkft-master/build-intel-core2-32/tmp-rpb-glibc/work/core2-32-linaro-linux/libxcrypt/4.4.1-r0/build': configure:3268: error: C compiler cannot create executables
Greetings!
Daniel Díaz daniel.diaz@linaro.org _______________________________________________ OpenEmbedded mailing list OpenEmbedded@lists.linaro.org https://lists.linaro.org/mailman/listinfo/openembedded