[CMake] No FortranCInterface mangling known with (VCExpress & Intel Ifort 2008)

Giraudon Cyril cyril.giraudon at free.fr
Wed Jun 9 04:00:10 EDT 2010


Hello,

I use Visual Studio Express 9 2008 and ifort 11.1 under Windows XP.

When I try to generate the fortran binding of a project a "No 
FortranCInterface mangling known for mysub" message (reported hereafter) 
is printed.

It seems CMake can't deal with the couple (Visual Studio Express 2008, 
Ifort 11.1).

Do I something wrong ?
Is there anything to do to fix the problem ?

Thanks a lot,

Regards,

Cyril.

"""
Configure Checks that still need to be implemented

GetConsoleScreenBufferInfo function for Windows

The Fortran compiler identification is Intel

Check for working Fortran compiler: C:/Program 
Files/Intel/Compiler/11.1/060/bin/ia32/ifort.exe

Check for working Fortran compiler: C:/Program 
Files/Intel/Compiler/11.1/060/bin/ia32/ifort.exe -- works

Detecting Fortran compiler ABI info

Detecting Fortran compiler ABI info - done

Checking whether C:/Program 
Files/Intel/Compiler/11.1/060/bin/ia32/ifort.exe supports Fortran 90

Checking whether C:/Program 
Files/Intel/Compiler/11.1/060/bin/ia32/ifort.exe supports Fortran 90 -- yes

Detecting Fortran/C Interface

Detecting Fortran/C Interface - Failed to compile

CMake Warning (dev) at C:/Program Files/CMake 
2.8/share/cmake-2.8/Modules/FortranCInterface.cmake:207 (message):

No FortranCInterface mangling known for mysub

Call Stack (most recent call first):

fortran/CMakeLists.txt:8 (FortranCInterface_HEADER)

This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at C:/Program Files/CMake 
2.8/share/cmake-2.8/Modules/FortranCInterface.cmake:193 (message):

No FortranCInterface mangling known for mymod:my_sub

Call Stack (most recent call first):

fortran/CMakeLists.txt:8 (FortranCInterface_HEADER)

This warning is for project developers. Use -Wno-dev to suppress it.

CMake Error at fortran/CMakeLists.txt:16 (STRING):

string sub-command REGEX, mode MATCH needs at least 5 arguments total to

command.

CMake Error at fortran/CMakeLists.txt:20 (STRING):

string sub-command REGEX, mode MATCH needs at least 5 arguments total to

command.

Testing Fortran sizeof

Testing Fortran sizeof - OK

Testing Fortran RealIsNotDouble

Testing Fortran RealIsNotDouble - OK

SKIP h5repack_layout.h5 -f;dset1:GZIP=1;-l;dset1:CHUNK=20x10

SKIP h5repack_layout.h5 -f;GZIP=1

SKIP h5repack_layout.h5 -f;dset2:SZIP=8,EC;-l;dset2:CHUNK=20x10

SKIP h5repack_layout.h5 -f;SZIP=8,NN

SKIP h5repack_layout.h5 
-f;dset2:SHUF;-f;dset2:FLET;-f;dset2:SZIP=8,NN;-f;dset2:GZIP=1;-l;dset2:CHUNK=20x10

SKIP h5repack_szip.h5

SKIP h5repack_szip.h5 --filter=dset_szip:NONE

SKIP h5repack_deflate.h5

SKIP h5repack_deflate.h5 -f;dset_deflate:NONE

SKIP h5repack_filters.h5 -f;NONE

SKIP h5repack_deflate.h5 -f;dset_deflate:SZIP=8,NN

SKIP h5repack_szip.h5 -f;dset_szip:GZIP=1

SKIP h5repack_layout.h5 -f;GZIP=1;-m;1024

SKIP h5repack_layout.h5 -e;testfiles/h5repack.info

SKIP h5repack_layout.h5 
--layout;CHUNK=20x10;--filter;GZIP=1;--minimum=10;--native;--latest;--compact=8;--indexed=6;--ssize=8[:dtype]

SKIP h5repack_layout.h5 
-l;CHUNK=20x10;-f;GZIP=1;-m;10;-n;-L;-c;8;-d;6;-s;8[:dtype]

SKIP h5repack_layout.h5 --filter;GZIP=1;--filter;SHUF

Configuring incomplete, errors occurred!
""""







