[prev in list] [next in list] [prev in thread] [next in thread]
List: cmake
Subject: [CMake] Unexpected use of "ld" on Windows
From: Arjen Markus <Arjen.Markus () deltares ! nl>
Date: 2015-02-11 14:16:56
Message-ID: 8CF085736108634681FD03EC36E6A0723D98ED32 () V-EXC-C02 ! DIRECTORY ! INTRA
[Download RAW message or body]
Hello,
I am trying to build the Fortran interface to NetCDF4 on Windows, using the Intel \
Fortran compiler and "Nmake Makefiles" as the generator (see \
http://www.unidata.ucar.edu/downloads/netcdf/index.jsp).
I had some trouble getting the first part to build, but that is solved (small issues \
with the code). The second part, which is supposed to build a C library that can be \
called from Fortran, presents a more serious problem: for some reason CMake picks \
parts of another toolchain to build this:
The Makefile contains these lines to compile the sources:
cd D:\netcdf\netcdf-build-fortran\libsrc
C:\PROGRA~2\MICROS~3.0\VC\bin\amd64\cl.exe @<<
/nologo $(C_FLAGS) $(C_DEFINES) /FoCMakeFiles\ncfortran.dir\fort-attio.c.obj \
/FdD:\netcdf\netcdf-build-fortran\libsrc\ncfortran.pdb -c \
D:\netcdf\netcdf-fortran-4.4.1\libsrc\fort-attio.c
But to build the library it contains:
libsrc\ncfortran.dll: d:\netcdf\netcdf-build\liblib\netcdf.lib
libsrc\ncfortran.dll: libsrc\CMakeFiles\ncfortran.dir\objects1.rsp
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --red --bold "Linking \
C shared library ncfortran.dll" cd D:\netcdf\netcdf-build-fortran\libsrc
d:\CMake2.8.10.2\bin\cmake.exe -E vs_link_dll \
C:\PROGRA~2\HASKEL~1\201320~1.0\mingw\bin\ld.exe /nologo \
@CMakeFiles\ncfortran.dir\objects1.rsp @<< /out:ncfortran.dll /implib:ncfortran.lib \
/pdb:D:\netcdf\netcdf-build-fortran\libsrc\ncfortran.pdb /dll /version:0.0 \
/STACK:10000000 /INCREMENTAL:YES /machine:x64 /debug \
d:\netcdf\netcdf-build\liblib\netcdf.lib kernel32.lib user32.lib gdi32.lib \
winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib <<
As you can see, it has picked up a linker (ld.exe) belonging to a completely \
different compiler/package for this step.
I have no idea where this is coming from and how to fix this. Does anyone have any \
suggestions?
Regards,
Arjen
DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain \
confidential and privileged information. If you are not the intended recipient please \
notify the sender immediately and destroy this message. Unauthorized use, disclosure \
or copying of this message is strictly prohibited. The foundation 'Stichting \
Deltares', which has its seat at Delft, The Netherlands, Commercial Registration \
Number 41146461, is not liable in any way whatsoever for consequences and/or damages \
resulting from the improper, incomplete and untimely dispatch, receipt and/or content \
of this e-mail.
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at: \
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more information \
on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at \
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic