GCC toolchain path contains spaces

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Atmel put spaces in the GCC toolchain path. :roll: At least in Studio 6.1.2440 (beta).

....\Atmel Toolchain\AVR8 GCC\Native\3.4.2.876\avr8-gnu-toolchain\bin

I do most of my builds with make and I want to try the latest avr-gcc stuff. I can always copy the toolchain to somewhere else and remove the spaces.

It would be nicer if I could put this path with spaces in Windows PATH environment. Is this possible?

Why would Atmel do this?

I see in their makefile, whenever it invokes avr-gcc it uses this:

	$(QUOTE)H:\Atmel_studio\Atmel Toolchain\AVR8 GCC\Native\3.4.2.876\avr8-gnu-toolchain\bin\avr-gcc.exe$(QUOTE) -Wa,-gdwarf2 .....
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If you like conspiracy theories, kickbacks from Microsoft. Otherwise idiocy or (to make the kindliest defense) a gamma ray through someone's brain at the wrong moment.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Every version of Windows from Vista onwards has "junctions" which are like Unix symlinks. So it's easy to set up a complex path to look like its also at something simple like \foo\

EDIT: www.howtogeek.com/howto/windows-...

BTW they moved "Toolchain" to a new place so it's no longer under the Studio tree so the startup of AS6 wouldn't try to index it. The name is an unfortunate choice.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

@dak664, I like a good conspiracy theory, but I can't think of how Microsoft benefits from this. ;)

@clawson, Thanks, but I decided to be dorky instead of geeky. I just copied the toolchain into my own folder.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

steve17 wrote:
It would be nicer if I could put this path with spaces in Windows PATH environment. Is this possible?
Why not?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

AKAIR path with spaces will break LTO callback plugin.

That is: Even without problems from Makefile, you cannot use -flto.

avrfreaks does not support Opera. Profile inactive.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

FYI, install path with spaces works now, cf. GCC PR50293.

avrfreaks does not support Opera. Profile inactive.