Discussion:
[GCC-XML] Compiling on Windows 7 ...
Michka Popoff
2014-07-11 21:17:14 UTC
Permalink
Hi

I need to test gccxml on Windows. (to see if everything works fine with pygccxml).
I installed Visual Studio Express 9 2008. Cmake GUI asks me for a generator. I guess it's "Visual studio 9 2008" + Use default native compilers.

During the configure step, cmake runs until it stops at:


checking stack direction for C allocs


It is now stuck at this step and does not continue.

Here is a gist with the error log: https://gist.github.com/iMichka/3622a7785f870d48c3c0

Michka
Brad King
2014-07-14 12:56:02 UTC
Permalink
Post by Michka Popoff
checking stack direction for C allocs
It is now stuck at this step and does not continue.
Here is a gist with the error log: https://gist.github.com/iMichka/3622a7785f870d48c3c0
The log entry for that check does not show up until after it finishes
so it is not in the gist. You can try looking at the process tree
and the content of the CMakeFiles/CMakeTmp directory to see what is
going on.

FWIW, I've built gccxml with VS 9 2008 on Windows 7 many times.

-Brad
Michka Popoff
2014-07-14 14:09:10 UTC
Permalink
Okay I found the problem ?

I stopped Avast, and it worked. It?s not the first time that I get conflicts with this Antivirus. That?s why I never use Windows :D

1) Just getting a warning now (https://gist.github.com/iMichka/19b3aea137013d810f92), about CMP0026
I remember you fixing this, but not in GCC_XML/VcInstall/CMakeLists.txt:
https://github.com/gccxml/gccxml/commit/3eb4078017ae4b95d6f69647068718a5ca890396
(I?m not sure about the fix though)

2) And the following build failure VS: https://gist.github.com/iMichka/cdd3333b3cd3f9104a1f

Michka
Post by Brad King
Post by Michka Popoff
checking stack direction for C allocs
It is now stuck at this step and does not continue.
Here is a gist with the error log: https://gist.github.com/iMichka/3622a7785f870d48c3c0
The log entry for that check does not show up until after it finishes
so it is not in the gist. You can try looking at the process tree
and the content of the CMakeFiles/CMakeTmp directory to see what is
going on.
FWIW, I've built gccxml with VS 9 2008 on Windows 7 many times.
-Brad
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://public.kitware.com/mailman/listinfo/gccxml
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/gccxml/attachments/20140714/e77dec4c/attachment.html>
Brad King
2014-07-14 14:48:41 UTC
Permalink
Post by Michka Popoff
1) Just getting a warning now (https://gist.github.com/iMichka/19b3aea137013d810f92), about CMP0026
I remember you fixing this, but not in GCC_XML/VcInstall/CMakeLists.txt
Fixed:

https://github.com/gccxml/gccxml/commit/1b50b49e50f5edd26b0992d7994da15e52536b02
Post by Michka Popoff
2) And the following build failure VS: https://gist.github.com/iMichka/cdd3333b3cd3f9104a1f
You'll have to try running the failing command lines by hand to see
what happens. I cannot reproduce that.

-Brad
Michka Popoff
2014-07-14 15:48:01 UTC
Permalink
Thanks for the fix, that?s what I thought but I was not sure about it.

For the build error, in fact I did not give you the right error, I?m discovering Visual Studio and I was not clear to me
were the error was. Here it is: https://gist.github.com/iMichka/2b95142326bc2950a111

I ran the command manually, Windows tells me it can not find the patch executable.
I suppose I have to install this: http://gnuwin32.sourceforge.net/packages/patch.htm
Still, it does not find the patch executable, I added the folder to the path, rebooted, but it still complains it can not find it.

Thanks for the help

Michka
Post by Brad King
Post by Michka Popoff
1) Just getting a warning now (https://gist.github.com/iMichka/19b3aea137013d810f92), about CMP0026
I remember you fixing this, but not in GCC_XML/VcInstall/CMakeLists.txt
https://github.com/gccxml/gccxml/commit/1b50b49e50f5edd26b0992d7994da15e52536b02
Post by Michka Popoff
2) And the following build failure VS: https://gist.github.com/iMichka/cdd3333b3cd3f9104a1f
You'll have to try running the failing command lines by hand to see
what happens. I cannot reproduce that.
-Brad
Brad King
2014-07-14 15:52:52 UTC
Permalink
Post by Michka Popoff
Thanks for the fix, that?s what I thought but I was not sure about it.
For the build error, in fact I did not give you the right error, I?m discovering Visual Studio and I was not clear to me
were the error was. Here it is: https://gist.github.com/iMichka/2b95142326bc2950a111
That content is just a log of the command sequence it was told to run,
not the results. The IDE output window should have the real messages.
Post by Michka Popoff
I ran the command manually, Windows tells me it can not find the patch executable.
I suppose I have to install this: http://gnuwin32.sourceforge.net/packages/patch.htm
No, we provide a binary in the source tree:

