Skip to content
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

[BUG] REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER - Compilation Error #16105

Closed
Garyr14 opened this issue Dec 4, 2019 · 23 comments
Closed

Comments

@Garyr14
Copy link

Garyr14 commented Dec 4, 2019

-->

Bug Description

When I compile BugFix 2.0 using anything but REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
Enabled, no problem. However, when I try to compile with that, I get:

avr-gcc: error: CreateProcess: No such file or directory

My Configurations

Windows 10, Arduino 1.8.10

Configuration.zip

Steps to reproduce:

Uncomment line:
#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
Comment Line:
#define ZONESTAR_LCD

Expected behavior: [What you expect to happen]
Successful compile

Actual behavior: [What actually happens]
Unsuccessful compile

Additional Information

  • Provide pictures or links to videos that clearly demonstrate the issue.
  • See How Can I Contribute for additional guidelines.
@shitcreek
Copy link
Contributor

Please use the search function to check if the issue hasn't already been brought up before submitting an issue.
I've found these:
#7931
#7990
#16092

Recommended workaround (thanks to vMeph)

  1. Create a new temp folder with a short path, e.g "c:\tmp"

  2. Open Arduino IDE and go to Preferences and see where the preferences.txt file is saved

30740380-a3fdf732-9f88-11e7-83ea-2fb1791bde2d

in this case it is located in C:\Users\vMeph\AppData\Local\Arduino15

  1. Go to that location and open preferences.txt file with Notepad
    On the 3rd line, add this line with the temp folder path created in step 1:

build.path=C:\tmp

@Garyr14
Copy link
Author

Garyr14 commented Dec 4, 2019

Thank you. I should have mentioned that I did in fact search this error and found the cases you referenced. Unfortunately, none of the suggested solutions have worked so far.

@shitcreek
Copy link
Contributor

hmm. Have you tried doing a clean reinstallation of Arduino? Best to use VSCode with PlatformIO - it's way better than the Arduino IDE.

@Garyr14
Copy link
Author

Garyr14 commented Dec 4, 2019

I did try a clean reinstallation of Arduino. I will try VSCode with PlatformIO. Thank you again.

@boelle
Copy link
Contributor

boelle commented Dec 4, 2019

or at least move to arduino ide v. 1.9 beta

@ellensp
Copy link
Contributor

ellensp commented Dec 4, 2019

Tried supplied configuration files. Confirmed that REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER is enabled. It compiled fine both in platformio under vscode and in arduino ide 1.8.10 (on linux)

@boelle
Copy link
Contributor

boelle commented Dec 4, 2019

lets hope @Garyr14 returns with a success

@Garyr14
Copy link
Author

Garyr14 commented Dec 4, 2019

It did compile in platformio under Vscode, but not in arduino ide 1.8.10 (on windows).

@boelle
Copy link
Contributor

boelle commented Dec 4, 2019

and on 1.9 beta ?

@Garyr14
Copy link
Author

Garyr14 commented Dec 4, 2019

Did not try yet, but can shortly.
For what it's worth, platformio reports problem - unused variable - const bool isHeat = BED_ALT(); in status_screen_DOGM.cpp

@ellensp
Copy link
Contributor

ellensp commented Dec 4, 2019

Are you using the windows app version of arduino ide? As this has been known to cause issues compared with a zip or the exe release.

@Garyr14
Copy link
Author

Garyr14 commented Dec 4, 2019

No - i'm using a zip download version.

@ellensp
Copy link
Contributor

ellensp commented Dec 4, 2019

how about posting the error log?

@Garyr14
Copy link
Author

Garyr14 commented Dec 4, 2019

Sure. Thanks for the help.

ErrorLog.txt

@shitcreek
Copy link
Contributor

unused variable warnings can be ignored.

@ellensp
Copy link
Contributor

ellensp commented Dec 4, 2019

I can confirm this issue on windows. but does not happen on same version of arduino on linux.

@ellensp
Copy link
Contributor

ellensp commented Dec 4, 2019

This seems to be the windows command line length limits for creating a process. It is limited to 32k and the final link command is 36036 characters. Also the old trick of defining the build directory as something short no longer works as it uses relative paths

@boelle
Copy link
Contributor

boelle commented Dec 5, 2019

will close this one as its not errors but warning that can be ignored

@boelle boelle closed this as completed Dec 5, 2019
@ellensp
Copy link
Contributor

ellensp commented Dec 5, 2019

No. the error is "avr-gcc: error: CreateProcess: No such file or directory" and compilation fails. But i'm not sure there is anything we can do about it. Its a windows limitation.

@boelle
Copy link
Contributor

boelle commented Dec 5, 2019

if its a windows limit we cant do anything

well we could moan at the arduino ide people since the ball is at their side, but they cant prob not do anything either

@emaayan
Copy link

emaayan commented Dec 17, 2019

doesn't this basically mean the marlin 2.0 no longer supports arudino IDE ?

@ellensp
Copy link
Contributor

ellensp commented Dec 19, 2019

This is causing issues for windows users. If you enable a glcd + TMCsteppers the link command just get to long for windows. One thing I did notice is that all HAL's get added to the link command when you are only using the one HAL. If you delete all the unused HAL directories from Marlin\src\HAL This reduces the command enough to allow Arduino on windows to compile. See eg https://reprap.org/forum/read.php?415,864336,864356#msg-864356

@github-actions
Copy link

github-actions bot commented Jul 3, 2020

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants