-
Notifications
You must be signed in to change notification settings - Fork 132
No rule to make target Arduino.h #1198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I have never seen something similar. My first thinking is:
To investigate you should get a copy of the working makefile and a copy of the non working makefile and compare. |
Still investigating. 1/ No not anything What I did : Instead of private hardware path, use boardmanager to install -> rule out issues on that What I see : Then : Other : |
I'm not fully understanding what you exactly did in the last line.
Did you do this investigation step? |
Yes I did. Paths and some files differ as expected between two platforms.
In than location I see only the a.runtime.tools.... defined. I can see the use of sloeber_path_extension in the path but nowhere the |
sloeber_path_extension is by default not used. As a user you can use it to extend the path. So yes it is not set. you need to add it. |
Made progress, found the way to get the verbose debug output of make. Partial ArduinoC11 output
Partial ArduinoC17 output
The difference is in : An additional / in C:\ I cannot find a reference to Arduino.h in the makefile. edit : Output can be created by changing Build command to |
This looks like we finally found a lead to get to the issue. |
temp/ArduinoC11 -> My fork of esp8266 arduino, couple of commits behind origin git head There is also an alpha 0.0.2 esp8266 version which includes the new toolchain and boardmanager config. That has the same issue. In the test environment I took a fresh sloeber install (git head) and new workspace. |
I think I understand what is going on If my understanding is correct, the community that maintains the gcc compiler should be able to tell you which make is working for their gcc compiler. At least a issue should exist for this incompatibility with mingw32 To verify my assumption: Can you check a *.cpp.d file for C:\ occurrences ? |
Nice catch. Think you are right.
This is the start of T1.cpp.d ->ArduinoC11
I will contact esp8266 team and report back here. |
In generic terms I asked ;
This is the reply from esp8266/arduino
The make that soeber uses is 3.82. I downloaded make 4.3 from https://github.com/mbuilov/gnumake-windows (just a google search result, no other reason for choosing this one). I can test for you. Just let me know what/how you like to test/proceed. |
Well this is the first time this gets reported for Sloeber. There are 700+ boards. Probably 30+ gcc flavours ... There is no make for windows. There are many options and this is why Sloeber provides its own because they all behave differently. |
I ran a test with a newer make. The one from mingw 64. The make I tested can be found here: http://www.baeyens.it/eclipse/download/makeV2.zip |
Maybe because of the bleeding edge gcc 10.1 toolchain which will be used in their next 3.0 release. For now I am using the gnumake 4.3 a mentioned before without any problems, but I am no way representative for the world out there. I can help you testing this/others if you want . Edit : crossing comments. I'll try the one you mentioned. |
I am using your makeV2 version now in my environment. Don't have the original issue anymore, all other still work -> looks OK. Checked (and will do more) changelogs of the toolchain but could not find a note related to the .d file fomat.
Not sure how you tested but initial build was working OK, Issue was when doing an incremental build. |
Here is the test I use https://github.com/Sloeber/arduino-eclipse-plugin/blob/master/io.sloeber.tests/src/io/sloeber/core/CreateAndCompileDefaultInoOnAllBoardsTest.java |
I have this make now running for multiple platforms, no issues seen. I'll leave it to you to close the issue or keep it open for reference. Thanks for helping. |
I'm keeping it open to move to the newer version of make |
Thank you both for figuring this out. This was going to be my next bug to try and describe but you beat me to it. I was noticing it was orphaning files in the release folder when removing or changing linked resources, or when changing a projects board type. I do alot with the samd21 and samd51, and sometimes I make a copy of a project just to change its board type and would run into this issue. It was becoming a habit that whenever I changed anything in the project settings, I was preemptively deleting the release folder to avoid this. Just to clarify, is the current workaround to replace the make.exe found at sloeber\arduinoPlugin\tools\make\make.exe to one of the executable found here? https://github.com/mbuilov/gnumake-windows |
I don't now the repository you refer to. I also don't think it will fix the issue. |
I am using the Adafruit Samd v1.5.11 repository for M0 feather and M4 feather boards. I am trying to recreate the problem consistently and I cannot seem to do it. It creeps up usually when sharing version controlled projects between people, will see if I can make something that does it reliably. |
Hi, Using the make from Breakes the fix for #1166 using makeV2 :
using make orig
|
I don't think this has to do with #1166 because the command seems correct to me. |
I referred to #1166 because the make.exe I use is the one which solves that issue. Is there a different sh.exe used by each of the make.exe's ? |
I am all confused right now. #1166 does not mention make |
Sorry for the confusion, I mixed up PR numbers. Maybe the current temperatures affecting my brain. Indeed this Issue #1198 is about the make version. I am using the make from When using this make, I have similar symptoms as in #1166 -> the make fails with message The syntax of the command is incorrect.; When using the make from the distribution (git master) the make runs OK. |
You are right on the / \ root cause. The issue is in the {runtime.platform.path} which contains forward slashes. |
Can you check with the nightly if #1231 fixed our issue? |
I can, but do not know where to find the windows nightly. Tried to build from git master but that failed so cannot take that one for this test. |
The build of gitmaster should be fine. You do need to switch to the newest maven and java10 |
I don't know why this is not logged here but I did switch to the make+sh version. |
Running on Windows 8.1, Sloeber git master, Private Hardware Path config.
First compile works OK, after that all compiles fail with :
Deleting the Release folder makes it work again but makes it compile full platform.
Checked this private path with others and cannot find a difference.
To rule out boards.txt and platform.txt issues, I tried using the ones from a working environment -> no difference.
I did remove the sloeber.boards/platform.txt to make it use the new ones.
Any idea where to look for a possible wrong configuration ?
The text was updated successfully, but these errors were encountered: