[issue45477] configure script cannot detect float word ordering on linux
New submission from Sourish Basu : I am trying to compile Python 3.10.0 on a Red Hat linux system with intel C/C++ compilers. This is my configure command: ``` ./configure --with-computed-gotos --without-gcc --with-ensurepip=install --enable-optimizations --with-libm=-limf --with-cxx-main=icpc --with-threads --enable-ipv6 --with-signal-module CC=icc CXX=icpc LD=xild AR=xiar LIBS='-lpthread -limf -lirc' CFLAGS='-O3 -fPIC -fp-model strict -fp-model source -axCORE-AVX512,CORE-AVX2 -xAVX -ipo -prec-div -prec-sqrt' LDFLAGS='-ipo' CPP='icc -E' ``` The failure comes as follows: ``` checking for --with-libm=STRING... set LIBM="-limf" checking for --with-libc=STRING... default LIBC="" checking for x64 gcc inline assembler... yes checking whether float word ordering is bigendian... unknown configure: error: Unknown float word ordering. You need to manually preset ax_cv_c_float_words_bigendian=no (or yes) according to your system. ``` I saw issue 38527 was fixed in 3.10. Perhaps fixing it on Solaris broke it on some other platforms? -- components: Installation messages: 403951 nosy: sourish.basu priority: normal severity: normal status: open title: configure script cannot detect float word ordering on linux type: compile error versions: Python 3.10 ___ Python tracker <https://bugs.python.org/issue45477> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45477] configure script cannot detect float word ordering on linux
Sourish Basu added the comment: See attached my config log. When I tried to compile conftest.c with 'icc -c conftest.c', it produced 'conftest.o' without any errors. -- Added file: https://bugs.python.org/file50364/config.log ___ Python tracker <https://bugs.python.org/issue45477> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45477] configure script cannot detect float word ordering on linux
Sourish Basu added the comment: I executed: $ icc -c -O3 -fPIC -fp-model strict -fp-model source -axCORE-AVX512,CORE-AVX2 -xAVX -ipo -prec-div -prec-sqrt conftest.c and conftest.o was built without errors. It has one symbol, as expected: $ nm conftest.o U __must_be_linked_with_icc_or_xild D d -- ___ Python tracker <https://bugs.python.org/issue45477> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45477] configure script cannot detect float word ordering on linux
Sourish Basu added the comment: conftest.c attached -- Added file: https://bugs.python.org/file50375/conftest.c ___ Python tracker <https://bugs.python.org/issue45477> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45477] configure script cannot detect float word ordering on linux
Sourish Basu added the comment: conftest.o attached -- Added file: https://bugs.python.org/file50374/conftest.o ___ Python tracker <https://bugs.python.org/issue45477> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45477] configure script cannot detect float word ordering on linux
Sourish Basu added the comment: conftest_unoptimized.o uploaded -- Added file: https://bugs.python.org/file50376/conftest_unoptimized.o ___ Python tracker <https://bugs.python.org/issue45477> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45477] configure script cannot detect float word ordering on linux
Sourish Basu added the comment: By enabling and disabling optimization flags one by one, I figured out it was '-ipo' (inter-procedural optimization) that was the problem. Without that flag, 'configure' is successful. However, now I have a 'make' error: ./Programs/_testembed.c(1774): error: "__builtin_types_compatible_p" is only allowed in C config_set_argv(&config, Py_ARRAY_LENGTH(argv), argv); ^ compilation aborted for ./Programs/_testembed.c (code 2) make[3]: *** [Programs/_testembed.o] Error 2 -- ___ Python tracker <https://bugs.python.org/issue45477> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com