View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013575CMakeCMakepublic2012-10-05 17:132016-06-10 14:31
ReporterKrzysiek 
Assigned ToKitware Robot 
PrioritynormalSeveritytextReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSWindowsOS VersionXp SP3
Product VersionCMake 2.8.9 
Target VersionFixed in Version 
Summary0013575: No print messages after PROJECT(<name>)
DescriptionHi,

In file in main project "CMakeLists.txt" after line "PROJECT(name)" the message is not printing.
Of course before line PROJECT() messages works.
TagsNo tags attached.
Attached Filestxt file icon CMakeLists.txt [^] (5,642 bytes) 2012-10-05 18:23 [Show Content]

 Relationships

  Notes
(0031185)
Rolf Eike Beer (developer)
2012-10-05 17:46

Please give the example code.
(0031186)
Krzysiek (reporter)
2012-10-05 18:22
edited on: 2012-10-05 18:24

please find this lines in attached file CMakeLists.txt:

# set the project name and other variables
message("testedgett")
PROJECT(EO)
message("testedgett22")

First messages works, second no

(0031188)
Rolf Eike Beer (developer)
2012-10-06 05:43

# cmake ..
testedgett
-- The C compiler identification is GNU 4.6.0
-- The CXX compiler identification is GNU 4.6.0
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
testedgett22
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/cmsession/build
(0031189)
Krzysiek (reporter)
2012-10-06 07:46

Sorry for mistakes, I though that info:

http://www.cmake.org/cmake/help/v2.8.9/cmake.html#command:project [^]

is only for name project, but this command also check C/C++ complier, and I get error here.

Sorry, my fault :/


G:\Genetyka\EO\eo\release>cmake -G "Borland Makefiles" ..
 - Testowy message
testedgett
-- The C compiler identification is Borland 5.60
-- The CXX compiler identification is Borland 5.60
-- Check for working C compiler: D:/Program Files/Borland/CBuilder6/Bin/bcc32.exe
-- Check for working C compiler: D:/Program Files/Borland/CBuilder6/Bin/bcc32.exe -- broken
CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
  The C compiler "D:/Program Files/Borland/CBuilder6/Bin/bcc32.exe" is not
  able to compile a simple test program.

  It fails with the following output:

   Change Dir: G:/Genetyka/EO/eo/release/CMakeFiles/CMakeTmp



  Run Build Command:make "cmTryCompileExec1204623160\fast"

  MAKE Version 5.2 Copyright (c) 1987, 2000 Borland

        make -f CMakeFiles\cmTryCompileExec1204623160.dir\build.make -l -o
  CMakeFiles\cmTryCompileExec1204623160.dir\build

  MAKE Version 5.2 Copyright (c) 1987, 2000 Borland

        "C:\Program Files\CMake 2.8\bin\cmake.exe" -E cmake_progress_report
  G:\Genetyka\EO\eo\release\CMakeFiles\CMakeTmp\CMakeFiles 1

  CMake Error: cmake version 2.8.9

  Usage: C:\PROGRA~1\CMake -E [command] [arguments ...]

  Available commands:

    chdir dir cmd [args]... - run command in a given directory
    compare_files file1 file2 - check if file1 is same as file2
    copy file destination - copy file to destination (either file or directory)
    copy_directory source destination - copy directory 'source' content to directory 'destination'
    copy_if_different in-file out-file - copy file if input has changed
    echo [string]... - displays arguments as text
    echo_append [string]... - displays arguments as text but no new line
    environment - display the current environment
    make_directory dir - create a directory
    md5sum file1 [...] - compute md5sum of files
    remove [-f] file1 file2 ... - remove the file(s), use -f to force it
    remove_directory dir - remove a directory and its contents
    rename oldname newname - rename a file or directory (on one volume)
    tar [cxt][vfz][cvfj] file.tar file/dir1 file/dir2 ... - create a tar archive
    time command [args] ... - run command and return elapsed time
    touch file - touch a file.
    touch_nocreate file - touch a file but do not create it.

  Available on Windows only:

    comspec - on windows 9x use this for RunCommand
    delete_regv key - delete registry value
    write_regv key value - write registry value





  ** error 1 ** deleting
  CMakeFiles\cmTryCompileExec1204623160.dir\testCCompiler.c.obj



  ** error 1 ** deleting cmTryCompileExec1204623160\fast





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


-- Configuring incomplete, errors occurred!

G:\Genetyka\EO\eo\release>cd ..
(0031237)
David Cole (manager)
2012-10-15 09:50

So CMake is on the C: drive, the Borland compiler is on the D: drive, and your source/build trees are on the G: drive... Certainly not our typical test setup for our Borland dashboard machines.

