SAP/cloud-mta-build-tool

MTA build failed : could not execute the on Mac

karthirc opened this issue · 1 comments

Do you want to request a feature or report a bug?

Please provide the following info:

  • MBT Version: 1.2.27
  • OS Version: Mac 14.4.1
  • If possible, provide a link to the project.

Steps to Reproduce:

  1. I setup MBT latest version in my Mac
  2. After i cloned my project and triggered mbt build it fails with below error.

xxx@xxx cfadmincockpit % mbt build
[2024-04-16 19:01:59] INFO Cloud MTA Build Tool version 1.2.27
[2024-04-16 19:01:59] INFO generating the "Makefile_20240416190159.mta" file...
[2024-04-16 19:01:59] INFO done
[2024-04-16 19:01:59] INFO executing the "make -f Makefile_20240416190159.mta p=cf mtar= strict=true mode=" command...
node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "undefined".] {
code: 'ERR_UNHANDLED_REJECTION'
}

Node.js v20.11.0
[2024-04-16 19:01:59] ERROR could not build the MTA project: could not execute the "make -f Makefile_20240416190159.mta p=cf mtar= strict=true mode=" command: exit status 1
Error: could not build the MTA project: could not execute the "make -f Makefile_20240416190159.mta p=cf mtar= strict=true mode=" command: exit status 1

Additionally I also tried installing xcode-select version 2406 command line tool as mentioned in https://sap.github.io/cloud-mta-build-tool/troubleshooting/#make-cannot-run-on-mac-os still getting same issue.

I can run the mbt build succesfull in my local mac. this issue seems that it associates with the nodejs . could you run the node install or build with the command in the mta.ymal in your mac ?