Skip to content

Windows makefile builds no longer work #7594

@cmonr

Description

@cmonr

Description

Exporting projects to a make_* ide, and running make no longer appears to work since #7183 came in (confirmed via git bisect).

This has been validated with make_armc5 and make_gcc_arm "IDEs".

PRs #7583 and #7559 do not fix the issue.

Output

C:\Users\redacted\test\mbed-os-example-blinky>(cd mbed-os && git checkout master && cd ..)
Already on 'master'
Your branch is up-to-date with 'origin/master'.

C:\Users\redacted\test\mbed-os-example-blinky>pipenv run mbed export -i make_gcc_arm -m K64F --clean && make
Scan: mbed-os-example-blinky
C:/Users/root/test/mbed-os-example-blinky/makefile:865: warning: overriding commands for target `.s.o'
C:/Users/root/test/mbed-os-example-blinky/makefile:857: warning: ignoring old commands for target `.s.o'
Compile: main.cpp
../main.cpp:1:18: fatal error: mbed.h: No such file or directory
 #include "mbed.h"
                  ^
compilation terminated.
make[1]: *** [main.o] Error 1
make: *** [all] Error 2

C:\Users\redacted\test\mbed-os-example-blinky>pipenv run mbed export -i make_armc5 -m K64F --clean && make
Scan: mbed-os-example-blinky
C:/Users/root/test/mbed-os-example-blinky/makefile:861: warning: overriding commands for target `.s.o'
C:/Users/root/test/mbed-os-example-blinky/makefile:852: warning: ignoring old commands for target `.s.o'
Compile: main.cpp
"../main.cpp", line 1: Error:  #5: cannot open source input file "mbed.h": No such file or directory
../main.cpp: 0 warnings, 1 error
make[1]: *** [main.o] Error 1
make: *** [all] Error 2

C:\Users\redacted\test\mbed-os-example-blinky>(cd mbed-os && git checkout pr7583 && cd ..)
Switched to branch 'pr7583'

C:\Users\redacted\test\mbed-os-example-blinky>pipenv run mbed export -i make_gcc_arm -m K64F --clean && make
Scan: mbed-os-example-blinky
C:/Users/root/test/mbed-os-example-blinky/makefile:865: warning: overriding commands for target `.s.o'
C:/Users/root/test/mbed-os-example-blinky/makefile:857: warning: ignoring old commands for target `.s.o'
Compile: main.cpp
../main.cpp:1:18: fatal error: mbed.h: No such file or directory
 #include "mbed.h"
                  ^
compilation terminated.
make[1]: *** [main.o] Error 1
make: *** [all] Error 2

C:\Users\redacted\test\mbed-os-example-blinky>pipenv run mbed export -i make_armc5 -m K64F --clean && make
Scan: mbed-os-example-blinky
C:/Users/root/test/mbed-os-example-blinky/makefile:861: warning: overriding commands for target `.s.o'
C:/Users/root/test/mbed-os-example-blinky/makefile:852: warning: ignoring old commands for target `.s.o'
Compile: main.cpp
"../main.cpp", line 1: Error:  #5: cannot open source input file "mbed.h": No such file or directory
../main.cpp: 0 warnings, 1 error
make[1]: *** [main.o] Error 1
make: *** [all] Error 2

C:\Users\redacted\test\mbed-os-example-blinky>(cd mbed-os && git checkout pr7559 && cd ..)
Switched to branch 'pr7559'

C:\Users\redacted\test\mbed-os-example-blinky>pipenv run mbed export -i make_gcc_arm -m K64F --clean && make
Scan: mbed-os-example-blinky
C:/Users/root/test/mbed-os-example-blinky/makefile:1305: warning: overriding commands for target `.s.o'
C:/Users/root/test/mbed-os-example-blinky/makefile:1297: warning: ignoring old commands for target `.s.o'
Compile: main.cpp
arm-none-eabi-g++.exe: fatal error: no input files
compilation terminated.
make[1]: *** [main.o] Error 1
make: *** [all] Error 2

C:\Users\redacted\test\mbed-os-example-blinky>pipenv run mbed export -i make_armc5 -m K64F --clean && make
Scan: mbed-os-example-blinky
C:/Users/root/test/mbed-os-example-blinky/makefile:1097: warning: overriding commands for target `.s.o'
C:/Users/root/test/mbed-os-example-blinky/makefile:1088: warning: ignoring old commands for target `.s.o'
Compile: main.cpp
Error: C4079E: armcc command with no effect

make[1]: *** [main.o] Error 1
make: *** [all] Error 2

C:\Users\redacted\test\mbed-os-example-blinky>

Issue request type

[ ] Question
[ ] Enhancement
[x] Bug

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions