[CMake] CMake 2.8.2 with WindRiver diab compiler dcc.exe/dplus.exe on WinXP: CMake Error: Could not COPY_FILE. while detecting compiler ABI
Molsen, Hannes
Hannes.Molsen at draeger.com
Tue Sep 21 05:23:04 EDT 2010
[SOLVED]
Hi all,
My problem is completely solved and the output is now as follows:
-- The C compiler identification is Diab
-- The CXX compiler identification is Diab
-- Check for working C compiler: D:/CCView/tools/tornado/host/diab/WIN32/bin/dcc.exe
-- Check for working C compiler: D:/CCView/tools/tornado/host/diab/WIN32/bin/dcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: D:/CCView/tools/tornado/host/diab/WIN32/bin/dplus.exe
-- Check for working CXX compiler: D:/CCView/tools/tornado/host/diab/WIN32/bin/dplus.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: D:/CCView/binaries/PPC603diab/rat/Framework
Isn't that beautiful? :-)
So, what was the problem?
As I said, we only build libraries, no executables. Therefore I disabled the linking to an executable via compiler flag (dplus.exe -c), so the compiler stopped after assembly. Now that I knew, that COPY_FILE was actually looking for an executable for the ABI detection, I just adapted my flags and now everything works :)
I still don't fully understand why this COPY_FILE error does not occur if I rerun the cmake command in --debug-trycompile mode, but now everything works fine, so I don't care :)
Thank you all for the help!
- Hannes
-----Original Message-----
From: Alexander Neundorf [mailto:...-work at gmx.net]
Sent: Montag, 20. September 2010 22:00
To: cmake at cmake.org
Cc: Molsen, Hannes
Subject: Re: [CMake] CMake 2.8.2 with WindRiver diab compiler dcc.exe/dplus.exe on WinXP: CMake Error: Could not COPY_FILE. while detecting compiler ABI
This comes from Sources/cmCoreTryCompile.cxx, there FindOutputFile()
apparently was not successful in finding the linked executable.
The value of CMAKE_EXECUTABLE_SUFFIX is used there.
You need a valid setpu for creating executable, i.e. the suffix must be set
and also the CMAKE_C/CXX_LINK_EXECUTABLE variables must be set properly.
Can you please post the CMakeOutput.log and CMakeError.log from when that
happens ?
You may also dig into the code and check what's going wrong :-)
Alex
---
This communication contains confidential information. If you are not the intended recipient please return this email to the sender and delete it from your records.
Diese Nachricht enthält vertrauliche Informationen. Sollten Sie nicht der beabsichtigte Empfänger dieser E-mail sein, senden Sie bitte diese an den Absender zurück und löschen Sie die E-mail aus Ihrem System.
More information about the CMake
mailing list