<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: pnetcdf configure error using icx and ifx in OneAPI 2023.1.0 in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/pnetcdf-configure-error-using-icx-and-ifx-in-OneAPI-2023-1-0/m-p/1568902#M170737</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I encountered the same problem when compiling pnetcdf1.12.3 with oneapi2024. How did you solve it at last?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Lumos&lt;/P&gt;</description>
    <pubDate>Sat, 03 Feb 2024 08:47:25 GMT</pubDate>
    <dc:creator>Lumos</dc:creator>
    <dc:date>2024-02-03T08:47:25Z</dc:date>
    <item>
      <title>pnetcdf configure error using icx and ifx in OneAPI 2023.1.0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/pnetcdf-configure-error-using-icx-and-ifx-in-OneAPI-2023-1-0/m-p/1493163#M166674</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm installing&amp;nbsp;pnetcdf-1.12.3 using icx anf ifx in OneAPI 2023.1.0. However, when I configure it, I met the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;/bin/ld: cannot find -loopopt=1&lt;BR /&gt;icx: error: linker command failed with exit code 1 (use -v to see invocation)&lt;BR /&gt;configure:28388: $? = 1&lt;BR /&gt;configure: failed program was:&lt;BR /&gt;| /* confdefs.h */&lt;BR /&gt;| #define PACKAGE_NAME "PnetCDF"&lt;BR /&gt;| #define PACKAGE_TARNAME "pnetcdf"&lt;BR /&gt;| #define PACKAGE_VERSION "1.12.3"&lt;BR /&gt;| #define PACKAGE_STRING "PnetCDF 1.12.3"&lt;BR /&gt;| #define PACKAGE_BUGREPORT "parallel-netcdf@mcs.anl.gov"&lt;BR /&gt;| #define PACKAGE_URL "&lt;A href="https://parallel-netcdf.github.io/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://parallel-netcdf.github.io&lt;/A&gt;"&lt;BR /&gt;| #define PACKAGE "pnetcdf"&lt;BR /&gt;| #define VERSION "1.12.3"&lt;BR /&gt;| #define STDC_HEADERS 1&lt;BR /&gt;| #define HAVE_SYS_TYPES_H 1&lt;BR /&gt;| #define HAVE_SYS_STAT_H 1&lt;BR /&gt;| #define HAVE_STDLIB_H 1&lt;BR /&gt;| #define HAVE_STRING_H 1&lt;BR /&gt;| #define HAVE_MEMORY_H 1&lt;BR /&gt;| #define HAVE_STRINGS_H 1&lt;BR /&gt;| #define HAVE_INTTYPES_H 1&lt;BR /&gt;| #define HAVE_STDINT_H 1&lt;BR /&gt;| #define HAVE_UNISTD_H 1&lt;BR /&gt;| #define HAVE_DLFCN_H 1&lt;BR /&gt;| #define LT_OBJDIR ".libs/"&lt;BR /&gt;| #define ENABLE_CXX 1&lt;BR /&gt;| #define ENABLE_FORTRAN 1&lt;BR /&gt;| /* end confdefs.h. */&lt;BR /&gt;| #define FC_DUMMY_MAIN _main&lt;BR /&gt;| #ifdef FC_DUMMY_MAIN&lt;BR /&gt;| #ifndef FC_DUMMY_MAIN_EQ_F77&lt;BR /&gt;| # ifdef __cplusplus&lt;BR /&gt;| extern "C"&lt;BR /&gt;| # endif&lt;BR /&gt;| int FC_DUMMY_MAIN() { return 1; }&lt;BR /&gt;| #endif&lt;BR /&gt;| #endif&lt;BR /&gt;| int&lt;BR /&gt;| main ()&lt;BR /&gt;| {&lt;BR /&gt;|&lt;BR /&gt;| ;&lt;BR /&gt;| return 0;&lt;BR /&gt;| }&lt;BR /&gt;configure:28404: result: unknown&lt;BR /&gt;configure:28421: error: in `/opt/pnetcdf-1.12.3':&lt;BR /&gt;configure:28423: error: linking to Fortran libraries from C fails&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see the attached `config.log'&amp;nbsp; file for more details.&lt;/P&gt;&lt;P&gt;I have posted the question here &lt;A href="https://community.intel.com/t5/Intel-Fortran-Compiler/pnetcdf-configure-error-using-icx-and-ifx/m-p/1489151#M166469" target="_blank"&gt;https://community.intel.com/t5/Intel-Fortran-Compiler/pnetcdf-configure-error-using-icx-and-ifx/m-p/1489151#M166469&lt;/A&gt; before. I have no idea why I cannot reply to that one, so I posted a new one here. But I updated to gcc 10.2.0, cmake&amp;nbsp; 3.26.4 and autoconf 2.70 following your suggestions, and the error still happens.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 06:50:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/pnetcdf-configure-error-using-icx-and-ifx-in-OneAPI-2023-1-0/m-p/1493163#M166674</guid>
      <dc:creator>Jervie</dc:creator>
      <dc:date>2023-06-06T06:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: pnetcdf configure error using icx and ifx in OneAPI 2023.1.0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/pnetcdf-configure-error-using-icx-and-ifx-in-OneAPI-2023-1-0/m-p/1493396#M166688</link>
      <description>&lt;P&gt;How did you set up the env vars to use the oneapi compilers?&amp;nbsp; I cloned Pnetcdf and got the configure to work without issue.&amp;nbsp; I did this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="none"&gt;export MPICC="mpiicc -cc=icx" 
