Code Monkey home page Code Monkey logo

Comments (9)

jontio avatar jontio commented on July 17, 2024

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.

jontio avatar jontio commented on July 17, 2024

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.

plerup avatar plerup commented on July 17, 2024

What Linux subsystem for Windows are you using? Only cygwin is supported (tested)

from makeesparduino.

jontio avatar jontio commented on July 17, 2024

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.

plerup avatar plerup commented on July 17, 2024

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.

jontio avatar jontio commented on July 17, 2024

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.

plerup avatar plerup commented on July 17, 2024

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.

plerup avatar plerup commented on July 17, 2024

Included in latest commit

from makeesparduino.

jontio avatar jontio commented on July 17, 2024

Thanks. It works fine without any modification now.

from makeesparduino.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.