This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

arc profiling: output fails with -mno-cygwin


My executables compiled with -fprofile-arcs and -mno-cygwin fail to
output the profiling information. I include, below, a sample session
illustrating my program. The first "a.exe" creates "main.da" okay. The
second doesn't. Can you help?

Regards,
Richard Copley.

Owner@machine ~/projects/cxx/testcase
$ cat > main.cpp <<EOF
> #include <iostream>
> int main ()
> {
>   std::cout << "Hello, World!\n";
> }
> EOF

Owner@machine ~/projects/cxx/testcase
$ g++ -fprofile-arcs main.cpp && ./a
Hello, World!

Owner@machine ~/projects/cxx/testcase
$ g++ -fprofile-arcs -mno-cygwin main.cpp && ./a ## Here's the problem.
Hello, World!
arc profiling: Can't open output file /home/Owner/projects/cxx/testcase/main.da.

Owner@machine ~/projects/cxx/testcase
$ cygcheck -s -v -r > cygcheck.out ## See attachment.
cygcheck: dump_sysinfo: GetVolumeInformation() failed: 1005

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]