export MPICXX="mpiicpc -cxx=icpx"
export MPIF77="mpiifort -fc=ifx"
export MPIF90="mpiifort -fc=ifx"
./configure --prefix=/cts/tools/library/pnetcdf-1.12.3&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;you'll still need to specify the include and library paths for netcdf-c, of course, but this should get you past the configure step.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Parallel-NetCDF/PnetCDF" target="_blank" rel="noopener"&gt;the github site&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and I found I needed the autoreconf command &lt;A href="https://github.com/Parallel-NetCDF/PnetCDF/blob/master/README.md" target="_self"&gt;shown here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;and of course&lt;/P&gt;
&lt;P&gt;./configure --help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for all the options you may want to configure as well.&amp;nbsp; Like the netcdf-c stuff.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ron&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 20:40:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/pnetcdf-configure-error-using-icx-and-ifx-in-OneAPI-2023-1-0/m-p/1493396#M166688</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2023-06-06T20:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: pnetcdf configure error using icx and ifx in OneAPI 2023.1.0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/pnetcdf-configure-error-using-icx-and-ifx-in-OneAPI-2023-1-0/m-p/1568902#M170737</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I encountered the same problem when compiling pnetcdf1.12.3 with oneapi2024. How did you solve it at last?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Lumos&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2024 08:47:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/pnetcdf-configure-error-using-icx-and-ifx-in-OneAPI-2023-1-0/m-p/1568902#M170737</guid>
      <dc:creator>Lumos</dc:creator>
      <dc:date>2024-02-03T08:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: pnetcdf configure error using icx and ifx in OneAPI 2023.1.0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/pnetcdf-configure-error-using-icx-and-ifx-in-OneAPI-2023-1-0/m-p/1568903#M170738</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I got it!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Before running configure command to build PnetCDF, please run commands below first.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;cd PnetCDF&lt;/SPAN&gt;
&lt;SPAN class=""&gt;autoreconf -i&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 03 Feb 2024 08:56:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/pnetcdf-configure-error-using-icx-and-ifx-in-OneAPI-2023-1-0/m-p/1568903#M170738</guid>
      <dc:creator>Lumos</dc:creator>
      <dc:date>2024-02-03T08:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: pnetcdf configure error using icx and ifx in OneAPI 2023.1.0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/pnetcdf-configure-error-using-icx-and-ifx-in-OneAPI-2023-1-0/m-p/1568986#M170742</link>
      <description>&lt;P&gt;New error encountered while make.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/326901"&gt;@Lumos&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&lt;SPAN&gt;I got it!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Before running configure command to build PnetCDF, please run commands below first.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;cd PnetCDF&lt;/SPAN&gt;
&lt;SPAN class=""&gt;autoreconf -i&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;LI-CODE lang="markup"&gt;  CC       attr_getput.lo
attr_getput.c:219:1: error: expected identifier or '('
  219 | &amp;lt;U+0001&amp;gt;
      | ^
attr_getput.c:393:1: error: expected identifier or '('
  393 | &amp;lt;U+0001&amp;gt;
      | ^
attr_getput.c:427:1: error: expected identifier or '('
  427 | &amp;lt;U+0001&amp;gt;
      | ^
attr_getput.c:702:1: error: expected identifier or '('
  702 | &amp;lt;U+0001&amp;gt;
      | ^
