-
Notifications
You must be signed in to change notification settings - Fork 2.4k
.F90(498): error #7002: Error in opening the compiled module file. Check INCLUDE paths. #13479
Copy link
Copy link
Closed
Description
My package can be installed successfully when using exactly the same configuration when not using Spack.
./configure --enable-intel --enable-fftw --with-fftw=$FFTWHOME FC=mpif90 CC=mpicc
However, when using spack install p3dfft %intel ^intel-mpi +fftw , I got following error message :
==> [email protected] : has external module in fftw/3.3.4
==> [email protected] : is actually installed in /opt/fftw/3.3.4/intel/mvapich2_ib
==> [email protected] : already registered in DB
==> [email protected] : has external module in intelmpi/2016.3.210
==> [email protected] : is actually installed in /opt/intel/2016.3.210/compilers_and_libraries/linux/mpi/intel64
==> [email protected] : already registered in DB
==> Installing p3dfft
==> Searching for binary cache of p3dfft
==> Warning: No Spack mirrors are currently configured
==> No binary for p3dfft found: installing from source
==> Warning: Suspicious requests to set or unset 'CC' found
==> Warning: env.set('CC', os.path.join(link_dir, compiler.link_paths['cc'])) at /home/shera/spack/spack/lib/spack/spack/build_environment.py:185
==> Warning: ---> spack_env.set('FC', spec['mpi'].mpifc) at /home/shera/spack-private-repo/p3dfft-3/packages/p3dfft/package.py:56
==> Warning: Suspicious requests to set or unset 'CXX' found
==> Warning: env.set('CXX', os.path.join(link_dir, compiler.link_paths['cxx'])) at /home/shera/spack/spack/lib/spack/spack/build_environment.py:188
==> Warning: ---> at /home/shera/spack-private-repo/p3dfft-3/packages/p3dfft/package.py:58
==> Warning: Suspicious requests to set or unset 'FC' found
==> Warning: env.set('FC', os.path.join(link_dir, compiler.link_paths['fc'])) at /home/shera/spack/spack/lib/spack/spack/build_environment.py:194
==> Warning: ---> spack_env.set('CXX', spec['mpi'].mpicxx) at /home/shera/spack-private-repo/p3dfft-3/packages/p3dfft/package.py:57
==> Using cached archive: /home/shera/spack/spack/var/spack/cache/p3dfft/p3dfft-2.7.9.tar.gz
==> Staging archive: /home/shera/spack/spack/var/spack/stage/p3dfft-2.7.9-6eik3aj47n3i5aosqrbcuqqyu2djw6sn/master.tar.gz
==> Created stage in /home/shera/spack/spack/var/spack/stage/p3dfft-2.7.9-6eik3aj47n3i5aosqrbcuqqyu2djw6sn
==> No patches needed for p3dfft
==> Building p3dfft [Package]
==> Executing phase: 'install'
==> Error: ProcessError: Command exited with status 2:
'make' '-j16'
79 errors found in build log:
79 /opt/intel/2016.3.210/compilers_and_libraries_2016.3.210/linux/mpi/
intel64/bin/mpiifort -DHAVE_CONFIG_H -I. -I.. -I/opt/fftw/3.3.4/int
el/mvapich2_ib/include -DMEASURE -DFFTW -g -c -o fft_spec.o fft_s
pec.F90
80 /opt/intel/2016.3.210/compilers_and_libraries_2016.3.210/linux/mpi/
intel64/bin/mpiifort -DHAVE_CONFIG_H -I. -I.. -I/opt/fftw/3.3.4/int
el/mvapich2_ib/include -DMEASURE -DFFTW -g -c -o module.o module.
F90
81 /opt/intel/2016.3.210/compilers_and_libraries_2016.3.210/linux/mpi/
intel64/bin/mpiifort -DHAVE_CONFIG_H -I. -I.. -I/opt/fftw/3.3.4/int
el/mvapich2_ib/include -DMEASURE -DFFTW -g -c -o fft_init.o fft_i
nit.F90
82 /opt/intel/2016.3.210/compilers_and_libraries_2016.3.210/linux/mpi/
intel64/bin/mpiifort -DHAVE_CONFIG_H -I. -I.. -I/opt/fftw/3.3.4/int
el/mvapich2_ib/include -DMEASURE -DFFTW -g -c -o fft_exec.o fft_e
xec.F90
83 /opt/intel/2016.3.210/compilers_and_libraries_2016.3.210/linux/mpi/
intel64/bin/mpiifort -DHAVE_CONFIG_H -I. -I.. -I/opt/fftw/3.3.4/int
el/mvapich2_ib/include -DMEASURE -DFFTW -g -c -o wrap.o wrap.F90
84 make[2]: [all-local] Error 1 (ignored)
>> 85 fft_init.F90(90): error #7002: Error in opening the compiled module
file. Check INCLUDE paths. [P3DFFT]
>> 86 wrap.F90(84): error #7002: Error in opening the compiled module fil
e. Check INCLUDE paths. [P3DFFT]
>> 87 fft_exec.F90(88): error #7002: Error in opening the compiled module
file. Check INCLUDE paths. [P3DFFT]
88 use p3dfft
89 use p3dfft
90 use p3dfft
91 ----------^
92 ----------^
93 ----------^
>> 94 fft_init.F90(95): error #6683: A kind type parameter must be a comp
ile-time constant. [P3DFFT_TYPE]
95 complex(p3dfft_type) X(N*m),Y(N*m)
96 --------------^
>> 97 fft_exec.F90(93): error #6683: A kind type parameter must be a comp
ile-time constant. [P3DFFT_TYPE]
>> 98 wrap.F90(87): error #6683: A kind type parameter must be a compile-
time constant. [P3DFFT_TYPE]
99 complex(p3dfft_type) In(xsize_in,ny,0:zsize_in-1),Out(xsize_o
ut,ny,0:zsize_out-1)
100 --------------^
101 real(p3dfft_type), TARGET :: IN(dim_in,nv)
102 -----------^
>> 103 wrap.F90(88): error #6683: A kind type parameter must be a compile-
time constant. [P3DFFT_TYPE]
104 complex(p3dfft_type), TARGET :: OUT(dim_out,nv)
105 --------------^
>> 106 fft_init.F90(113): error #7002: Error in opening the compiled modul
e file. Check INCLUDE paths. [P3DFFT]
107 use p3dfft
108 ----------^
>> 109 fft_exec.F90(105): error #7002: Error in opening the compiled modul
e file. Check INCLUDE paths. [P3DFFT]
>> 110 wrap.F90(102): error #7002: Error in opening the compiled module fi
le. Check INCLUDE paths. [P3DFFT]
111 use p3dfft
112 use p3dfft
113 ----------^
114 ----------^
>> 115 fft_exec.F90(110): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
>> 116 wrap.F90(105): error #6683: A kind type parameter must be a compile
-time constant. [P3DFFT_TYPE]
117 complex(p3dfft_type) In(xsize_in,ny,0:zsize_in-1),Out(xsize_o
ut,ny,0:zsize_out-1)
118 --------------^
119 real(p3dfft_type), TARGET :: OUT(dim_out,nv)
120 -----------^
>> 121 wrap.F90(106): error #6683: A kind type parameter must be a compile
-time constant. [P3DFFT_TYPE]
122 complex(p3dfft_type), TARGET :: IN(dim_in,nv)
123 --------------^
>> 124 fft_init.F90(118): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
125 complex(p3dfft_type) X(N*m),Y(N*m)
126 --------------^
>> 127 wrap.F90(120): error #7002: Error in opening the compiled module fi
le. Check INCLUDE paths. [P3DFFT]
128 use p3dfft
129 ----------^
>> 130 fft_init.F90(136): error #7002: Error in opening the compiled modul
e file. Check INCLUDE paths. [P3DFFT]
131 use p3dfft
132 ----------^
>> 133 wrap.F90(122): error #6683: A kind type parameter must be a compile
-time constant. [P3DFFT_TYPE]
134 real(p3dfft_type), TARGET :: IN(1,1,*)
135 -----------^
>> 136 wrap.F90(123): error #6683: A kind type parameter must be a compile
-time constant. [P3DFFT_TYPE]
137 complex(p3dfft_type), TARGET :: OUT(1,1,*)
138 --------------^
>> 139 fft_exec.F90(124): error #7002: Error in opening the compiled modul
e file. Check INCLUDE paths. [P3DFFT]
140 use p3dfft
141 ----------^
>> 142 fft_exec.F90(129): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
143 complex(p3dfft_type) X(N*stride_x1+m*stride_x2),Y(N*stride_y1
+m*stride_y2)
144 --------------^
>> 145 fft_init.F90(141): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
146 complex(p3dfft_type) X(N*m),Y(N*m)
147 --------------^
>> 148 wrap.F90(137): error #7002: Error in opening the compiled module fi
le. Check INCLUDE paths. [P3DFFT]
149 use p3dfft
150 ----------^
>> 151 fft_init.F90(161): error #7002: Error in opening the compiled modul
e file. Check INCLUDE paths. [P3DFFT]
152 use p3dfft
153 ----------^
>> 154 wrap.F90(139): error #6683: A kind type parameter must be a compile
-time constant. [P3DFFT_TYPE]
155 real(p3dfft_type), TARGET :: OUT(1,1,*)
156 -----------^
>> 157 wrap.F90(140): error #6683: A kind type parameter must be a compile
-time constant. [P3DFFT_TYPE]
158 complex(p3dfft_type), TARGET :: IN(1,1,*)
159 --------------^
>> 160 fft_init.F90(167): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
161 complex(p3dfft_type) X(N*m),Y(N*m)
162 --------------^
>> 163 fft_exec.F90(172): error #7002: Error in opening the compiled modul
e file. Check INCLUDE paths. [P3DFFT]
164 use p3dfft
165 ----------^
>> 166 fft_exec.F90(177): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
167 complex(p3dfft_type) X(N*stride_x1+m*stride_x2),Y(N*stride_y1
+m*stride_y2)
168 --------------^
>> 169 fft_init.F90(190): error #7002: Error in opening the compiled modul
e file. Check INCLUDE paths. [P3DFFT]
170 use p3dfft
171 ----------^
>> 172 fft_init.F90(195): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
173 complex(p3dfft_type) X((N/2+1)*m)
174 --------------^
>> 175 fft_exec.F90(208): error #7002: Error in opening the compiled modul
e file. Check INCLUDE paths. [P3DFFT]
176 use p3dfft
177 ----------^
>> 178 fft_init.F90(196): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
179 real(p3dfft_type) Y(N*m)
180 -----------^
>> 181 fft_exec.F90(213): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
182 complex(p3dfft_type) X(N*stride_x1+m*stride_x2),Y(N*stride_y1
+m*stride_y2)
183 --------------^
184 compilation aborted for wrap.F90 (code 1)
>> 185 fft_init.F90(214): error #7002: Error in opening the compiled modul
e file. Check INCLUDE paths. [P3DFFT]
186 use p3dfft
187 ----------^
>> 188 fft_init.F90(219): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
189 complex(p3dfft_type) X((N/2+1)*m)
190 --------------^
>> 191 fft_exec.F90(254): error #7002: Error in opening the compiled modul
e file. Check INCLUDE paths. [P3DFFT]
>> 192 fft_init.F90(220): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
193 use p3dfft
194 ----------^
195 real(p3dfft_type) Y(N*m)
196 -----------^
>> 197 fft_exec.F90(260): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
198 complex(p3dfft_type) X(N*stride_x1+m*stride_x2),Y(N*stride_y1
+m*stride_y2)
199 --------------^
>> 200 fft_init.F90(241): error #7002: Error in opening the compiled modul
e file. Check INCLUDE paths. [P3DFFT]
201 use p3dfft
202 ----------^
>> 203 fft_init.F90(246): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
204 complex(p3dfft_type) X(N*m),Y(N*m)
205 --------------^
>> 206 fft_exec.F90(301): error #7002: Error in opening the compiled modul
e file. Check INCLUDE paths. [P3DFFT]
207 use p3dfft
208 ----------^
>> 209 fft_exec.F90(306): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
210 complex(p3dfft_type) X((N/2+1)*m)
211 --------------^
>> 212 fft_exec.F90(307): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
213 real(p3dfft_type) Y(N*m)
214 -----------^
>> 215 fft_init.F90(266): error #7002: Error in opening the compiled modul
e file. Check INCLUDE paths. [P3DFFT]
216 use p3dfft
217 ----------^
>> 218 fft_init.F90(271): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
219 complex(p3dfft_type) X(N*m),Y(N*m)
220 --------------^
>> 221 fft_exec.F90(349): error #7002: Error in opening the compiled modul
e file. Check INCLUDE paths. [P3DFFT]
222 use p3dfft
223 ----------^
>> 224 fft_exec.F90(355): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
225 complex(p3dfft_type) X(N*stride_x1+m*stride_x2),Y(N*stride_y1
+m*stride_y2)
226 --------------^
>> 227 fft_init.F90(290): error #7002: Error in opening the compiled modul
e file. Check INCLUDE paths. [P3DFFT]
228 use p3dfft
229 ----------^
>> 230 make[2]: *** [wrap.o] Error 1
231 make[2]: *** Waiting for unfinished jobs....
>> 232 fft_init.F90(295): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
233 complex(p3dfft_type) X(N*m),Y(N*m)
234 --------------^
>> 235 fft_exec.F90(404): error #7002: Error in opening the compiled modul
e file. Check INCLUDE paths. [P3DFFT]
236 use p3dfft
237 ----------^
>> 238 fft_exec.F90(410): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
239 complex(p3dfft_type) X(N*stride_x1+m*stride_x2),Y(N*stride_y1
+m*stride_y2)
240 --------------^
>> 241 fft_init.F90(315): error #7002: Error in opening the compiled modul
e file. Check INCLUDE paths. [P3DFFT]
242 use p3dfft
243 ----------^
>> 244 fft_init.F90(320): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
245 complex(p3dfft_type) X(N*m),Y(N*m)
246 --------------^
>> 247 fft_exec.F90(450): error #7002: Error in opening the compiled modul
e file. Check INCLUDE paths. [P3DFFT]
248 use p3dfft
249 ----------^
>> 250 fft_exec.F90(455): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
251 complex(p3dfft_type) X(N*stride_x1+m*stride_x2),Y(N*stride_y1
+m*stride_y2)
252 --------------^
>> 253 fft_init.F90(343): error #7002: Error in opening the compiled modul
e file. Check INCLUDE paths. [P3DFFT]
254 use p3dfft
255 ----------^
>> 256 fft_init.F90(347): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
257 real(p3dfft_type) X(N*m)
258 -----------^
>> 259 fft_init.F90(348): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
260 complex(p3dfft_type) Y((N/2+1)*m)
261 --------------^
>> 262 fft_exec.F90(498): error #7002: Error in opening the compiled modul
e file. Check INCLUDE paths. [P3DFFT]
263 use p3dfft
264 ----------^
>> 265 fft_exec.F90(502): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
266 real(p3dfft_type) X(N*m)
267 -----------^
>> 268 fft_exec.F90(503): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
269 complex(p3dfft_type) Y((N/2+1)*m)
>> 270 fft_init.F90(366): error #7002: Error in opening the compiled modul
e file. Check INCLUDE paths. [P3DFFT]
271 --------------^
272 use p3dfft
273 ----------^
>> 274 fft_init.F90(370): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
275 real(p3dfft_type) X(N*m)
276 -----------^
>> 277 fft_init.F90(371): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
278 complex(p3dfft_type) Y((N/2+1)*m)
279 --------------^
>> 280 fft_exec.F90(549): error #7002: Error in opening the compiled modul
e file. Check INCLUDE paths. [P3DFFT]
281 use p3dfft
282 --------^
>> 283 fft_exec.F90(554): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
284 real (p3dfft_type) :: X (N*m), Y (N*m)
285 ----------^
>> 286 fft_exec.F90(598): error #7002: Error in opening the compiled modul
e file. Check INCLUDE paths. [P3DFFT]
287 use p3dfft
288 --------^
>> 289 fft_exec.F90(602): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
290 real (p3dfft_type) :: X (N*m), Y (N*m)
291 ----------^
>> 292 fft_exec.F90(648): error #7002: Error in opening the compiled modul
e file. Check INCLUDE paths. [P3DFFT]
>> 293 fft_init.F90(533): error #7002: Error in opening the compiled modul
e file. Check INCLUDE paths. [P3DFFT]
294 use p3dfft
295 --------^
296 use p3dfft
297 --------^
>> 298 fft_exec.F90(652): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
299 real (p3dfft_type) :: X (N*m), Y (N*m)
300 ----------^
>> 301 /tmp/ifortaJ3kjZ.i90(541): catastrophic error: Too many errors, exi
ting
>> 302 fft_init.F90(538): error #6683: A kind type parameter must be a com
pile-time constant. [P3DFFT_TYPE]
303 real (p3dfft_type) :: X (N*m), Y (N*m)
304 ----------^
>> 305 /tmp/ifortghrijZ.i90(441): catastrophic error: Too many errors, exi
ting
306 compilation aborted for fft_exec.F90 (code 1)
307 compilation aborted for fft_init.F90 (code 1)
>> 308 make[2]: *** [fft_exec.o] Error 1
>> 309 make[2]: *** [fft_init.o] Error 1
310 make[2]: Leaving directory `/tmp/shera/spack-stage/spack-stage-_LwM
cO/spack-src/build'
>> 311 make[1]: *** [all-recursive] Error 1
312 make[1]: Leaving directory `/tmp/shera/spack-stage/spack-stage-_LwM
cO/spack-src'
>> 313 make: *** [all] Error 2
python.py:
homepage = "https://www.p3dfft.net"
url = "https://github.com/sdsc/p3dfft.3/archive/master.tar.gz"
git = "https://github.com/sdsc/p3dfft.3"
version('develop', branch = 'master')
version('2.7.9', sha256='c61b4705be59f20f06ef2fa11971f3648f82560c1078311c464c12f581b36ed1')
variant('fftw', default = True,
description='Builds with FFTW library')
variant('essl', default=False,
description='Builds with ESSL library')
variant('mpi', default = True,
description="Enable MPI support.")
variant('openmp', default=False,
description="Enable OpenMP support.")
depends_on('mpi',when = '+mpi')
depends_on('fftw',when = '+fftw')
depends_on('essl',when = '+essl')
depends_on('openmp',when = '+openmp')
def setup_environment(self, spack_env, run_env):
spec = self.spec
spack_env.set('CC', spec['mpi'].mpicc)
spack_env.set('FC', spec['mpi'].mpifc)
spack_env.set('CXX', spec['mpi'].mpicxx)
def install(self, spec, prefix):
config_args = ['--prefix={0}'.format(prefix)]
if '+fftw' in spec:
config_args.append('--enable-fftw')
config_args.append ('--with-fftw=%s' % spec['fftw'].prefix)
if '+essl' in spec:
config_args.append('--enable-essl')
# config_args.append ('--with-fftw-lib= %s' % spec['essl'].prefix.lib)
# config_args.append ('--with-fftw-inc= %s' % spec['essl'].prefix.include)
configure( *config_args)
make()
make('install')
My packages.yaml:
packages:
fftw:
modules:
[email protected]: fftw/3.3.4
buildable: False
mvapich2:
modules:
[email protected]: mvapich2_ib/2.1
buildable: False
openmpi:
modules:
[email protected]: openmpi_ib/1.8.4
buildable: False
intel-mpi:
modules:
[email protected]: intelmpi/2016.3.210
buildable: False
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels