Comments (9)
Putting in
TMPVAR := $(CPP_COM)
CPP_COM = $(filter-out -o, $(TMPVAR))
at line 175 removes the trailing -o
But now make ends with...
xtensa-lx106-elf-gcc.exe: warning: '-x assembler-with-cpp' after last input file has no effect
xtensa-lx106-elf-gcc.exe: fatal error: no input files
compilation terminated.
makeEspArduino.mk:195: recipe for target 'E:/msys64/tmp/mkESP/HelloServer_generic/cont.S.o' failed
mingw32-make: *** [E:/msys64/tmp/mkESP/HelloServer_generic/cont.S.o] Error 1
mingw32-make: *** Waiting for unfinished jobs....
abi.cpp
base64.cpp
cbuf.cpp
from makeesparduino.
It seems the same was happening to S_COM and C_COM. Putting in the following at line 175 removes all the pesky -os. Now the demo application compiles.
TMPVAR := $(CPP_COM)
CPP_COM = $(filter-out -o, $(TMPVAR))
TMPVAR2 := $(S_COM)
S_COM = $(filter-out -o, $(TMPVAR2))
TMPVAR3 := $(C_COM)
C_COM = $(filter-out -o, $(TMPVAR3))
I'm not sure how the C_COM S_COM CC_COM variables are generated and why there are trailing -os. It's a rather nasty hack but it's my best attempt at getting this makefile to work so far.
from makeesparduino.
What Linux subsystem for Windows are you using? Only cygwin is supported (tested)
from makeesparduino.
I use MSYS2 and pacman to install packages. I have been using MinGW along with mingw32-make.exe
that says
GNU Make 4.1.90
Built for Windows32
I can run make from a standard windows shell but prefer the MSYS2, so I assume that I am using only native window applications.
I notice you are also using perl, my version of that says This is perl 5, version 24, subversion 1 (v5.24.1) built for x86_64-msys-thread-multi
But no, I don't have cygwin. However adding the following code to line 175 makes your makefile work fine as far as I have tested so far.
TMPVAR := $(CPP_COM)
CPP_COM = $(filter-out -o, $(TMPVAR))
TMPVAR2 := $(S_COM)
S_COM = $(filter-out -o, $(TMPVAR2))
TMPVAR3 := $(C_COM)
C_COM = $(filter-out -o, $(TMPVAR3))
My desire to use your program was so I could write a wizard template for Qt Creator and integrate esp8266 programming from Qt Creator. I have done that https://github.com/jontio/qt_esp8266_wizard and have had no troubles with it so far.
from makeesparduino.
It is really strange as the trailing -o is to be removed by this line in the Perl code
$$v{$$key} =~ s/ -o $$//;
Try changing it to
$$v{$$key} =~ s/ -o\s+$$//;
from makeesparduino.
I tried that and it works :)
So I think that means on my setup I have two spaces after the -o if I understand regular expressions in Perl correctly.
Thanks heaps
from makeesparduino.
I would rather guess that it's the handling of line breaks that may differ in the Perl you are running.
I will add this change in the next commit. Thanks for reporting.
from makeesparduino.
Included in latest commit
from makeesparduino.
Thanks. It works fine without any modification now.
from makeesparduino.
Related Issues (20)
- LittleFS compile errors on esp8266 HOT 4
- Getting Xtensa Error HOT 1
- ESP32 python: can't open file '/esptool.py': [Errno 2] No such file or directory HOT 6
- how to build for esp32s3 etc.? HOT 4
- Variant ESP32 devices HOT 1
- Arch WSL g++ HOT 2
- Calling 'make clean' twice will trigger config parser. HOT 7
- build_opt.h: No such file or directory HOT 5
- Duplicate SKETCH when including on working directory HOT 5
- compiling a sketch with Bodmers TFT_eSPI library HOT 2
- Problems with include path HOT 7
- Compilation error on core's version 3.1.0 HOT 5
- Compilation of a simple program for esp32 fails because it tries to include library SoftwareSerial only available for architecture avr HOT 1
- .git folder appears to be included during make HOT 9
- Arduino IDE 2.x does not have preferences.txt HOT 1
- Add support for Arduino Core 3.0.0 HOT 5
- ESP32 builds stopped working after changes in the platform.txt file from the arduino-esp32 project (support relative paths in UNIX search PATH) HOT 2
- missing core dump partition
- no mk file HOT 1
- Not compatible with latest ESP32 SDK 2.0.14? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from makeesparduino.