Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editing Makefile #11

Open
zimb3l-priv opened this issue Mar 2, 2023 · 2 comments
Open

Editing Makefile #11

zimb3l-priv opened this issue Mar 2, 2023 · 2 comments

Comments

@zimb3l-priv
Copy link

Hey! I was just trying to install the software (LINUX-X86_64-G95-MPI) and when I tried to make I realized the path for the FC and LD flags seem to be hardcoded in the makefile? Shouldn't they better use the MPI_HOME variable? Or is it necessary to install OPENMPI-1.6.5-g95-0.94-intel in the specified location?

I'd appreciate a fast reply so I can resume installation

@zimb3l-priv
Copy link
Author

zimb3l-priv commented Mar 17, 2023

When running make as is I get

make -C /software/CPMD43/CPMD/obj -f /software/CPMD43/CPMD/Makefile /software/CPMD43/CPMD/bin/cpmd.x
make[1]: Entering directory '/software/CPMD43/CPMD/obj'
/sp/vwe/prog/OPENMPI-1.6.5-g95-0.94-intel/bin -c -g -O2 -I/software/CPMD43/CPMD/src -I/software/CPMD43/CPMD/obj -o kinds.mod.o kinds.mod.f90
make[1]: /sp/vwe/prog/OPENMPI-1.6.5-g95-0.94-intel/bin: Command not found
make[1]: *** [/software/CPMD43/CPMD/Makefile:123: kinds.mod.o] Error 127
make[1]: Leaving directory '/software/CPMD43/CPMD/obj'
make: *** [Makefile:84: default,] Error 2

When changing the path from /sp/vwe/prog/OPENMPI-1.6.5-g95-0.94-intel/bin to /usr/local/openmpi/bin I get

make -C /software/CPMD43/CPMD/obj -f /software/CPMD43/CPMD/Makefile /software/CPMD43/CPMD/bin/cpmd.x
make[1]: Entering directory '/software/CPMD43/CPMD/obj'
/usr/local/openmpi/bin/mpif90  -c -g -O2 -I/software/CPMD43/CPMD/src -I/software/CPMD43/CPMD/obj -o kinds.mod.o kinds.mod.f90
kinds.mod.f90:1:1:

 /* Copyright (C) 1991-2018 Free Software Foundation, Inc.
 1
Error: Invalid character in name at (1)
kinds.mod.f90:2:3:

    This file is part of the GNU C Library.
   1
Error: Unclassifiable statement at (1)
kinds.mod.f90:4:3:

    The GNU C Library is free software; you can redistribute it and/or
   1
Error: Unclassifiable statement at (1)
kinds.mod.f90:4:39:

    The GNU C Library is free software; you can redistribute it and/or
                                       1
Error: Unclassifiable statement at (1)
kinds.mod.f90:5:3:

    modify it under the terms of the GNU Lesser General Public
   1
Error: Unclassifiable statement at (1)
kinds.mod.f90:6:3:

    License as published by the Free Software Foundation; either
   1
Error: Unclassifiable statement at (1)
kinds.mod.f90:6:57:

    License as published by the Free Software Foundation; either
                                                         1
Error: Unclassifiable statement at (1)
kinds.mod.f90:7:3:

    version 2.1 of the License, or (at your option) any later version.
   1
Error: Unclassifiable statement at (1)
kinds.mod.f90:9:3:

    The GNU C Library is distributed in the hope that it will be useful,
   1
Error: Unclassifiable statement at (1)
kinds.mod.f90:10:3:

    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1
Error: Unclassifiable statement at (1)
kinds.mod.f90:10:29:

    but WITHOUT ANY WARRANTY; without even the implied warranty of
                             1
Error: Unclassifiable statement at (1)
kinds.mod.f90:11:3:

    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1
Error: Unclassifiable statement at (1)
kinds.mod.f90:12:3:

    Lesser General Public License for more details.
   1
Error: Unclassifiable statement at (1)
kinds.mod.f90:14:3:

    You should have received a copy of the GNU Lesser General Public
   1
Error: Unclassifiable statement at (1)
kinds.mod.f90:15:3:

    License along with the GNU C Library; if not, see
   1
Error: Unclassifiable statement at (1)
kinds.mod.f90:15:41:

    License along with the GNU C Library; if not, see
                                         1
Error: Unclassifiable statement at (1)
kinds.mod.f90:16:4:

    <http://www.gnu.org/licenses/>.  */
    1