GCC_XML/VcInstall/vcCat.exe
GCC_XML/VcInstall/vcPatch.exe

Perhaps Git is not checking it out with execute permission?

-Brad
Michka Popoff
2014-07-14 16:11:14 UTC
Permalink
When looking at the properties of the two files, there was this message:
This file came from another computer and might be blocked to help protect this computer

I unblocked them, just to be sure, but it still didn?t work.

Got this error message in the IDE:

1>------ Build started: Project: vcInstallPatch, Configuration: Release Win32 ------
1>Generating ../vcInstall_stamp.c
1>Cannot find patch executable.
1>Project : error PRJ0019: A tool returned an error code from "Generating ../vcInstall_stamp.c"
1>Build log was saved at "file://c:\Users\lux\Desktop\build\GCC_XML\VcInstall\vcInstallPatch.dir\Release\BuildLog.htm"
1>vcInstallPatch - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 36 up-to-date, 0 skipped ==========
Post by Brad King
Post by Michka Popoff
Thanks for the fix, that?s what I thought but I was not sure about it.
For the build error, in fact I did not give you the right error, I?m discovering Visual Studio and I was not clear to me
were the error was. Here it is: https://gist.github.com/iMichka/2b95142326bc2950a111
That content is just a log of the command sequence it was told to run,
not the results. The IDE output window should have the real messages.
Post by Michka Popoff
I ran the command manually, Windows tells me it can not find the patch executable.
I suppose I have to install this: http://gnuwin32.sourceforge.net/packages/patch.htm
GCC_XML/VcInstall/vcCat.exe
GCC_XML/VcInstall/vcPatch.exe
Perhaps Git is not checking it out with execute permission?
-Brad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/gccxml/attachments/20140714/e775c11a/attachment-0001.html>
Brad King
2014-07-14 17:08:45 UTC
Permalink
Post by Michka Popoff
1>Generating ../vcInstall_stamp.c
1>Cannot find patch executable.
In the IDE menu system follow:

Tools -> Options -> Projects and Solutions -> Build and Run
-> MSBuild project build output verbosity

and select more detailed output from the drop-down.

-Brad
Michka Popoff
2014-07-14 17:58:39 UTC
Permalink
Following your instructions I changed it, and it does not modify the format of the output (In detailed and in diagnostics mode).
Maybe there is nothing more to display then.
Post by Brad King
Post by Michka Popoff
1>Generating ../vcInstall_stamp.c
1>Cannot find patch executable.
Tools -> Options -> Projects and Solutions -> Build and Run
-> MSBuild project build output verbosity
and select more detailed output from the drop-down.
-Brad
Brad King
2014-07-14 18:05:02 UTC
Permalink
Post by Michka Popoff
Following your instructions I changed it, and it does not modify the format
Post by Michka Popoff
1>Generating ../vcInstall_stamp.c
1>Cannot find patch executable.
It looks for vcPatch.exe and vcCat.exe in the directory given as the
first argument to the command. According to the gist you linked
earlier that is:

C:/Users/lux/Desktop/gccxml-master/GCC_XML/VcInstall

Do the files exist there? If so you're going to have to debug
this in GCC_XML/VcInstall/vcInstall.cxx to see why it does not
think the executables exist.

-Brad
Michka Popoff
2014-07-15 12:08:26 UTC
Permalink
Okay I found it. Avast again ?

I checked the files, vcCat.exe is there, but not vcPatch.exe ?
I extracted the archive with Winrar, when Avast?s active protection is running, it does not extract vcPatch ?
Funnily vcCat.exe is correctly extracted. And interestingly nor Avast nor Winrar display any error message.

I was able to compile gccxml, and pygccxml?s unit tests are all passing under windows :)

Thanks for the help Brad

Michka
Post by Brad King
Post by Michka Popoff
Following your instructions I changed it, and it does not modify the format
Post by Michka Popoff
1>Generating ../vcInstall_stamp.c
1>Cannot find patch executable.
It looks for vcPatch.exe and vcCat.exe in the directory given as the
first argument to the command. According to the gist you linked
C:/Users/lux/Desktop/gccxml-master/GCC_XML/VcInstall
Do the files exist there? If so you're going to have to debug
this in GCC_XML/VcInstall/vcInstall.cxx to see why it does not
think the executables exist.
-Brad
Continue reading on narkive:
Loading...