Hi Sridhar,
The AccessViolationException at wmaiCRTStartup points to a native-level crash when axbuild starts up, so I'd rule out the simple things first.
1.Check the command syntax. In the AxBuild.exe documentation, the /s parameter takes the AOS instance number (for example /s=01), and the example also passes /altbin pointing to the client bin folder that contains ax32.exe. Your command uses a bare /s with no value and no /altbin, so axbuild may be picking up the wrong settings. Try something like:
axbuild.exe xppcompileall /s=01 /altbin="C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin"
Use your actual instance number from the Server Configuration Utility (AxSrvCfg.exe).
2.Run the command prompt as administrator, using an account with at least the same authority as the AOS service account. The same documentation page calls this out.
3.Since you already suspect the Visual C++ runtime, repair or reinstall both the x86 and x64 versions from the latest supported Visual C++ Redistributable downloads, restart the server, and retry.
4.Check available memory. AxBuild starts several temporary AOS processes, and this community post describes compile problems when SQL Server had consumed all the RAM. Free up memory or lower the number of workers.
5.Look at the Windows Event Viewer Application log right after the crash. The faulting module name there will tell you which DLL is actually failing. It's also worth temporarily excluding the AOS bin folder from antivirus scanning.
If the corrected command still crashes, please share the faulting module name from Event Viewer, as that would narrow it down a lot.
Thanks