Closed Silverpumax closed 4 years ago
The error is avr-gcc: error: CreateProcess: No such file or directory Your a windows user and your hitting the windows command line limit, You need to remove unused src/HAL directories and if not using it remove Marlin/src/lcd/extensible_ui
Thanks for your answer. I found some issues for that but no conclusion. Evidently the toolchain must use sh.exe instead cmd.exe !??! But I haven't a clue.
Therefore my solution has been prove satisfactory. By installing Ubuntu Linux with Arduino in a Windows Hyper-V enviroment for the only benefit to build marlin.
removing src/HAL does not compile. I agree that removing Marlin/src/lcd/extensible_ui does work.
Has anyone had any results on this compiling u8glib & tmc2130 together with boxed Marlin? Out of the box compiling is preferable to searching the internet for days to find that removing Marlin/src/lcd/extensible_ui is the only viable option.
Have you tried switching to Visual Studio code with Platform I/O? That doesn't have the same issue with command line length that Arduino has. I can build the posted configurations with no issue in VS Code.
removing src/HAL
You can't just remove all of src/HAL, you can only remove sub-folders that you do not need. Since you presumably build for AVR, you could remove all the HAL_*
sub-folders except HAL_AVR.
I have not used Visual Studio yet but will now. Thank you. So far it has been a Marlin issue in my head, it being a Arduino IDE problem is helpful.
Yes i can remove HAL_*
sub-folders except HAL_AVR and except HAL_DUE
.
But the problem maintains.
I'd like try switching to Platform I/O with eclipse....
Until now i build marlin with Arduino in a Ubuntu Linux which is installed in a Windows 10 Hyper-V environment.
PlatformIO in Visual Studio Code with the Auto Build Marlin extension will be the recommended build method going forward. Configuration tools will be integrated into the ABM extension bit by bit.
As pointed out, Arduino can't filter project files in the way that PlatformIO can. So to get Arduino IDE to complete the build, the solution is to delete the HAL sub-folders that you are not using. This is not something we can address without a big re-architecting of Marlin.
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.
Bug Description
If i using the libs TMCStepper and U8glib together the bulding process fails at linktime. Building with TMCStepper alone is Ok Building with U8glib alone is Ok
I tested this behaviour also with Arduino 1.9beta and eclipse arduino cdt For testing i set the Arduino path , the TMP path and the Marlin path short as possible to the route of the filesystem. I tested this behaviour also with the last branch bugfix.2.0x.
My Configurations
The only change in
Configuration.h
andConfiguration_adv.h
configuration.zip
Steps to Reproduce
Build with: Last branch: 2.0x or last branch bugfix.2.0x. Arduino: 1.8.11 (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
Actual behavior: Error at:
I notice also errors at compile time with no consequence to the build if i use the libs alone
Additional Information
ArduinoErrorOutput.zip