Compile Error

wilbo

  • Posts: 115
So I'm running into yet another compiler error. I can't even debug compile anymore. I'm trying to compile to Windows.

I've attached the log, but the relevant lines seem to be:

C:\Users\USER\AppData\Roaming\Stencyl\stencylworks\games-generated\Hollow Knight v25\Export\windows\cpp\obj\include\com/stencyl/behavior/Script.h(505) : fatal error C1001: An internal error has occurred in the compiler.(compiler file 'msc1.cpp', line 1420)
To work around this problem, try simplifying or changing the program near the locations listed above.


And:

Internal Compiler Error in C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe.  You will be prompted to send an error report to Microsoft later.

Can anyone give me any kind of help on this or point me in the right direction?

wilbo

  • Posts: 115
So I checked line 505 in Script.h and here it is:

Dynamic setScrollFactorForLayer_dyn();

So something to do with setting the parallax of a layer? I don't use that so what is happening here?

wilbo

  • Posts: 115
Tried upgrading to the newest nightly build, got a slightly different error:

C:\Program Files (x86)\Stencyl\plaf\haxe\lib\hxlibc\1,0,0\include\hx/Object.h(191) : fatal error C1001: An internal error has occurred in the compiler. (compiler file 'msc1.cpp', line 1420)

Line 191 in Object.h is:

ObjectPtr &operator=(const ObjectPtr &inRHS) { mPtr = inRHS.mPtr; return *this; }

????????????????

captaincomic

  • *
  • Posts: 6108
"Internal compiler error" sounds like something is wrong with Visual Studio. Try reinstalling it. Maybe get the 2013 version.

wilbo

  • Posts: 115
I tried downloading Visual Studio 12, but kept getting the same error. How do I make Stencyl use Visual Studio 12 instead of 10? I uninstalled VS10, but then Stencyl forces me to download it again.

captaincomic

  • *
  • Posts: 6108
Stencyl should recognize it (if the PATH is set correctly, but that should be on automatically when you install VS). Try the latest update from here: http://www.visualstudio.com/en-us/downloads/download-visual-studio-vs#d-visual-studio-2013-update

wilbo

  • Posts: 115
I've installed Visual Studio 2013, but when compiling to Windows in Stencyl it still asks me to download Visual Studio 2010 and stops compiling. Can I set PATH (whatever that is) manually or something?

wilbo

  • Posts: 115
Ok, I restarted and so Stencyl seems to be using Visual Studio 2013, that's good. But! Compiler is still throwing me this error:

'cl.exe' is not recognized as an internal or external command, operable program or batch file.

and later in the log:

jar:file:/C:/Program%20Files%20(x86)/Stencyl/sw.jar!/res/logview4j/images/info.gif   false   INFO   1416298232005000276   stencyl.sw.util.StreamGobbler   Uncaught exception - Error creating pch: 1 - build cancelled

As far as I can tell, this means that Stencyl can't find the compiler? Can I tell Stencyl where it is? Or could this be a permissions issue? Windows 8 keeps denying me permission to write to folders and such.

wilbo

  • Posts: 115
This happens with any project by the way

wilbo

  • Posts: 115
Do Ihave to add something to my PATH? I looked it up, and here it is - is anything missing?

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\

wilbo

  • Posts: 115
I've added some stuff to my path, and now I'm getting a new error!

./src/openfl/utils/Float32Array.cpp(1) : fatal error C1041: cannot open program database 'c:\users\william\appdata\roaming\stencyl\stencylworks\games-generated\testo\export\windows\cpp\obj\vc120.pdb'; if multiple CL.EXE write to the same .PDB file, please use /FS

And a bunch more lines like that. Wha?

captaincomic

  • *
  • Posts: 6108
Hm, sorry, about the PATH comment, I think that was misleading. I checked my PATH and the Visual Studio bin dir doesn't need to be defined there.

Did the original error also appear with all projects?
Do you use Dropbox or some other service to share your workspace?
Please post your full logs (maybe after you revert the PATH change if that seems to have made it worse).

wilbo

  • Posts: 115
So I tried reinstalling Windows 8.1 to get back to a state where this thing will compile. I made a small test game in Stencyl and it compiled to Windows no issues. Then when I tried to compile Hollow Knight Stencyl kept asking me to install Visual Studio 2010 over and over. Redownloading Visual Studio 2013 and trying that again. Will let you know how I go :/

wilbo

  • Posts: 115
Still can't compile :(


Getting this error when compiling any project, even a brand new one:

c:\Program Files (x86)\Stencyl\plaf\haxe\lib\hxlibc\1,0,0\include\hxcpp.h(11) : fatal error C1083: Cannot open include file: 'typeinfo.h': No such file or directory

Bizarrely, I could compile new projects this morning without any issues. And then it all broke. Again. I'm tearing my hair out trying to get this thing to compile.

Here's a link to the log file

Is there anything else I can upload for you to take a look at?

captaincomic

  • *
  • Posts: 6108
Quote
Bizarrely, I could compile new projects this morning without any issues. And then it all broke. Again. I'm tearing my hair out trying to get this thing to compile.
Strange, I have no explanation for this either.

Here's a thread about your latest error message, http://www.openfl.org/archive/community/installing-openfl/typeinfoh-not-found-windows/
which, afaict, just says that it should work with Visual Studio for Desktop obtainable from this link http://www.microsoft.com/visualstudio/eng#products/visual-studio-express-for-windows-desktop
Not sure if this is the same as the one you got.

You also seem to get this error (or a very similar one) http://www.openfl.org/archive/community/bugs/problem-building-example-app-on-windows/ but I don't think this one is responsible for your troubles.
Quote
2014-11-19 22:44:19,365 DEBUG [Thread-7] stencyl.sw.util.StreamGobbler:  - Running command: C:\Program Files (x86)\Stencyl\plaf\haxe\lib/hxtools/1^,1^,6/templates/bin/ReplaceVistaIcon.exe "Export/windows/cpp/bin//Hollow Knight v10.exe" Export/windows/cpp/bin/icon.ico
2014-11-19 22:44:19,370 INFO  [Thread-7] stencyl.sw.util.StreamGobbler: 'C:\Program' is not recognized as an internal or external command,
2014-11-19 22:44:19,371 INFO  [Thread-7] stencyl.sw.util.StreamGobbler: operable program or batch file.