Closed mloubout closed 2 months ago
An x86-64-v2
baseline is not unique to Amazon Linux, and third party software will need to adapt in order to remain compatible with modern major Linux distributions.
This is not what this is about. The CFLAGS
of the python3 configuration are too restrictive.
For reference:
https://docs.python.org/3/using/configure.html#envvar-CFLAGS_NODIST
Which explicitly uses -Werror
as something that should not be in the config cflags. Having every flag duplicate is also not a good sign.
third party software will need to adapt in order to remain compatible with modern major Linux distributions.
Considering every version of the NVIDIA HPC SDK of the past two years (I stopped trying at 22.9) fails to install mpi4py
because of those config flags on amazon Linux because x86-64-v2
restricts to a version too old for nvc, I really doubt they will revert their entire HPC SDK for amazon Linux and keep using something else.
Describe the bug
It looks like the python3
cflags
are a bit too restrictive in the docker imagepublic.ecr.aws/amazonlinux/amazonlinux:2023
To Reproduce
Steps to reproduce the behavior:
then, in the docker image
Some of these flags are very problematic, as for example
nvc
(nvidia compiler) does not supportx86-64-v2
making the amazon linux image unusable as a base fornvc
based workflows (e.g installingmpi4py
withnvc
for cross GPU mpi in python) Expected behavior-march
should not be specified here as it should stay generic enough to be run on any CPU ec2 instance-m64
and-march
are there twice)Additional context
It is also worth mentioning that
public.ecr.aws/amazonlinux/amazonlinux:2
has issues as well that are more problematic as thecflags
contains c++ exculive flags that breaks some C compilerswhere you can see for example
-fexceptions
which is a c++-only cflag