Does this happen if you put your project on the C: drive? (just as a test to see if it's the drive differences that are causing the problems here...)
(0031285)
Krzysiek (reporter)
2012-10-20 15:07
edited on: 2012-10-20 15:11

I try run test on C drive, the same...

PS. Could me anybody write, what parameters and what code are send to bcc (for checking C/C++ compiler), I see only this in logs:

Run Build Command:make "cmTryCompileExec2597543022\fast"


-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-
C:\test>cmake -G "Borland Makefiles" >out.txt 2>&1
 
 
out.txt file:
 
-- The C compiler identification is Borland 5.60
-- The CXX compiler identification is Borland 5.60
-- Check for working C compiler: D:/Program Files/Borland/CBuilder6/Bin/bcc32.exe
-- Check for working C compiler: D:/Program Files/Borland/CBuilder6/Bin/bcc32.exe -- broken
CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
  The C compiler "D:/Program Files/Borland/CBuilder6/Bin/bcc32.exe" is not
  able to compile a simple test program.

  It fails with the following output:

   Change Dir: C:/test/CMakeFiles/CMakeTmp

 

  Run Build Command:make "cmTryCompileExec2597543022\fast"

  MAKE Version 5.2 Copyright (c) 1987, 2000 Borland


      make -f CMakeFiles\cmTryCompileExec2597543022.dir\build.make -l -o
  CMakeFiles\cmTryCompileExec2597543022.dir\build


  MAKE Version 5.2 Copyright (c) 1987, 2000 Borland


      "C:\Program Files\CMake 2.8\bin\cmake.exe" -E cmake_progress_report
  C:\test\CMakeFiles\CMakeTmp\CMakeFiles 1


  CMake Error: cmake version 2.8.9


  Usage: C:\PROGRA~1\CMake -E [command] [arguments ...]


  Available commands:


    chdir dir cmd [args]... - run command in a given directory

    compare_files file1 file2 - check if file1 is same as file2

    copy file destination - copy file to destination (either file or directory)

    copy_directory source destination - copy directory 'source' content to directory 'destination'

    copy_if_different in-file out-file - copy file if input has changed

    echo [string]... - displays arguments as text

    echo_append [string]... - displays arguments as text but no new line

    environment - display the current environment

    make_directory dir - create a directory

    md5sum file1 [...] - compute md5sum of files

    remove [-f] file1 file2 ... - remove the file(s), use -f to force it

    remove_directory dir - remove a directory and its contents

    rename oldname newname - rename a file or directory (on one volume)

    tar [cxt][vfz][cvfj] file.tar file/dir1 file/dir2 ... - create a tar archive

    time command [args] ... - run command and return elapsed time

    touch file - touch a file.

    touch_nocreate file - touch a file but do not create it.


  Available on Windows only:


    comspec - on windows 9x use this for RunCommand

    delete_regv key - delete registry value

    write_regv key value - write registry value


 


 


  ** error 1 ** deleting
  CMakeFiles\cmTryCompileExec2597543022.dir\testCCompiler.c.obj


 


  ** error 1 ** deleting cmTryCompileExec2597543022\fast


 

 

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:1 (Project)


-- Configuring incomplete, errors occurred!

(0031286)
David Cole (manager)
2012-10-20 16:02

I recommend that you ask for help on the CMake mailing list.

Perhaps people who are on there are using the same compiler as you successfully, and can guide you with some of their wisdom.

I have not used the Borland 5.60 compiler myself, but we do have CMake dashboards that run with various versions of the Borland compiler that are working, so I know it's possible to get it to work.

Try with a simpler project first perhaps to get the compiler working, and then try again with yours...
(0042129)
Kitware Robot (administrator)
2016-06-10 14:28

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
2012-10-05 17:13 Krzysiek New Issue
2012-10-05 17:46 Rolf Eike Beer Note Added: 0031185
2012-10-05 18:22 Krzysiek Note Added: 0031186
2012-10-05 18:23 Krzysiek File Added: CMakeLists.txt
2012-10-05 18:24 Krzysiek Note Edited: 0031186
2012-10-06 05:43 Rolf Eike Beer Note Added: 0031188
2012-10-06 07:46 Krzysiek Note Added: 0031189
2012-10-15 09:50 David Cole Note Added: 0031237
2012-10-20 15:07 Krzysiek Note Added: 0031285
2012-10-20 15:11 Krzysiek Note Edited: 0031285
2012-10-20 16:02 David Cole Note Added: 0031286
2016-06-10 14:28 Kitware Robot Note Added: 0042129
2016-06-10 14:28 Kitware Robot Status new => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:28 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team