SAP / cloud-mta-build-tool

Multi-Target Application (MTA) build tool for Cloud Applications https://sap.github.io/cloud-mta-build-tool
Apache License 2.0
139 stars 61 forks source link

MTA build failed : could not execute the on Mac #1115

Open karthirc opened 5 months ago

karthirc commented 5 months ago

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

Please provide the following info:

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.

yutaoj commented 5 months ago

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 ?