Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

Error #7002

doriat__aurelien
Beginner
178 Views

Dear all,

I am beginning with Linux computer and I would use a home code for a summer job. The code is written in fortran and I have to use Intel Fortran Compiler, but, when I compile the code, an error is detected. This is the errors :

doriat@doriat-X555LB:~/lusie$ make lusie
ifort  -c -g -check all -nofor-main InputModule_LUSIE.f90
InputModule_LUSIE.f90(46): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [INHOMOGENEOUS]
      USE INHOMOGENEOUS
----------^
InputModule_LUSIE.f90(277): error #6404: This name does not have a type, and must have an explicit type.   [INHOM]
         ldest_ptrs(1)%ptrl => inhom;      ldest_name(1) = 'inhom'
-------------------------------^
InputModule_LUSIE.f90(277): error #6796: The variable must have the TARGET attribute or be a subobject of an object with the TARGET attribute, or it must have the POINTER attribute.   [INHOM]
         ldest_ptrs(1)%ptrl => inhom;      ldest_name(1) = 'inhom'
-------------------------------^
InputModule_LUSIE.f90(278): error #6404: This name does not have a type, and must have an explicit type.   [LINEAR]
         ldest_ptrs(2)%ptrl => LINEAR;     ldest_name(2) = 'LINEAR'
-------------------------------^
InputModule_LUSIE.f90(278): error #6796: The variable must have the TARGET attribute or be a subobject of an object with the TARGET attribute, or it must have the POINTER attribute.   [LINEAR]
         ldest_ptrs(2)%ptrl => LINEAR;     ldest_name(2) = 'LINEAR'
-------------------------------^
InputModule_LUSIE.f90(279): error #6404: This name does not have a type, and must have an explicit type.   [PARABOLIC]
         ldest_ptrs(3)%ptrl => PARABOLIC;  ldest_name(3) = 'PARABOLIC'
-------------------------------^
InputModule_LUSIE.f90(279): error #6796: The variable must have the TARGET attribute or be a subobject of an object with the TARGET attribute, or it must have the POINTER attribute.   [PARABOLIC]
         ldest_ptrs(3)%ptrl => PARABOLIC;  ldest_name(3) = 'PARABOLIC'
-------------------------------^
InputModule_LUSIE.f90(280): error #6404: This name does not have a type, and must have an explicit type.   [FERMI]
         ldest_ptrs(4)%ptrl => FERMI;      ldest_name(4) = 'FERMI'
-------------------------------^
InputModule_LUSIE.f90(280): error #6796: The variable must have the TARGET attribute or be a subobject of an object with the TARGET attribute, or it must have the POINTER attribute.   [FERMI]
         ldest_ptrs(4)%ptrl => FERMI;      ldest_name(4) = 'FERMI'
-------------------------------^
InputModule_LUSIE.f90(281): error #6404: This name does not have a type, and must have an explicit type.   [CYLINDER_DEV]
         ldest_ptrs(5)%ptrl => cylinder_dev;   ldest_name(5) = 'cylinder_dev'
-------------------------------^
InputModule_LUSIE.f90(281): error #6796: The variable must have the TARGET attribute or be a subobject of an object with the TARGET attribute, or it must have the POINTER attribute.   [CYLINDER_DEV]
         ldest_ptrs(5)%ptrl => cylinder_dev;   ldest_name(5) = 'cylinder_dev'
-------------------------------^
InputModule_LUSIE.f90(282): error #6404: This name does not have a type, and must have an explicit type.   [TURB_MIX]
         ldest_ptrs(6)%ptrl => TURB_MIX;   ldest_name(6) = 'TURB_MIX'
-------------------------------^
InputModule_LUSIE.f90(282): error #6796: The variable must have the TARGET attribute or be a subobject of an object with the TARGET attribute, or it must have the POINTER attribute.   [TURB_MIX]
         ldest_ptrs(6)%ptrl => TURB_MIX;   ldest_name(6) = 'TURB_MIX'