4 errors generated.
make[3]: *** [Makefile:539: attr_getput.lo] Error 1
make[3]: Leaving directory '/LIBRARIES/intel2024/pnetcdf-1.12.3/src/dispatchers'
make[2]: *** [Makefile:455: all] Error 2
make[2]: Leaving directory '/LIBRARIES/intel2024/pnetcdf-1.12.3/src/dispatchers'
make[1]: *** [Makefile:482: all-recursive] Error 1
make[1]: Leaving directory '/LIBRARIES/intel2024/pnetcdf-1.12.3/src'
make: *** [Makefile:540: all-recursive] Error 1&lt;/LI-CODE&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 02:36:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/pnetcdf-configure-error-using-icx-and-ifx-in-OneAPI-2023-1-0/m-p/1568986#M170742</guid>
      <dc:creator>Lumos</dc:creator>
      <dc:date>2024-02-04T02:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: pnetcdf configure error using icx and ifx in OneAPI 2023.1.0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/pnetcdf-configure-error-using-icx-and-ifx-in-OneAPI-2023-1-0/m-p/1568988#M170743</link>
      <description>&lt;P&gt;My flags:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;export CC=mpiicx
export CXX=mpiicpx
export FC=mpiifx
export F90=mpiifx
export F77=mpiifx
export CFLAGS="-O2 -fPIC"
export FCFLAGS="-O2 -fPIC"
export CXXFLAGS="-O2 -fPIC"
export CPPFLAGS="-I/LIBRARIES/intel2024/hdf51.14.3/include -I/LIBRARIES/intel2024/szip2.1.1/include -I/LIBRARIES/intel2024/zlib1.3/include"
export LDFLAGS="-L/LIBRARIES/intel2024/hdf51.14.3/lib -lhdf5_hl -lhdf5 -lz -lm -L/LIBRARIES/intel2024/szip2.1.1/lib  -L/LIBRARIES/intel2024/zlib1.3/lib"&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;./configure --prefix=$DIR/pnetcdf1.12.3 --with-mpi=/Compiler/intel2024/oneapi/mpi/2021.11 --enable-subfiling --enable-shared --enable-large-file-test --enable-null-byte-header-padding --enable-burst-buffering --enable-profiling --enable-relax-coord-bound&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 04 Feb 2024 02:39:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/pnetcdf-configure-error-using-icx-and-ifx-in-OneAPI-2023-1-0/m-p/1568988#M170743</guid>
      <dc:creator>Lumos</dc:creator>
      <dc:date>2024-02-04T02:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: pnetcdf configure error using icx and ifx in OneAPI 2023.1.0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/pnetcdf-configure-error-using-icx-and-ifx-in-OneAPI-2023-1-0/m-p/1605121#M172485</link>
      <description>&lt;P&gt;I found a clue from this github issue:&amp;nbsp;&lt;A href="https://github.com/spack/spack/issues/37172" target="_blank"&gt;https://github.com/spack/spack/issues/37172&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and it seems like the bison compiled by oneAPI will generate&amp;nbsp;&lt;SPAN&gt;garbage output bytes in&amp;nbsp;attr_getput.c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Use bison of gcc version will solve this issue.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jun 2024 18:07:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/pnetcdf-configure-error-using-icx-and-ifx-in-OneAPI-2023-1-0/m-p/1605121#M172485</guid>
      <dc:creator>Mikko1</dc:creator>
      <dc:date>2024-06-09T18:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: pnetcdf configure error using icx and ifx in OneAPI 2023.1.0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/pnetcdf-configure-error-using-icx-and-ifx-in-OneAPI-2023-1-0/m-p/1616826#M173040</link>
      <description>&lt;P&gt;Thank you very much for your reply. But I don't think I used bison.&amp;nbsp;Here is the bison in the system.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ which bison
/usr/bin/bison

$ bison -V
bison (GNU Bison) 3.0.4
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2015 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.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;What exactly should I do?&amp;nbsp;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 01:59:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/pnetcdf-configure-error-using-icx-and-ifx-in-OneAPI-2023-1-0/m-p/1616826#M173040</guid>
      <dc:creator>Lumos</dc:creator>
      <dc:date>2024-07-22T01:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: pnetcdf configure error using icx and ifx in OneAPI 2023.1.0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/pnetcdf-configure-error-using-icx-and-ifx-in-OneAPI-2023-1-0/m-p/1616843#M173041</link>
      <description>&lt;P&gt;But I used m4 compiled by oneapi. Now switch to the system's default GCC-compiled m4. And upgrade to pnetcdf-1.13.0 without using the autoreconf -i command. Looks like it can be constructed.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 03:07:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/pnetcdf-configure-error-using-icx-and-ifx-in-OneAPI-2023-1-0/m-p/1616843#M173041</guid>
      <dc:creator>Lumos</dc:creator>
      <dc:date>2024-07-22T03:07:32Z</dc:date>
    </item>
  </channel>
</rss>

