Hi Todd,

The --enable-optimizations configure option is added by the Python easyblock, see the logic at https://github.com/easybuilders/easybuild-easyblocks/blob/c50875ed2356d063bf531bad84ad2368c971adc6/easybuild/easyblocks/p/python.py#L183-L186 .

--enable-optimizations is added automatically for recent Python version (>=3.5.4), but can be disabled if desired by setting the 'optimized' easyconfig parameter to 'False' in the Python easyconfig file:

optimized = False

See also the output of "eb -a -e EB_Python", which lists the custom easyconfig parameters which can be set when in a Python easyconfig.


regards,

Kenneth

On 05/08/2020 21:20, Heywood, Todd wrote:
p.s.

As per the link, another option would be to use "make build_all" instead of 
"make" to skip the problematic tests. But I'm not sure where that chan ge would be made 
either.

T

-----Original Message-----
From: <[email protected]> on behalf of "Heywood, Todd" 
<[email protected]>
Reply-To: "[email protected]" <[email protected]>
Date: Wednesday, August 5, 2020 at 2:48 PM
To: "[email protected]" <[email protected]>
Subject: [easybuild] --enable-optimizations in configure for Python

     My question is, how do you adjust the configure options for 
Python-3.7.4-GCCcore-8.3.0.eb?
My problem is that when building with that easyconfig, it hangs (with 99% CPU) when running this test: python -m test.regrtest –-pgo Strace shows this infinitely: sendfile(37, 34, [320625896], 238360) = -1 EAGAIN (Resource temporarily unavailable) Googling implies that this is a coding issue, not something wrong with my system here (I think). So I am looking for a workaround. I saw this; https://urldefense.proofpoint.com/v2/url?u=https-3A__stackoverflow.com_questions_44708262_make-2Dinstall-2Dfrom-2Dsource-2Dpython-2Dwithout-2Drunning-2Dtests&d=DwIGaQ&c=mkpgQs82XaCKIwNV8b32dmVOmERqJe4bBOtF0CetP9Y&r=gDELKgclq4cQfVJi0jTOUg&m=3_qZsHQvWCxXVxFca9H1tbFc6n6U_w-9egOUiNNQTL4&s=QyGl4wk9DPXN1UPFx2-SrQFTbBYnsXyhp-clOw4iEfA&e= Do I do NOT want “--enable-optimizations” on the configure. I see in the log file for the build it is there: == 2020-08-05 13:19:10,821 run.py:222 INFO running cmd: ./configure --prefix=/grid/it/data/elzar/easybuild_sandbox/software/Python/3.7.4-GCCcore-8.3.0 --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --enable-shared --with-lto --enable-optimizations But there is no “configopts” in Python-3.7.4-GCCcore-8.3.0.eb. I tried over-riding the default config by adding a “configopts” line, but that just added things to the default configure options. The enable-optimizations was still there. How can I remove “enable-optimizations” from the configure for Python-3.7.4-GCCcore-8.3.0.eb? It isn’t a default for building Python (for good reason?). Thanks, Todd

Reply via email to