[issue45477] configure script cannot detect float word ordering on linux

2021-10-22 Thread Sourish Basu
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:

[issue45477] configure script cannot detect float word ordering on linux

2021-10-20 Thread Christian Heimes
Christian Heimes added the comment: One of your optimization flags breaks the AX_C_FLOAT_WORDS_BIGENDIAN macro. The optimized object file does not have seesnoon in its data section. $ objdump -x conftest.o conftest_unoptimized.o conftest.o: file format elf64-x86-64 conftest.o

[issue45477] configure script cannot detect float word ordering on linux

2021-10-20 Thread Sourish Basu
Sourish Basu added the comment: conftest_unoptimized.o uploaded -- Added file: https://bugs.python.org/file50376/conftest_unoptimized.o ___ Python tracker ___

[issue45477] configure script cannot detect float word ordering on linux

2021-10-20 Thread Christian Heimes
Christian Heimes added the comment: Your conftest.o does not contain the magic string "seesnoon". Either ICC uses a different serialization format or your CFLAGS optimize the value away. Please run icc -c -o conftest_unoptimized.o conftest.c and upload "conftest_unoptimized.o".

[issue45477] configure script cannot detect float word ordering on linux

2021-10-20 Thread Sourish Basu
Sourish Basu added the comment: conftest.o attached -- Added file: https://bugs.python.org/file50374/conftest.o ___ Python tracker ___

[issue45477] configure script cannot detect float word ordering on linux

2021-10-20 Thread Sourish Basu
Sourish Basu added the comment: conftest.c attached -- Added file: https://bugs.python.org/file50375/conftest.c ___ Python tracker ___

[issue45477] configure script cannot detect float word ordering on linux

2021-10-20 Thread Christian Heimes
Christian Heimes added the comment: Please upload and attach the .o file to this bug. I need to see the content of the file. -- ___ Python tracker ___

[issue45477] configure script cannot detect float word ordering on linux

2021-10-17 Thread Sourish Basu
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

[issue45477] configure script cannot detect float word ordering on linux

2021-10-17 Thread Christian Heimes
Christian Heimes added the comment: Please build conftest.o with compiler flags icc -c -O3 -fPIC -fp-model strict -fp-model source -axCORE-AVX512,CORE-AVX2 -xAVX -ipo -prec-div -prec-sqrt and attach the file. -- ___ Python tracker

[issue45477] configure script cannot detect float word ordering on linux

2021-10-16 Thread Sourish Basu
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

[issue45477] configure script cannot detect float word ordering on linux

2021-10-15 Thread Christian Heimes
Christian Heimes added the comment: Python uses the AX_C_FLOAT_WORDS_BIGENDIAN macro from autoconf-archive to detect byte order of floats. You can find the code at https://www.gnu.org/software/autoconf-archive/ax_c_float_words_bigendian.html . Please attach your config.log file and the

[issue45477] configure script cannot detect float word ordering on linux

2021-10-14 Thread Sourish Basu
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