As a suggestion, it might be trying to run an ARexx script, or sending invalid commands to an ARexx port somewhere??
Using SAS/C here, which is totally different.
Start with SnoopDOS to see if you can find out what's happening in the background when you build the project.
You can use Scout to see what ports are available, plus see what tasks (including RexxMaster) are running.