Error: Invalid character in name at (1)
kinds.mod.f90:19:1:

 /* This header is separate from features.h so that the compiler can
 1
Error: Invalid character in name at (1)
kinds.mod.f90:20:3:

    include it implicitly at the start of every compilation.  It must
   1
Error: Unclassifiable statement at (1)
kinds.mod.f90:21:3:

    not itself include <features.h> or any other header that includes
   1
Error: Unclassifiable statement at (1)
kinds.mod.f90:22:4:

    <features.h> because the implicit include comes before any feature
    1
Error: Invalid character in name at (1)
kinds.mod.f90:23:3:

    test macros that may be defined in a source file before it first
   1
Error: Unclassifiable statement at (1)
kinds.mod.f90:24:3:

    explicitly includes a system header.  GCC knows the name of this
   1
Error: Unclassifiable statement at (1)
kinds.mod.f90:25:3:

    header in order to preinclude it.  */
   1
Error: Unclassifiable statement at (1)
kinds.mod.f90:27:1:

 /* glibc's intent is to support the IEC 559 math functionality, real
 1
Error: Invalid character in name at (1)
kinds.mod.f90:28:3:

    and complex.  If the GCC (4.9 and later) predefined macros
   1
Error: Unclassifiable statement at (1)
kinds.mod.f90:29:3:

    specifying compiler intent are available, use them to determine
   1
Error: Unclassifiable statement at (1)
kinds.mod.f90:30:3:

    whether the overall intent is to support these features; otherwise,
   1
Error: Unclassifiable statement at (1)
kinds.mod.f90:30:60:

    whether the overall intent is to support these features; otherwise,
                                                            1
Error: Unclassifiable statement at (1)
kinds.mod.f90:31:3:

    presume an older compiler has intent to support these features and
   1
Error: Unclassifiable statement at (1)
kinds.mod.f90:32:3:

    define these macros by default.  */
   1
Error: Unclassifiable statement at (1)
kinds.mod.f90:36:1:

 /* wchar_t uses Unicode 10.0.0.  Version 10.0 of the Unicode Standard is
 1
Error: Invalid character in name at (1)
kinds.mod.f90:37:3:

    synchronized with ISO/IEC 10646:2017, fifth edition, plus
   1
Error: Unclassifiable statement at (1)
kinds.mod.f90:38:3:

    the following additions from Amendment 1 to the fifth edition:
   1
Error: Unclassifiable statement at (1)
kinds.mod.f90:39:3:

    - 56 emoji characters
   1
Error: Unclassifiable statement at (1)
kinds.mod.f90:40:3:

    - 285 hentaigana
   1
Error: Unclassifiable statement at (1)
kinds.mod.f90:41:3:

    - 3 additional Zanabazar Square characters */
   1
Error: Unclassifiable statement at (1)
kinds.mod.f90:61:16:

 END MODULE kinds
                1
Fatal Error: Can't open module file ‘kinds.mod0’ for writing at (1): Permission denied
compilation terminated.
make[1]: *** [/software/CPMD43/CPMD/Makefile:123: kinds.mod.o] Error 1
make[1]: Leaving directory '/software/CPMD43/CPMD/obj'
make: *** [Makefile:84: default,] Error 2

@zimb3l-priv
Copy link
Author

zimb3l-priv commented Apr 3, 2023

Was able to solve this. Would probably be an idea not to hardcode all your flag destinations in the configurations files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant