public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] FW: "warning: type qualifiers ignored on function return type"
@ 2001-11-11 16:14 Gary Stebbins
  2001-11-11 22:19 ` J. J. Farrell
  0 siblings, 1 reply; 4+ messages in thread
From: Gary Stebbins @ 2001-11-11 16:14 UTC (permalink / raw)
  To: ecos-discuss

The error "warning: type qualifiers ignored on function return type"
began occurring when I upgraded from gcc 2.95.2 to 3.0.1 (Platform:
Cygwin on Windows 2000). This was with eCos 1.3.1. I downloaded the
latest eCos files and tried again, with the same results. The line in
MyFile.c where the error occurs is "include <string>". 

Has anyone else run into this? Is this a compiler problem, or a eCos
source problem (or my problem)?

Thanks.

Gary

arm-elf-gcc -mcpu=arm7tdmi  -c -o MyFile.o -g -W -Wall -I.
-I../../Source -I../eCOS/eCos_install/include -ffunction-sections
-fdata-sections ../../Source/MyFile.c In file included from
../eCOS/eCos_install/include/errno.h:62,
                 from
../eCOS/eCos_install/include/cyg/libc/stdio/stdio.inl:57,
                 from
../eCOS/eCos_install/include/cyg/libc/stdio/stdio.h:294,
                 from ../eCOS/eCos_install/include/stdio.h:65,
                 from ../eCOS/eCos_install/include/assert.h:69,
                 from ../../Source/MyFile.c:12:
../eCOS/eCos_install/include/cyg/error/errno.h:68: warning: type
qualifiers ignored on function return type

\x01\x01

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] FW: "warning: type qualifiers ignored on function return type"
  2001-11-11 16:14 [ECOS] FW: "warning: type qualifiers ignored on function return type" Gary Stebbins
@ 2001-11-11 22:19 ` J. J. Farrell
  2001-11-11 22:29   ` Gary Stebbins
  0 siblings, 1 reply; 4+ messages in thread
From: J. J. Farrell @ 2001-11-11 22:19 UTC (permalink / raw)
  To: Gary Stebbins; +Cc: ecos-discuss

On Fri, Nov 16, 2001 at 02:26:02PM -0800, Gary Stebbins wrote:
>
> The error "warning: type qualifiers ignored on function return type"
> began occurring when I upgraded from gcc 2.95.2 to 3.0.1 (Platform:
> Cygwin on Windows 2000).
> 
> Has anyone else run into this? Is this a compiler problem, or a eCos
> source problem (or my problem)?

And previously:

> I built/installed gcc v3.0.1, and now get "warning: no newline at end of
> file" on many files.

You don't get warnings when you use the recommended compiler.
You do get warnings when you use some other compiler.

I guess that makes it your problem!

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [ECOS] FW: "warning: type qualifiers ignored on function return type"
  2001-11-11 22:19 ` J. J. Farrell
@ 2001-11-11 22:29   ` Gary Stebbins
  2001-11-11 23:51     ` J. J. Farrell
  0 siblings, 1 reply; 4+ messages in thread
From: Gary Stebbins @ 2001-11-11 22:29 UTC (permalink / raw)
  To: 'J. J. Farrell'; +Cc: ecos-discuss

I thought I was following directions... What should I be using?

Gary

From "Building the ARM THUMB development tools for Windows",
http://sources.redhat.com/ecos/tools/win-thumb-elf.html:

GNU Compiler Collection
The GNU Compiler Collection web site contains plenty of information
about installing and using GCC. Unfortunately the most recent official
release (GCC 2.95.2) is not capable of supporting eCos for ARM THUMB. A
snapshot of the GCC development sources should be used to obtain the
most up-to-date compiler with new features and bug fixes.

-----Original Message-----
From: J. J. Farrell

On Fri, Nov 16, 2001 at 02:26:02PM -0800, Gary Stebbins wrote:
>
> The error "warning: type qualifiers ignored on function return type" 
> began occurring when I upgraded from gcc 2.95.2 to 3.0.1 (Platform: 
> Cygwin on Windows 2000).
> 
> Has anyone else run into this? Is this a compiler problem, or a eCos 
> source problem (or my problem)?

And previously:

> I built/installed gcc v3.0.1, and now get "warning: no newline at end 
> of file" on many files.

You don't get warnings when you use the recommended compiler. You do get
warnings when you use some other compiler.

I guess that makes it your problem!

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] FW: "warning: type qualifiers ignored on function return type"
  2001-11-11 22:29   ` Gary Stebbins
@ 2001-11-11 23:51     ` J. J. Farrell
  0 siblings, 0 replies; 4+ messages in thread
From: J. J. Farrell @ 2001-11-11 23:51 UTC (permalink / raw)
  To: Gary Stebbins; +Cc: 'J. J. Farrell', ecos-discuss

On Fri, Nov 16, 2001 at 03:40:50PM -0800, Gary Stebbins wrote:
> > From: J. J. Farrell
> > 
> > > The error "warning: type qualifiers ignored on function return type" 
> > > began occurring when I upgraded from gcc 2.95.2 to 3.0.1 (Platform: 
> > 
> > You don't get warnings when you use the recommended compiler. You do get
> > warnings when you use some other compiler.
> > 
> > I guess that makes it your problem!
>
> I thought I was following directions...

My humble apologies - I thought eCos recommended specific versions
of compilers, but they clearly don't. I must either be confusing it
with some other project or going out of my mind.

> What should I be using?

I'll leave that to someone who has a clue what they're talking about!

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-11-17  0:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-11 16:14 [ECOS] FW: "warning: type qualifiers ignored on function return type" Gary Stebbins
2001-11-11 22:19 ` J. J. Farrell
2001-11-11 22:29   ` Gary Stebbins
2001-11-11 23:51     ` J. J. Farrell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).