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 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
Hi,
With gcc 8.2.0 from oe-core libxcrypt_4.4.1 builds OK. Here is the snippet from the log.do_configure (MACHINE=hikey):
---8<--- configure: loading site script /srv/builds/andrey.konovalov/no-thumb-test/hikey/build-rpb-wayland/tmp-rpb_wayland-glibc/work/aarch64-linaro-linux/libxcrypt/4.4.1-r0/recipe-sysroot/usr/share/aarch64-linaro-linux_config_site.d/glibc_config checking for a BSD-compatible install... /srv/builds/andrey.konovalov/no-thumb-test/hikey/build-rpb-wayland/tmp-rpb_wayland-glibc/hosttools/install -c checking whether build environment is sane... yes checking for aarch64-linaro-linux-strip... aarch64-linaro-linux-strip checking for a thread-safe mkdir -p... /srv/builds/andrey.konovalov/no-thumb-test/hikey/build-rpb-wayland/tmp-rpb_wayland-glibc/hosttools/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking build system type... x86_64-pc-linux-gnu checking host system type... aarch64-linaro-linux-gnu checking for aarch64-linaro-linux-gcc... aarch64-linaro-linux-gcc --sysroot=/srv/builds/andrey.konovalov/no-thumb-test/hikey/build-rpb-wayland/tmp-rpb_wayland-glibc/work/aarch64-linaro-linux/libxcrypt/4.4.1-r0/recipe-sysroot checking whether the C compiler works... yes ---8<---
Thanks, Andrey
On 21.12.2018 19:18, Daniel Díaz 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 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
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