Skip to content

Very slow building of stdlib, and high memory usage #217

Closed
@vmagnin

Description

@vmagnin

I have git cloned the repository in a Fedora 32 virtual machine.
I have encountered two problems, one minor, one critical:

  • The README.md file told me to install fypp using $ pip install fypp but I obtained that error:
...
    copying build/lib/fypp.py -> /usr/local/lib/python3.8/site-packages
    error: could not create '/usr/local/lib/python3.8/site-packages/fypp.py': Permission denied
...

It was easily fixed by using sudo: $ sudo pip install fypp

  • Then I typed: $ cmake -B build, then $ cmake --build build but the stdlib_experimental_stats_moment.f90 gives a lot of warnings (hundreds ?) and is freezing the build process:
/home/osboxes/stdlib/build/src/stdlib_experimental_stats_moment.f90:47:12:

   47 |         n = size(x, kind = int64)
      |            1
Warning: Possible change of value in conversion from INTEGER(8) to REAL(4) at (1) [-Wconversion]
/home/osboxes/stdlib/build/src/stdlib_experimental_stats_moment.f90:24:12:

   24 |         n = size(x, kind = int64)
      |            1
Warning: Possible change of value in conversion from INTEGER(8) to REAL(4) at (1) [-Wconversion]

I have waited several minutes, but it is still frozen. The compiler is burning the CPU.
The gfortran version is:

[osboxes@localhost stdlib]$ gfortran --version
GNU Fortran (GCC) 10.1.1 20200507 (Red Hat 10.1.1-1)
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions