[CMake] fortran compiler failed to compile simple test program

Ette, Anthony (CDS) Anthony.R.Ette at controlsdata.com
Mon Jun 15 11:31:39 EDT 2015


Any ideas?  Our FORTRAN compiler (Concurrent Computer Corporation port of f77) is failing to compile simple test program because the linker can't find -lrt (highlighted below).  Have you ever seen anything like this?  How can I remedy?


-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- No build type selected, default to Debug
-- The Fortran compiler identification is GNU
-- Check for working Fortran compiler: /usr/ccs/bin/cf77
-- Check for working Fortran compiler: /usr/ccs/bin/cf77  -- broken
CMake Error at /usr/local/cmake/share/cmake-3.2/Modules/CMakeTestFortranCompiler.cmake:54 (message):
  The Fortran compiler "/usr/ccs/bin/cf77" is not able to compile a simple
  test program.

  It fails with the following output:

   Change Dir: /home/bzpl46/sandbox/AE3007/C2/build/redhawk/CMakeFiles/CMakeTmp



  Run Build Command:"/usr/bin/gmake" "cmTryCompileExec3634533531/fast"

  /usr/bin/gmake -f CMakeFiles/cmTryCompileExec3634533531.dir/build.make
  CMakeFiles/cmTryCompileExec3634533531.dir/build

  gmake[1]: Entering directory
  `/home/bzpl46/sandbox/AE3007/C2/build/redhawk/CMakeFiles/CMakeTmp'

  /usr/local/cmake/bin/cmake -E cmake_progress_report
  /home/bzpl46/sandbox/AE3007/C2/build/redhawk/CMakeFiles/CMakeTmp/CMakeFiles
  1

  Building Fortran object
  CMakeFiles/cmTryCompileExec3634533531.dir/testFortranCompiler.f.o

  /usr/ccs/bin/cf77 -c
  /home/bzpl46/sandbox/AE3007/C2/build/redhawk/CMakeFiles/CMakeTmp/testFortranCompiler.f
  -o CMakeFiles/cmTryCompileExec3634533531.dir/testFortranCompiler.f.o


  /home/bzpl46/sandbox/AE3007/C2/build/redhawk/CMakeFiles/CMakeTmp/testFortranCompiler.f:


  Linking Fortran executable cmTryCompileExec3634533531

  /usr/local/cmake/bin/cmake -E cmake_link_script
  CMakeFiles/cmTryCompileExec3634533531.dir/link.txt --verbose=1

  /usr/ccs/bin/cf77
  CMakeFiles/cmTryCompileExec3634533531.dir/testFortranCompiler.f.o -o
  cmTryCompileExec3634533531 -rdynamic

  /usr/ccs/release/7.3/lib_ia32/ld: cannot find -lrt

  gmake[1]: *** [cmTryCompileExec3634533531] Error 1

  gmake[1]: Leaving directory
  `/home/bzpl46/sandbox/AE3007/C2/build/redhawk/CMakeFiles/CMakeTmp'

  gmake: *** [cmTryCompileExec3634533531/fast] Error 2





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  src/namelist/CMakeLists.txt:3 (PROJECT)


-- Configuring incomplete, errors occurred!

Anthony Ette
Systems Engineer
Simulation and Modeling

Controls and Data Services Inc.
Part of the Rolls-Royce Group
7661 N Perimeter Rd
Indianapolis, IN 46241

tel: +1 (317) 230-6943
mob: +1 (317) 864-7975
email: Anthony.R.Ette at controlsdata.com<mailto:Anthony.R.Ette at controlsdata.com>
www.controlsdata.com<http://www.controlsdata.com/>

This e-mail (including attachments) contains contents owned by Rolls-Royce plc and its subsidiaries, affiliated companies or customers and covered by the laws of England and Wales, Brazil, US, or Canada (federal, state or provincial). The information contained in this email is intended to be confidential, may be legally privileged and subject to export controls which may restrict the access to and transfer of the information. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, interception or copying of this communication is strictly prohibited and may subject you to further legal action. Reply to the sender if you received this email by accident, and then delete the email and any attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150615/f0726c98/attachment.html>


More information about the CMake mailing list