-------------------------------^
InputModule_LUSIE.f90(283): error #6404: This name does not have a type, and must have an explicit type.   [PHI_MAX]
         rdest_ptrs(1)%ptrr => PHI_MAX;    rdest_name(1) = 'PHI_MAX'
-------------------------------^
InputModule_LUSIE.f90(283): error #6796: The variable must have the TARGET attribute or be a subobject of an object with the TARGET attribute, or it must have the POINTER attribute.   [PHI_MAX]
         rdest_ptrs(1)%ptrr => PHI_MAX;    rdest_name(1) = 'PHI_MAX'
-------------------------------^
InputModule_LUSIE.f90(284): error #6404: This name does not have a type, and must have an explicit type.   [PHI_MIN]
         rdest_ptrs(2)%ptrr => PHI_MIN;    rdest_name(2) = 'PHI_MIN'
-------------------------------^
InputModule_LUSIE.f90(284): error #6796: The variable must have the TARGET attribute or be a subobject of an object with the TARGET attribute, or it must have the POINTER attribute.   [PHI_MIN]
         rdest_ptrs(2)%ptrr => PHI_MIN;    rdest_name(2) = 'PHI_MIN'
-------------------------------^
InputModule_LUSIE.f90(285): error #6404: This name does not have a type, and must have an explicit type.   [SOI]
         rdest_ptrs(3)%ptrr => SOI;        rdest_name(3) = 'SOI'
-------------------------------^
InputModule_LUSIE.f90(285): error #6796: The variable must have the TARGET attribute or be a subobject of an object with the TARGET attribute, or it must have the POINTER attribute.   [SOI]
         rdest_ptrs(3)%ptrr => SOI;        rdest_name(3) = 'SOI'
-------------------------------^
InputModule_LUSIE.f90(286): error #6404: This name does not have a type, and must have an explicit type.   [Y_0]
         rdest_ptrs(4)%ptrr => Y_0;        rdest_name(4) = 'Y_0'
-------------------------------^
InputModule_LUSIE.f90(286): error #6796: The variable must have the TARGET attribute or be a subobject of an object with the TARGET attribute, or it must have the POINTER attribute.   [Y_0]
         rdest_ptrs(4)%ptrr => Y_0;        rdest_name(4) = 'Y_0'
-------------------------------^
InputModule_LUSIE.f90(287): error #6404: This name does not have a type, and must have an explicit type.   [DY]
         rdest_ptrs(5)%ptrr => dY;         rdest_name(5) = 'dY'
-------------------------------^
InputModule_LUSIE.f90(287): error #6796: The variable must have the TARGET attribute or be a subobject of an object with the TARGET attribute, or it must have the POINTER attribute.   [DY]
         rdest_ptrs(5)%ptrr => dY;         rdest_name(5) = 'dY'
-------------------------------^
compilation aborted for InputModule_LUSIE.f90 (code 1)
Makefile:123 : la recette pour la cible « InputModule_LUSIE.o » a échouée
make: *** [InputModule_LUSIE.o] Erreur 1

 

I think that there is a porblem with the compiler or Linux.

Thank in advance for your help,

Aurélien !

 

0 Kudos
3 Replies
AThar2
Beginner
178 Views

The file “InputModule_LUSIE.f90” is using a module through the use statement. That module must be compiled before you can compile your InputModule_LUSIE.f90

I think you should revise your makefile and make sure that module file “inhomogenous” comes before.

doriat__aurelien
Beginner
178 Views

Thanks you so muche. In fact, this is a home code, and I don't know if there is a makefile. It is look like a .o folders ?

 

jimdempseyatthecove
Black Belt
178 Views

If your make file is not creating inhomogenous.mod (and inhomogenous.o and/or inhomogenous.a), then look at the 3rd party distribution for the library you are using. In its installation path you should find inhomogenous.mod. The path to this file must be included in the INCLUDE paths. You may have a similar issue with inhomogenous.o, and if applicable inhomogenous.a (though this would require an inclusion in LD_LIBRARY_PATH).

Jim Dempsey

Reply