On 30/07/2019 12:33, Markus Geimer wrote:
On 7/30/19 12:03 PM, Kenneth Hoste wrote:
On 22/07/2019 21:23, Mikael Öhman wrote:
It's not like the python module couldn't load the binutils it was
built with, it's just not done like that.
The problem Alastair ran into actually shows that binutils should be
considered a runtime dependency of Python (or actually, of pip which is
included with Python) rather than only a build dependency.
But isn't that the case for everything else built with GCCcore?
Theoretically maybe, but in practice, not really.
binutils is only required when you'll be compiling/linking stuff, so it
depends heavily on the use case.
That should be a fairly easy change to make, without much impact
elsewhere?
Assume you first load Python @ GCCcore, which implicitly loads binutils
built with dummy. And the you load GCC, which implicitly tries to load
binutils built with GCCcore. May this lead to issues with some setups?
We wouldn't be loading the binutils built with dummy as a dependency for
Python, but the one built with GCCcore.
The binutils built with dummy is only used to bootstrap GCCcore,
afterwards it's basically useless.
regards,
Kenneth
Markus
On Mon, Jul 22, 2019 at 7:38 PM Alastair Neil <[email protected]
<mailto:[email protected]>> wrote:
Looking at the modules easybuild built for binutils it seems there
are two versions one which loads GCCcore and one that is standalone
presumable for such cases as you just described.
No, not at all; the standalone one is just meant for boot-strapping
the toolchains.
Could the python module be changed to import the binutils that load
GCCcore rather than loading GCCcore?
No that wouldn't really make much sense. In fact, the only reason you
get to load GCCcore is because of the flat naming scheme you have used
for your modules.
In a hierarchical naming scheme, you would need to select the
toolchain/compiler first, before you could even load Python:
module load GCCcore/8.2.0 # this makes the Python/3.7.2 available
module load Python/3.7.2
It's not like Python couldn't load binutils. We have intentionally
chosen to not to. This applies to all build-dependencies.
--
Dr. Markus Geimer
Juelich Supercomputing Centre
Institute for Advanced Simulation
Forschungszentrum Juelich GmbH
52425 Juelich, Germany
Phone: +49-2461-61-1773
Fax: +49-2461-61-6656
E-Mail: [email protected]
WWW: http://www.fz-juelich.de/jsc
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Volker Rieke
Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------