Bug 28336 - Cofiguration Options creates erroneous path in AVR GCC window
Summary: Cofiguration Options creates erroneous path in AVR GCC window
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: other (show other bugs)
Version: 3.4.6
: P3 minor
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-11 09:22 UTC by Roger Furer
Modified: 2006-07-11 21:29 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roger Furer 2006-07-11 09:22:30 UTC
July 10, 2006
Bug Report

Aloha from Honolulu,
The version info is at the end of this.  I'm not sure which program has the bug; AVR GCC or AVR Studio 4.  Let me explain:

I'm using AVR Studio 4 and making the project in AVR GCC.  My OS is Windows XP so all my directory slashes are backwards "\".  I use the Project Configuration Options to set up my Include & Library file paths, so I didn't need an external makefile.  The Configuration Options uses a graphic tree to show the path chosen.  There seems no way to edit it manually.  The program compiled and worked correctly.  My complaint is that I discovered an error in the file paths when I tried to look at some of the files under External Dependencies in the AVR GCC Project Window.  None would open.  Clicking on File Properties created this Error message in the Messages Window:

gcc plug-in: C:AVR_Libcavrinclude\util\delay.h contains an invalid path.
gcc plug-in: C:AVR_Libcavrinclude\avr\io.h contains an invalid path.

The correct paths are:
C:AVR_Libc\avr\include\util\delay.h
C:AVR_Libc\avr\include\avr\io.h

As it happens both of these files are in sub-directories of AVR_Libc\avr\include and the include statements in the program code use a forward slash:
#include <avr/io.h>
#include <util/delay.h>

So I can see that where the backward slashes were used, they are ignored, but the forward slashes are acknowledged.

I am afraid this is a bug in the program, but whether in AVR GCC or AVR Studio I don't know.  I think if I could enter the path using forward slashes, into the Configuration Options, there would be no error.  But I haven't found a way to do that.

I hope this contributes to the further improvement/development of these programs as I enjoy working with them.

Thank You,
Roger Furer
rafurer@hawaii.rr.com

Here is version info from AVR STudio 4:
AVR Studio		4.12.462  Service Pack 1
GUI Version		4, 12, 0, 462
AVR Simulator		1, 0, 1, 6
ATMEGA169		257

Operating System
Major			5
Minor			1
PlatformID		2
Build			2600
Service Pack 2

Plugins:

AvrLcdPlugin		1, 0, 0, 13
AvrPluginAvrAsmObject	1, 0, 0, 43
AvrPluginavrgccplugin	1, 0, 0, 5

I don't know where to find the info for AVR GCC.  I'm using WinAVR (20060421)
There is an avr-gcc-3.4.6 in the \bin directory (also an avr-gcc.exe) I don't know what AVR Studio is using.

AVRLibc is 1.4.4

My OS is Windows XP Pro, version 2002, Service Pack 2.
Comment 1 Andrew Pinski 2006-07-11 10:51:06 UTC
What happens if you use "\\" instead of "\" ?  From the sound of it, \ is being recongized as the escape character?

Also this does not sound related to GCC if you are using an IDE.  
What happens if you invoke GCC directly?
Comment 2 Eric Weddington 2006-07-11 14:15:48 UTC
"My complaint is that I discovered an error in the file paths
when I tried to look at some of the files under External Dependencies in the
AVR GCC Project Window.  None would open.  Clicking on File Properties created
this Error message in the Messages Window:

gcc plug-in: C:AVR_Libcavrinclude\util\delay.h contains an invalid path.
gcc plug-in: C:AVR_Libcavrinclude\avr\io.h contains an invalid path."

This is a problem in AVR Studio and not in the WinAVR distribution of AVR GCC.

I would strongly suggest that you try AVR Studio 4.12 Service Pack 2 (at a minimum): <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=2725>
This is known to work with WinAVR 20060421. If you continue to have problems in AVR Studio, then please conatact the AVR group in Atmel (see email address within AVR Studio Help).

GCC Bugmasters: Please close this bug as invalid
Comment 3 Roger Furer 2006-07-11 20:04:57 UTC
Subject: Re:  Cofiguration Options creates erroneous path
 in AVR GCC window

Aloha,
    Thanks for the tip.  I followed your advice and it did indeed 
correct the problem.  My files in External Dependencies have their 
proper path names.
Thank You,
Roger Furer


eweddington at cso dot atmel dot com wrote:
> ------- Comment #2 from eweddington at cso dot atmel dot com  2006-07-11 14:15 -------
> "My complaint is that I discovered an error in the file paths
> when I tried to look at some of the files under External Dependencies in the
> AVR GCC Project Window.  None would open.  Clicking on File Properties created
> this Error message in the Messages Window:
> 
> gcc plug-in: C:AVR_Libcavrinclude\util\delay.h contains an invalid path.
> gcc plug-in: C:AVR_Libcavrinclude\avr\io.h contains an invalid path."
> 
> This is a problem in AVR Studio and not in the WinAVR distribution of AVR GCC.
> 
> I would strongly suggest that you try AVR Studio 4.12 Service Pack 2 (at a
> minimum): <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=2725>
> This is known to work with WinAVR 20060421. If you continue to have problems in
> AVR Studio, then please conatact the AVR group in Atmel (see email address
> within AVR Studio Help).
> 
> GCC Bugmasters: Please close this bug as invalid
> 
> 



Comment 4 Andrew Pinski 2006-07-11 20:37:14 UTC
Invalid as requested.
Comment 5 Roger Furer 2006-07-11 21:29:15 UTC
Aloha,
Just to let you know, updating the service pack eliminated the problem.
Thank You,
Roger