From 6b8b53493a1188a5baa56a133574daac239730e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bob=20Dr=C3=B6ge?= Date: Mon, 28 Oct 2024 10:57:07 +0100 Subject: [PATCH] remove -m64 flag for architectures other than x86-64 --- .../s/SIONlib/SIONlib-1.7.7-GCCcore-11.2.0-tools.eb | 4 ++++ .../s/SIONlib/SIONlib-1.7.7-GCCcore-11.3.0-tools.eb | 4 ++++ .../s/SIONlib/SIONlib-1.7.7-GCCcore-12.2.0-tools.eb | 4 ++++ .../s/SIONlib/SIONlib-1.7.7-GCCcore-12.3.0-tools.eb | 4 ++++ .../s/SIONlib/SIONlib-1.7.7-GCCcore-13.2.0-tools.eb | 4 ++++ .../s/SIONlib/SIONlib-1.7.7-GCCcore-13.3.0-tools.eb | 4 ++++ 6 files changed, 24 insertions(+) diff --git a/easybuild/easyconfigs/s/SIONlib/SIONlib-1.7.7-GCCcore-11.2.0-tools.eb b/easybuild/easyconfigs/s/SIONlib/SIONlib-1.7.7-GCCcore-11.2.0-tools.eb index a3dfd0929ae..30b9729414a 100644 --- a/easybuild/easyconfigs/s/SIONlib/SIONlib-1.7.7-GCCcore-11.2.0-tools.eb +++ b/easybuild/easyconfigs/s/SIONlib/SIONlib-1.7.7-GCCcore-11.2.0-tools.eb @@ -39,6 +39,10 @@ builddependencies = [ ('binutils', '2.37'), ] +# remove -m64 flag from PFLAG variable in Makefiles for CPU architectures that don't support it +if ARCH != 'x86_64': + preconfigopts = 'sed -i "s|PFLAG = -m\\$(PREC)|PFLAG = |" mf/Makefile.defs.linux-gomp* && ' + configopts = '--disable-cxx --disable-fortran --disable-ompi ' # Comment it out if you have Xeon Phi: diff --git a/easybuild/easyconfigs/s/SIONlib/SIONlib-1.7.7-GCCcore-11.3.0-tools.eb b/easybuild/easyconfigs/s/SIONlib/SIONlib-1.7.7-GCCcore-11.3.0-tools.eb index 0c340d04126..f948c852c2d 100644 --- a/easybuild/easyconfigs/s/SIONlib/SIONlib-1.7.7-GCCcore-11.3.0-tools.eb +++ b/easybuild/easyconfigs/s/SIONlib/SIONlib-1.7.7-GCCcore-11.3.0-tools.eb @@ -39,6 +39,10 @@ builddependencies = [ ('binutils', '2.38'), ] +# remove -m64 flag from PFLAG variable in Makefiles for CPU architectures that don't support it +if ARCH != 'x86_64': + preconfigopts = 'sed -i "s|PFLAG = -m\\$(PREC)|PFLAG = |" mf/Makefile.defs.linux-gomp* && ' + configopts = '--disable-cxx --disable-fortran --disable-ompi ' # Comment it out if you have Xeon Phi: diff --git a/easybuild/easyconfigs/s/SIONlib/SIONlib-1.7.7-GCCcore-12.2.0-tools.eb b/easybuild/easyconfigs/s/SIONlib/SIONlib-1.7.7-GCCcore-12.2.0-tools.eb index d9149c29346..3921083e94f 100644 --- a/easybuild/easyconfigs/s/SIONlib/SIONlib-1.7.7-GCCcore-12.2.0-tools.eb +++ b/easybuild/easyconfigs/s/SIONlib/SIONlib-1.7.7-GCCcore-12.2.0-tools.eb @@ -39,6 +39,10 @@ builddependencies = [ ('binutils', '2.39'), ] +# remove -m64 flag from PFLAG variable in Makefiles for CPU architectures that don't support it +if ARCH != 'x86_64': + preconfigopts = 'sed -i "s|PFLAG = -m\\$(PREC)|PFLAG = |" mf/Makefile.defs.linux-gomp* && ' + configopts = '--disable-cxx --disable-fortran --disable-ompi ' # Comment it out if you have Xeon Phi: diff --git a/easybuild/easyconfigs/s/SIONlib/SIONlib-1.7.7-GCCcore-12.3.0-tools.eb b/easybuild/easyconfigs/s/SIONlib/SIONlib-1.7.7-GCCcore-12.3.0-tools.eb index 738875b2a89..2a1c723de5a 100644 --- a/easybuild/easyconfigs/s/SIONlib/SIONlib-1.7.7-GCCcore-12.3.0-tools.eb +++ b/easybuild/easyconfigs/s/SIONlib/SIONlib-1.7.7-GCCcore-12.3.0-tools.eb @@ -39,6 +39,10 @@ builddependencies = [ ('binutils', '2.40'), ] +# remove -m64 flag from PFLAG variable in Makefiles for CPU architectures that don't support it +if ARCH != 'x86_64': + preconfigopts = 'sed -i "s|PFLAG = -m\\$(PREC)|PFLAG = |" mf/Makefile.defs.linux-gomp* && ' + configopts = '--disable-cxx --disable-fortran --disable-ompi ' # Comment it out if you have Xeon Phi: diff --git a/easybuild/easyconfigs/s/SIONlib/SIONlib-1.7.7-GCCcore-13.2.0-tools.eb b/easybuild/easyconfigs/s/SIONlib/SIONlib-1.7.7-GCCcore-13.2.0-tools.eb index bb8e791815d..90f04ab5dff 100644 --- a/easybuild/easyconfigs/s/SIONlib/SIONlib-1.7.7-GCCcore-13.2.0-tools.eb +++ b/easybuild/easyconfigs/s/SIONlib/SIONlib-1.7.7-GCCcore-13.2.0-tools.eb @@ -39,6 +39,10 @@ builddependencies = [ ('binutils', '2.40'), ] +# remove -m64 flag from PFLAG variable in Makefiles for CPU architectures that don't support it +if ARCH != 'x86_64': + preconfigopts = 'sed -i "s|PFLAG = -m\\$(PREC)|PFLAG = |" mf/Makefile.defs.linux-gomp* && ' + configopts = '--disable-cxx --disable-fortran --disable-ompi ' # Comment it out if you have Xeon Phi: diff --git a/easybuild/easyconfigs/s/SIONlib/SIONlib-1.7.7-GCCcore-13.3.0-tools.eb b/easybuild/easyconfigs/s/SIONlib/SIONlib-1.7.7-GCCcore-13.3.0-tools.eb index 57898c7b05c..ff0762c0c4e 100644 --- a/easybuild/easyconfigs/s/SIONlib/SIONlib-1.7.7-GCCcore-13.3.0-tools.eb +++ b/easybuild/easyconfigs/s/SIONlib/SIONlib-1.7.7-GCCcore-13.3.0-tools.eb @@ -39,6 +39,10 @@ builddependencies = [ ('binutils', '2.42'), ] +# remove -m64 flag from PFLAG variable in Makefiles for CPU architectures that don't support it +if ARCH != 'x86_64': + preconfigopts = 'sed -i "s|PFLAG = -m\\$(PREC)|PFLAG = |" mf/Makefile.defs.linux-gomp* && ' + configopts = '--disable-cxx --disable-fortran --disable-ompi ' # Comment it out if you have Xeon Phi: