I solved my troubles.  They stem from using the *.tgz version of the download.  Using the *.bz2 version cleaned up most of the troubles.<div>                        Ray<br /><br /></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Wednesday, October 1, 2025 at 10:07:29 PM UTC-4 Sheppard, Raymond W wrote:<br/></div><blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello again,
<br>  I had to take some vacation days.  So I just passively hoped you could find the issues.  Since I have been back, I located two.  A few versions back, GNU started strictly interpreting pointer declarations.  So, if one is declared "long" and another "long long" they are mismatched now, even though both refer to a 64-bit pointer. In this case, one is actually in a struct.  So it is not recognized.  The fix for this was to set  CFLAGS with -Wno-incompatible-pointer-types.  That only got partway.  For some reason, LD_LIBRARY_PATH is being ignored in the libvdwxc-0.4.0 configure.
<br>$ printenv LD_LIBRARY_PATH
<br>/opt/cray/pe/fftw/<a href="http://3.3.10.10/x86_rome/lib:/N/soft/sles15/atlas/gnu/3.10.3/lib:/opt/cray/pe/mpich/8.1.32/ucx/gnu/12.3/lib:/opt/cray/pe/ucx/1.14.0/ucx/lib:/opt/cray/pe/papi/7.2.0.1/lib64" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://3.3.10.10/x86_rome/lib:/N/soft/sles15/atlas/gnu/3.10.3/lib:/opt/cray/pe/mpich/8.1.32/ucx/gnu/12.3/lib:/opt/cray/pe/ucx/1.14.0/ucx/lib:/opt/cray/pe/papi/7.2.0.1/lib64&source=gmail&ust=1759854827791000&usg=AOvVaw2kDOLYFO8FEyVTZVQe3zHb">3.3.10.10/x86_rome/lib:/N/soft/sles15/atlas/gnu/3.10.3/lib:/opt/cray/pe/mpich/8.1.32/ucx/gnu/12.3/lib:/opt/cray/pe/ucx/1.14.0/ucx/lib:/opt/cray/pe/papi/7.2.0.1/lib64</a>
<br>
<br>By manually inserting "-L/opt/cray/pe/fftw/<a href="http://3.3.10.10/x86_rome/lib:/N/soft/sles15/atlas/gnu/3.10.3/lib" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://3.3.10.10/x86_rome/lib:/N/soft/sles15/atlas/gnu/3.10.3/lib&source=gmail&ust=1759854827791000&usg=AOvVaw033sDPypGXvCfjipf5eeJs">3.3.10.10/x86_rome/lib:/N/soft/sles15/atlas/gnu/3.10.3/lib</a>"  in the compile line of the FFTW test in configure, it finished and I was able to "make" and "make install" the library directly with:
<br>
<br>./configure --prefix=/N/soft/sles15sp6/cp2k/build/cp2k-2025.2/tools/toolchain/install --with-fftw --with-mpi
<br>
<br>So I went back to run your install_cp2k_toolchain.sh   The problem now though is that does not know the library was built.  It throws away the good version, downloads a fresh tar file and then reports the error I just fixed.  How do I tell your script either to look for the version in install, or just skip the new download?  Thanks.
<br>        Ray
<br>
<br>________________________________________
<br>From: <a href data-email-masked rel="nofollow">cp...@googlegroups.com</a> <<a href data-email-masked rel="nofollow">cp...@googlegroups.com</a>> on behalf of Sheppard, Raymond W <<a href data-email-masked rel="nofollow">rshe...@iu.edu</a>>
<br>Sent: Tuesday, September 16, 2025 6:27 AM
<br>To: cp2k
<br>Subject: Re: [External] [CP2K:21839] Re: Unusable FFTW?
<br>
<br>Hi again,
<br>  Just for fun (and to prove the fftw3 module, I wrote a real, toy program that works idf I change the compile line a little from theirs:
<br>cat shouldwork.c
<br>#include <fftw3.h>
<br>#include <stdio.h>
<br>
<br>int main() {
<br>    int N = 8; // Define the size of the arrays
<br>    fftw_complex *in, *out;
<br>    fftw_plan p;
<br>
<br>    // Allocate memory for the input and output arrays
<br>    in = (fftw_complex*) fftw_malloc(sizeof(fftw_complex) * N);
<br>    out = (fftw_complex*) fftw_malloc(sizeof(fftw_complex) * N);
<br>
<br>    // Create the FFTW plan
<br>    p = fftw_plan_dft_1d(N, in, out, FFTW_FORWARD, FFTW_ESTIMATE);
<br>
<br>    // Execute the plan
<br>    fftw_execute(p);
<br>
<br>    // Clean up
<br>    fftw_destroy_plan(p);
<br>    fftw_free(in);
<br>    fftw_free(out);
<br>
<br>    return 0;
<br>}
<br>
<br>
<br>Compile line:
<br> mpicc -o should_work shouldwork.c -I/opt/cray/pe/fftw/<a href="http://3.3.10.10/x86_rome/include" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://3.3.10.10/x86_rome/include&source=gmail&ust=1759854827791000&usg=AOvVaw0SpQk5hNjIXoxiPtHXF_F3">3.3.10.10/x86_rome/include</a> -L/opt/cray/pe/fftw/<a href="http://3.3.10.10/x86_rome/lib" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://3.3.10.10/x86_rome/lib&source=gmail&ust=1759854827791000&usg=AOvVaw233ciwjLNlpGJxClTLP9ym">3.3.10.10/x86_rome/lib</a> -lfftw3_mpi -lfftw3 -lm
<br>[rsheppar@login1:28 libvdwxc-0.4.0]$
<br>
<br>  Ray again
<br>
<br>
<br>________________________________________
<br>From: <a href data-email-masked rel="nofollow">cp...@googlegroups.com</a> <<a href data-email-masked rel="nofollow">cp...@googlegroups.com</a>> on behalf of Sheppard, Raymond W <<a href data-email-masked rel="nofollow">rshe...@iu.edu</a>>
<br>Sent: Monday, September 15, 2025 5:17 PM
<br>To: cp2k
<br>Subject: Re: [External] [CP2K:21837] Re: Unusable FFTW?
<br>
<br>Hi,
<br>  Sorry I was slow, but I have been working in the yard over the weekend.
<br>
<br>I think I found their conftest.c:
<br>
<br>#include <fftw3.h>
<br>int
<br>main ()
<br>{
<br>        fftw_plan *plan;
<br>        fftw_complex *a1, *a2;
<br>        fftw_execute_dft(plan, a1, a2);
<br>  ;
<br>  return 0;
<br>}
<br>
<br>I renamed the file a little and get errors related to their code.  I did notice they put their directory in quotes.  I do not think that matters because there is only one, but let me check.  Nope, same result as below.
<br>
<br>
<br>$ mpicc -c -O2 -fPIC -fno-omit-frame-pointer -fopenmp -g -mtune=native -fpermissive  -I/opt/cray/pe/fftw/<a href="http://3.3.10.10/x86_rome/include" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://3.3.10.10/x86_rome/include&source=gmail&ust=1759854827791000&usg=AOvVaw0SpQk5hNjIXoxiPtHXF_F3">3.3.10.10/x86_rome/include</a> -o rayfftw.test fftw.test.c
<br>
<br>fftw.test.c: In function ‘main’:
<br>fftw.test.c:9:26: warning: passing argument 1 of ‘fftw_execute_dft’ from incompatible pointer type [-Wincompatible-pointer-types]
<br>    9 |         fftw_execute_dft(plan, a1, a2);
<br>      |                          ^~~~
<br>      |                          |
<br>      |                          struct fftw_plan_s **
<br>In file included from fftw.test.c:1:
<br>/opt/cray/pe/fftw/<a href="http://3.3.10.10/x86_rome/include/fftw3.h:196:41" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://3.3.10.10/x86_rome/include/fftw3.h:196:41&source=gmail&ust=1759854827791000&usg=AOvVaw3SDy-J_P9_rGjTT90j9gBi">3.3.10.10/x86_rome/include/fftw3.h:196:41</a>: note: expected ‘fftw_plan’ {aka ‘struct fftw_plan_s * const’} but argument is of type ‘struct fftw_plan_s **’
<br>  196 | FFTW_CDECL X(execute_dft)(const X(plan) p, C *in, C *out);              \
<br>      |                           ~~~~~~~~~~~~~~^
<br>/opt/cray/pe/fftw/<a href="http://3.3.10.10/x86_rome/include/fftw3.h:465:1" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://3.3.10.10/x86_rome/include/fftw3.h:465:1&source=gmail&ust=1759854827791000&usg=AOvVaw0Egxwk58V5QByK5U0I8rRk">3.3.10.10/x86_rome/include/fftw3.h:465:1</a>: note: in expansion of macro ‘FFTW_DEFINE_API’
<br>  465 | FFTW_DEFINE_API(FFTW_MANGLE_DOUBLE, double, fftw_complex)
<br>      | ^~~~~~~~~~~~~~~
<br>gcc: warning:  -I/opt/cray/pe/fftw/<a href="http://3.3.10.10/x86_rome/include" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://3.3.10.10/x86_rome/include&source=gmail&ust=1759854827791000&usg=AOvVaw0SpQk5hNjIXoxiPtHXF_F3">3.3.10.10/x86_rome/include</a>: linker input file unused because linking not done
<br>gcc: error:  -I/opt/cray/pe/fftw/<a href="http://3.3.10.10/x86_rome/include" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://3.3.10.10/x86_rome/include&source=gmail&ust=1759854827791000&usg=AOvVaw0SpQk5hNjIXoxiPtHXF_F3">3.3.10.10/x86_rome/include</a>: linker input file not found: No such file or directory
<br>
<br>
<br>Ray again
<br>
<br>________________________________________
<br>From: <a href data-email-masked rel="nofollow">cp...@googlegroups.com</a> <<a href data-email-masked rel="nofollow">cp...@googlegroups.com</a>> on behalf of Konstantin Tokarev <<a href data-email-masked rel="nofollow">ann...@gmail.com</a>>
<br>Sent: Saturday, September 13, 2025 5:47 AM
<br>To: cp2k
<br>Subject: Re: [External] [CP2K:21833] Re: Unusable FFTW?
<br>
<br>Error is:
<br>
<br>configure:16952: /N/soft/sles15sp6/cp2k/build/cp2k-2025.2/tools/toolchain/build/libvdwxc-0.4.0/config/wrappers/wrap-mpicc -c -O2 -fPIC -fno-omit-frame-pointer -fopenmp -g -mtune=native -fpermissive  -I'/opt/cray/pe/fftw/<a href="http://3.3.10.10/x86_rome/include" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://3.3.10.10/x86_rome/include&source=gmail&ust=1759854827791000&usg=AOvVaw0SpQk5hNjIXoxiPtHXF_F3">3.3.10.10/x86_rome/include</a>' conftest.c >&5
<br>conftest.c:65:10: fatal error: fftw3.h: No such file or directory
<br>   65 | #include <fftw3.h>
<br>      |          ^~~~~~~~~
<br>compilation terminated.
<br>
<br>Does file /opt/cray/pe/fftw/<a href="http://3.3.10.10/x86_rome/include/fftw3.h" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://3.3.10.10/x86_rome/include/fftw3.h&source=gmail&ust=1759854827791000&usg=AOvVaw1kGF1NKf4IYLfoJYpWZgFw">3.3.10.10/x86_rome/include/fftw3.h</a> exist?
<br>
<br>--
<br>You received this message because you are subscribed to the Google Groups "cp2k" group.
<br>To unsubscribe from this group and stop receiving emails from it, send an email to <a href data-email-masked rel="nofollow">cp2k+uns...@googlegroups.com</a><mailto:<a href data-email-masked rel="nofollow">cp2k+uns...@googlegroups.com</a>>.
<br>To view this discussion visit <a href="https://groups.google.com/d/msgid/cp2k/a5842ef5-55b3-4765-8ab3-b461b9c357f4n%40googlegroups.com" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://groups.google.com/d/msgid/cp2k/a5842ef5-55b3-4765-8ab3-b461b9c357f4n%2540googlegroups.com&source=gmail&ust=1759854827791000&usg=AOvVaw27FjcYYlLOFpCT9u3YAkiU">https://groups.google.com/d/msgid/cp2k/a5842ef5-55b3-4765-8ab3-b461b9c357f4n%40googlegroups.com</a><<a href="https://groups.google.com/d/msgid/cp2k/a5842ef5-55b3-4765-8ab3-b461b9c357f4n%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://groups.google.com/d/msgid/cp2k/a5842ef5-55b3-4765-8ab3-b461b9c357f4n%2540googlegroups.com?utm_medium%3Demail%26utm_source%3Dfooter&source=gmail&ust=1759854827791000&usg=AOvVaw3C6zHLcKi7ck3DNH7TJVTc">https://groups.google.com/d/msgid/cp2k/a5842ef5-55b3-4765-8ab3-b461b9c357f4n%40googlegroups.com?utm_medium=email&utm_source=footer</a>>.
<br>
<br>--
<br>You received this message because you are subscribed to the Google Groups "cp2k" group.
<br>To unsubscribe from this group and stop receiving emails from it, send an email to <a href data-email-masked rel="nofollow">cp2k+uns...@googlegroups.com</a>.
<br>To view this discussion visit <a href="https://groups.google.com/d/msgid/cp2k/CO1PR08MB7643F5E0AF2BA1AB9A36B5C5A315A%40CO1PR08MB7643.namprd08.prod.outlook.com" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://groups.google.com/d/msgid/cp2k/CO1PR08MB7643F5E0AF2BA1AB9A36B5C5A315A%2540CO1PR08MB7643.namprd08.prod.outlook.com&source=gmail&ust=1759854827791000&usg=AOvVaw2iRaGvLIeYumA0XbYJQDF8">https://groups.google.com/d/msgid/cp2k/CO1PR08MB7643F5E0AF2BA1AB9A36B5C5A315A%40CO1PR08MB7643.namprd08.prod.outlook.com</a>.
<br>
<br>--
<br>You received this message because you are subscribed to the Google Groups "cp2k" group.
<br>To unsubscribe from this group and stop receiving emails from it, send an email to <a href data-email-masked rel="nofollow">cp2k+uns...@googlegroups.com</a>.
<br>To view this discussion visit <a href="https://groups.google.com/d/msgid/cp2k/CO1PR08MB7643E32C3A78F5CED6EF3E62A314A%40CO1PR08MB7643.namprd08.prod.outlook.com" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://groups.google.com/d/msgid/cp2k/CO1PR08MB7643E32C3A78F5CED6EF3E62A314A%2540CO1PR08MB7643.namprd08.prod.outlook.com&source=gmail&ust=1759854827791000&usg=AOvVaw3v3OJa0BwUTXePCjrbvf0p">https://groups.google.com/d/msgid/cp2k/CO1PR08MB7643E32C3A78F5CED6EF3E62A314A%40CO1PR08MB7643.namprd08.prod.outlook.com</a>.
<br></blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "cp2k" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:cp2k+unsubscribe@googlegroups.com">cp2k+unsubscribe@googlegroups.com</a>.<br />
To view this discussion visit <a href="https://groups.google.com/d/msgid/cp2k/890da62c-517b-4773-993c-f5a9e6d6b18bn%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/890da62c-517b-4773-993c-f5a9e6d6b18bn%40googlegroups.com</a>.<br />