YoYoGames / GMRT-Beta

Bug Tracking for new GameMaker Runtime Beta
21 stars 0 forks source link

GMRT native won't build #181

Closed DragoniteSpam closed 2 months ago

DragoniteSpam commented 2 months ago

Description

Running any project with GMRT Interpreted works, running any project with GMRT Native crashes.

  Unhandled exception. System.AggregateException: One or more errors occurred. (An error occurred trying to start process '"clang-cl"' with working directory 'F:\GameMaker\Projects\3DCollisions\Build\build'. The system cannot find the file specified.)
   ---> System.ComponentModel.Win32Exception (2): An error occurred trying to start process '"clang-cl"' with working directory 'F:\GameMaker\Projects\3DCollisions\Build\build'. The system cannot find the file specified.
     at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
     at gmutils.BuildUtil.InvokeCompiler(Logger logger, Boolean verbose, String pathToCompiler, String[] compilerArgs) in C:\actions-runner\_work\GMRT\GMRT\YoYoCompilerToolChain\tools\utils\BuildUtil.cs:line 314
     at gmc.GMCompiler.CompileToObj(String _file) in C:\actions-runner\_work\GMRT\GMRT\YoYoCompilerToolChain\tools\gmc\gmc\GMCompiler.cs:line 462
     at gmc.GMCompiler.<>c__DisplayClass104_0.<<IRToObjFiles>b__2>d.MoveNext() in C:\actions-runner\_work\GMRT\GMRT\YoYoCompilerToolChain\tools\gmc\gmc\GMCompiler.cs:line 289
  --- End of stack trace from previous location ---
     at gmc.GMCompiler.IRToObjFiles(IEnumerable`1 irFiles, String[] additionalFiles) in C:\actions-runner\_work\GMRT\GMRT\YoYoCompilerToolChain\tools\gmc\gmc\GMCompiler.cs:line 275
     at gmc.GMCompiler.BuildExecutable(IEnumerable`1 scriptIR, String modulesPath) in C:\actions-runner\_work\GMRT\GMRT\YoYoCompilerToolChain\tools\gmc\gmc\GMCompiler.cs:line 566
     at gmc.GMCompiler.Compile(IEnumerable`1 inputScripts) in C:\actions-runner\_work\GMRT\GMRT\YoYoCompilerToolChain\tools\gmc\gmc\GMCompiler.cs:line 122
     --- End of inner exception stack trace ---
     at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
     at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
     at gmc.Program.Main(String[] args) in C:\actions-runner\_work\GMRT\GMRT\YoYoCompilerToolChain\tools\gmc\gmc\Program.cs:line 79
  [createdump] Writing minidump for process 28828 to file C:\ProgramData\GameMakerStudio2-Beta\Dumps\gmdump.28828.dmp
  [createdump] Dump successfully written in 505ms

It sounds like some path is not configured properly.

image

3DCollisions_gmrt.zip compile.txt

Beta IDE v2024.600.0.579 GMRT 0.8.0

Expected Change

GMRT Native to build

Steps To Reproduce

  1. Start GameMaker
  2. See the issue

How reliably can you recreate this issue using your steps above?

Always

Which version of GameMaker are you reporting this issue for?

Other Release (Please put the exact version number in your Description)

Which operating system(s) are you seeing the problem on?

Windows 10

Which platform(s) are you having trouble building this project for?

Windows

Are you running GameMaker from inside your Steam library?

No

ui.log File

Compiler Log File

Sample .yyz File

LukeBrownYoYoGames commented 2 months ago

By default GMRT doesnt add any of those executables to PATH. If you want to use "clang-cl" as defined here in the "Path to clang executable" then you need to ensure that clang-cl exists in PATH.

By default, those options should be empty, If they are empty this informs GMRT to use the clang version downloaded as part of the clang GMPM package. Try removing "clang-cl" from the "Path to clang executable" field and see if that works - you may want to empty the "cmake" and "Visual Studio 17" flags too

LukeBrownYoYoGames commented 2 months ago

Make sure to have these packages also installed. They should be located in the "third_party" subdirectory of the gmpm install folder image