Closed
Description
Problem
mbed compile does not work in cygwin. I believe this is due to it grabbing cygwin formatted paths and then calling the compiler in windows context. Thus it is passing linux formatted addresses to a tool that expects windows formatted addresses.
Solution
a) make a more universal call that doesnt pass in linux formatted paths
b) detect cygwin is running and call the cygwin path conversion tool on all addresses
c) grab the paths in a windows context instead of within the cygwin context.
Example
Running mbed build
on cmd
works just fine, but if i run it in cygwin it returns the following
...
...
Compile: SVC_Table.S
Compile: rt_Event.c
Compile: rt_List.c
Compile: rt_Mailbox.c
Compile: rt_MemBox.c
Compile: rt_CMSIS.c
Compile: rt_Memory.c
Compile: rt_Mutex.c
Compile: rt_OsEventObserver.c
Compile: rt_Semaphore.c
Compile: rt_Robin.c
Compile: rt_System.c
Compile: test_env.cpp
[ERROR] arm-none-eabi-g++.exe: error: /home/ausbla01/mbed/test/mbed-os-example-blinky/mbed-os/libraries/tests/mbed/env/test_env.cpp: No such file or directory
arm-none-eabi-g++.exe: fatal error: no input files
compilation terminated.
[mbed] ERROR: "python" returned error code 1.
[mbed] ERROR: Command "python -u /home/ausbla01/mbed/test/mbed-os-example-blinky/mbed-os/tools/make.py -t GCC_ARM -m K64F -c --source . --build ./.build/K64F/GCC_ARM" in "/home/ausbla01/mbed/test/mbed-os-example-blinky"
---