Hello,
I've problem with headless build for corss-compilation project based on CCS10 IDE.
What i want to achive:
Simply saying i want to have project which i can compile for both platforms (windows and linux) depending on the platform. It's also necessary to build it from command line.
What i have now:
I've unit-test project for production code. In general my development environment is windows, but i need to run those tests during CI/CD process too.
Our jenkins is based on ubuntu. So i created new cross-compile project and configured it for both hosts - build configurations names are windows and linux.
First i tested it from the GUI perspective and it builds well on both platforms.
Then i tried to build it from command line and i occured strange issue.
Namely when i start headless build under linux, project compiles without erros, but JVM exits with exitcode -1.
It looks like it's looking for mingw32-gcc/mingw32-g++ somewhere on PATH. But minGW is configured only for windows build configuration.
Here is command that i use for headless build:
sudo /opt/ti/ccs1040/ccs/eclipse/eclipse -nosplash -data . -application org.eclipse.cdt.managedbuilder.core.headlessbuild -import "project_path" -cleanBuild "project_name/linux" -printErrorMarkers
From logs i can see that build finished with no errors:
10:12:18 Build Finished. 0 errors, 0 warnings. (took 6s.749ms)
Binary is valid and i can run it without problems.
Here is what i get after added -printErrorMarkers
Headless build encountered errors
Marker [on: /bokita_sanpin_fw_unit_tests, id: 54, type: org.eclipse.cdt.managedbuilder.core.scanner.discovery.problem, attributes: [location: Project Properties, C++ Preprocessor Include.../Providers, [CDT Cross GCC Built-in Compiler Settings] options, message: Program "mingw32-gcc" not found in PATH, provider: org.eclipse.cdt.build.crossgcc.CrossGCCBuiltinSpecsDetector, severity: 2], created: 12/16/21 10:12 AM]
Marker [on: /bokita_sanpin_fw_unit_tests, id: 55, type: org.eclipse.cdt.managedbuilder.core.scanner.discovery.problem, attributes: [location: Project Properties, C++ Preprocessor Include.../Providers, [CDT Cross GCC Built-in Compiler Settings] options, message: Program "mingw32-g++" not found in PATH, provider: org.eclipse.cdt.build.crossgcc.CrossGCCBuiltinSpecsDetector, severity: 2], created: 12/16/21 10:12 AM]
Here is the JVM error:

I looked where the printErrorMarker output points to, but i didn't see any references to minGW.
Do you have any ideas what can be wrong?
Regrads,
mf