Le 08/06/2010 19:37, Giraudon Cyril a écrit :
> Hello,
>
> I try to compile the next version of HDF5 project which can be 
> generated/compiled with CMake.
>
> I use Visual Studio Express 9 2008 and ifort 11.1 under Windows XP.
>
>
> Generation without Fortran binding :
> After modifying the CMAKE_MAKE_PROGRAM from
> devcom.com
> to
> VCExpress.exe
> The configure operation succeeds, I choose a mingw makefile and I can 
> generate binaries, dll ...
>
>
>
> When I try to generate the fortran binding the reported message 
> (hereafter) is printed.
>
> It seems CMake can't deal with the couple (Visual Studio Express 2008, 
> Ifort 11.1).
>
> Do I something wrong ?
> Is there anything to do to fix the problem ?
>
> Thanks a lot,
>
> Regards,
>
> Cyril Giraudon.
>
>
> """
> Configure Checks that still need to be implemented
>
> GetConsoleScreenBufferInfo function for Windows
>
> The Fortran compiler identification is unknown
>
> Check for working Fortran compiler: C:/Program 
> Files/Intel/Compiler/11.1/060/bin/ia32/ifort.exe
>
> Check for working Fortran compiler: C:/Program 
> Files/Intel/Compiler/11.1/060/bin/ia32/ifort.exe -- broken
>
> CMake Error at C:/Program Files/CMake 
> 2.8/share/cmake-2.8/Modules/CMakeTestFortranCompiler.cmake:40 (MESSAGE):
>
> The Fortran compiler "C:/Program
>
> Files/Intel/Compiler/11.1/060/bin/ia32/ifort.exe" is not able to compile a
>
> simple test program.
>
> It fails with the following output:
>
> Change Dir: 
> C:/dev/outils/hdf5/hdf5-1.8.5-pre2.tar/hdf5-1.8.5-pre2/build/CMakeFiles/CMakeTmp
>
> Run Build Command:C:/dev/programs/MinGW/bin/mingw32-make.exe
>
> "cmTryCompileExec/fast"
>
> C:/dev/programs/MinGW/bin/mingw32-make.exe -f
>
> CMakeFiles\cmTryCompileExec.dir\build.make
>
> CMakeFiles/cmTryCompileExec.dir/build
>
> mingw32-make.exe[1]: Entering directory
>
> `C:/dev/outils/hdf5/hdf5-1.8.5-pre2.tar/hdf5-1.8.5-pre2/build/CMakeFiles/CMakeTmp'
>
> "C:\Program Files\CMake 2.8\bin\cmake.exe" -E cmake_progress_report
>
> C:\dev\outils\hdf5\hdf5-1.8.5-pre2.tar\hdf5-1.8.5-pre2\build\CMakeFiles\CMakeTmp\CMakeFiles
>
> 1
>
> Building Fortran object
>
> CMakeFiles/cmTryCompileExec.dir/testFortranCompiler.f.obj
>
> C:\PROGRA~1\Intel\Compiler\11.1\060\bin\ia32\ifort.exe /nologo /fpp
>
> /FoCMakeFiles\cmTryCompileExec.dir\testFortranCompiler.f.obj /debug:full
>
> /dbglibs -c
>
> C:\dev\outils\hdf5\hdf5-1.8.5-pre2.tar\hdf5-1.8.5-pre2\build\CMakeFiles\CMakeTmp\testFortranCompiler.f
>
> Linking Fortran executable cmTryCompileExec.exe
>
> "C:\Program Files\CMake 2.8\bin\cmake.exe" -E cmake_link_script
>
> CMakeFiles\cmTryCompileExec.dir\link.txt --verbose=1
>
> C:\PROGRA~1\Intel\Compiler\11.1\060\bin\ia32\ifort.exe /nologo
>
> @CMakeFiles\cmTryCompileExec.dir\objects1.rsp /debug:full /dbglibs
>
> /FecmTryCompileExec.exe -link /implib:cmTryCompileExec.lib 
> /INCREMENTAL:YES
>
> /debug /subsystem:console user32.lib
>
> LINK : fatal error LNK1104: impossible d'ouvrir le fichier 'ifconsol.lib'
>
> mingw32-make.exe[1]: *** [cmTryCompileExec.exe] Error 1104
>
> mingw32-make.exe[1]: Leaving directory
>
> `C:/dev/outils/hdf5/hdf5-1.8.5-pre2.tar/hdf5-1.8.5-pre2/build/CMakeFiles/CMakeTmp'
>
> mingw32-make.exe: *** [cmTryCompileExec/fast] Error 2
>
> CMake will not be able to correctly generate this project.
>
> Call Stack (most recent call first):
>
> fortran/CMakeLists.txt:2 (PROJECT)
>
> Configuring incomplete, errors occurred!
>
> """
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100609/bdc0e9cd/attachment-0001.htm>


More information about the CMake mailing list