filename or extension is too long error

hello everyone,

I am in the process of updating firmware for my 3d printer and I have come across a couple of bugs that have stopped me from compiling and loading it on to my mega 2560 board. I have fixed most of the bugs but now the only error message I am getting is:

Arduino: 1.6.9 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

fork/exec C:\Users\PRyan\Downloads\arduino\hardware\tools\avr/bin/avr-gcc.exe: The filename or extension is too long.
Error compiling for board Arduino/Genuino Mega or Mega 2560.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

If anyone could give insight as to what this means and/or what I might need to do to repair it would be appreciated.

Thanks

What is the filename and extension of your script file ?

I'm on a Mac 99% of the time (and Linux for the rest) so can't tell for sure but that path

C:\Users\PRyan\Downloads\arduino\hardware\tools\avr[color=red]/bin/avr-gcc.exe[/color] with forward / while everything else is Windows style feels weird

Is that normal?

UKHeliBob, I'm not entirely sure but is it this "C:\Users\PRyan\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4/bin/avr-gcc.exe" or are you talkin about the name of the firmware? the filename of the firmware is ROBO3DR1PLUSV2

J-M-L, that is an interesting point not sure how I would change that.

J-M-L I actually went to that file and looked at the properties and the slashes are all going the same way not sure why the error shows them going the other way

Well that's kinda my point - is this trying to do something weird or just the way it's printed out?...

Need someone on a PC to check if compilation always do this mixed / \ thingy

I actually just set my preferences to be more verbose during compiling and all of the files did the same thing so I don't think that that is the problem. Thanks for the idea though

Can you paste the full output of the console?

Long too path error!
"Long path tool" is very helpful for this problem. You can solve this problem like copy, delete, long path files by using this tool.
I used to have similar problems too, but after using "long path tool" everything was solved.

The direction of the /'s is not a problem, that happens on all windows systems and works fine. Modern windows is okay with either slash.

The issue can be resolved in two ways. You can either rename the file or move it to the location with the shorter path, out of which renaming file is simpler. Use "Long Path Tool" program to rename the file. It works great.

Why do we have to buy more software to get this board working ???

long path tool costs money/...

Notice both of the people promoting the "long path tool" only have a single post. Smells like spam to me.