View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014871CMakeCMakepublic2014-04-09 17:022016-06-10 14:31
Reportervitaut 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
Platformx86OSWindowsOS Version7
Product VersionCMake 2.8.11.2 
Target VersionFixed in Version 
Summary0014871: Error running link command when using gfortran on Windows with NMake Makefiles
DescriptionRunning CMake on a small test project that combines C++ and Fortran (https://github.com/vitaut/test [^]) results in the following error:

  Linking Fortran executable cmTryCompileExec108399929.exe


  "C:\Program Files\CMake 2.8\bin\cmake.exe" -E cmake_link_script
  CMakeFiles\cmTryCompileExec108399929.dir\link.txt --verbose=1


  "C:\Program Files\CMake 2.8\bin\cmake.exe" -E remove -f
  CMakeFiles\cmTryCompileExec108399929.dir/objects.a


  "" cr CMakeFiles\cmTryCompileExec108399929.dir/objects.a
  @CMakeFiles\cmTryCompileExec108399929.dir\objects1.rsp

I'm using MinGW's toolchain including gfortran version 4.8.1 on 32-bit Windows 7.
Steps To Reproduce0. Install MinGW including mingw32-gcc-fortran package from http://www.mingw.org/wiki/Install_MinGW [^]

1. Clone the test repository:
   git clone https://github.com/vitaut/test.git [^]

2. Run CMake:
   cd test
   cmake -G "MinGW Makefiles" .

3. Observe the error.
TagsNo tags attached.
Attached Filestxt file icon cmake-error-log.txt [^] (2,061 bytes) 2014-04-09 17:02 [Show Content]

 Relationships

  Notes
(0035662)
vitaut (reporter)
2014-04-09 17:04
edited on: 2014-04-09 18:41

Sorry, I omitted the actual error message which is:

    Error running link command: The parameter is incorrect

And one more correction, I used "NMake Makefiles" generator, so the cmake command in item 2 should be:

    cmake -G "NMake Makefiles" .

(0035669)
Brad King (manager)
2014-04-10 13:01

I do not think the combination of gfortran with NMake Makefiles has ever been attempted before. Why do you need it?
(0042532)
Kitware Robot (administrator)
2016-06-10 14:29

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2014-04-09 17:02 vitaut New Issue
2014-04-09 17:02 vitaut File Added: cmake-error-log.txt
2014-04-09 17:04 vitaut Note Added: 0035662
2014-04-09 18:41 vitaut Note Edited: 0035662
2014-04-10 12:59 Brad King Summary Error running link command when using gfortran on Windows => Error running link command when using gfortran on Windows with NMake Makefiles
2014-04-10 13:01 Brad King Note Added: 0035669
2014-04-10 13:01 Brad King Status new => backlog
2016-06-10 14:29 Kitware Robot Note Added: 0042532
2016-06-10 14:29 Kitware Robot Status backlog => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team