Page 1 of 1

Twine 5.2.1.250 - jtmake / msbuild errors

Posted: Mon Dec 01, 2025 4:54 pm
by andk
Good day,

I'm currently working with RAD Studio 10.4 & Twine 5.2.1.250. IDE plugin is working great, but there are troubles with command line execution. I was wondering if someone can help me with that.

My custom (due to legacy codebase) build utility that has strict dependencies for each build step and execute these steps in parallel (if dependencies allow such execution). Each step is executed in separate thread, that calls CreateProcessW with appropriate command line arguments. MSBuild with default Builder .targets file works correctly.

However:
1. if jtmake is used on one project, then everything is working fine. if during full build two or more subprocesses are created (one for each .cbproj file), then all processes fail with error:

Code: Select all

Target CreateProjectDirectories:
    Creating directory ".\output\obj\".
Target MakeObjs:
    Target TCCompile:
        C:\Program Files (x86)\JomiTech\TwineCompile\mtbcc32.exe -ide104 -threads8 -priority0 -files="c:\__ab\git\log\LCBlock\twfiles.@@@"  
        JomiTech TwineCompile 5.2 - Copyright JomiTech 2020. All Rights Reserved.
        Couldn't compile files. Message: Failed to create cancellation pipe.
        C:\Program Files (x86)\JomiTech\TwineCompile\TCTargets104.targets(765,5): error MSB6006: "mtbcc32" exited with code 1.
    Done building target "TCCompile" in project "LCBlock.cbproj" -- FAILED.
Done building target "MakeObjs" in project "LCBlock.cbproj" -- FAILED.
My theory that problem is with "\\.\pipe\MtBcc32CompletedPipe%username%". Are there any workaround to execute multiple builds in parallel?

2. if msbuild is used - I'm following instruction "MSBuild How-To.txt", but still encountering error:

Code: Select all

Project "c:\__ab\git\log\LCBlock\LCBlock.cbproj" on node 1 (Bui
ld target(s)).
C:\Program Files (x86)\JomiTech\TwineCompile\TCTargets104.targets(109,5): error MSB4062: The "TCInitTasks" task could not be loaded from the asse
mbly C:\Program Files (x86)\JomiTech\TwineCompile\JTBuildInterface104.dll. Could not load file or assembly 'Borland.Build.Tasks.Cpp, Version=27.0
.0.0, Culture=neutral, PublicKeyToken=91d62ebb5b0d1b1b' or one of its dependencies. The system cannot find the file specified. Confirm that the <
UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that imple
ments Microsoft.Build.Framework.ITask. [c:\__ab\git\log\LCBlock\LCBlock.cbproj]
Done Building Project "c:\__ab\git\log\LCBlock\LCBlock.cbproj"
(Build target(s)) -- FAILED.
Here I have no ideas what is wrong, will appreciate any ideas.


Thank you in advance.