public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] eCos and GCC 4.1.0
@ 2006-03-24 18:49 Marco Aurélio da Cruz
  2006-03-26 22:54 ` Andrew Lunn
  0 siblings, 1 reply; 11+ messages in thread
From: Marco Aurélio da Cruz @ 2006-03-24 18:49 UTC (permalink / raw)
  To: ecos-discuss

[-- Attachment #1: Type: text/plain, Size: 883 bytes --]

Hi.
I've downloaded the ecos-trunk-20060319 snapshot from eCoscentric and 
tried to compile it on arm-elf-gcc 4.1.0.

I got the errors below:

.../include/cyg/kernel/sched.hxx:181: error: extra qualification 
'Cyg_Scheduler::' on member 'thread_entry'
.../include/cyg/kernel/thread.hxx:315: error: extra qualification 
'Cyg_Thread::' on member 'reinitialize'

I edited the files in /packages/kernel/current/include and removed the 
qualifiers. So it compiled OK.

sched.hxx

from:
/// perform thread startup housekeeping/
void Cyg_Scheduler::thread_entry( Cyg_Thread *thread );

to:
/// perform thread startup housekeeping/
void thread_entry( Cyg_Thread *thread );
 

thread.hxx

from:
/// Re-initialize the thread back to it's initial state./
void Cyg_Thread::reinitialize();

to:
/// Re-initialize the thread back to it's initial state./
void reinitialize();


Regards

Marco Cruz

[-- Attachment #2: thread.diff --]
[-- Type: text/plain, Size: 79 bytes --]

315c315
<     void Cyg_Thread::reinitialize();
---
>     void reinitialize();


[-- Attachment #3: sched.diff --]
[-- Type: text/plain, Size: 128 bytes --]

181c181
<     void Cyg_Scheduler::thread_entry( Cyg_Thread *thread );
---
>     void 					thread_entry( Cyg_Thread *thread );



[-- Attachment #4: Type: text/plain, Size: 148 bytes --]

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

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

* Re: [ECOS] eCos and GCC 4.1.0
  2006-03-24 18:49 [ECOS] eCos and GCC 4.1.0 Marco Aurélio da Cruz
@ 2006-03-26 22:54 ` Andrew Lunn
  2006-03-27 16:40   ` Marco Aurélio da Cruz
  2007-12-14  9:47   ` [ECOS] eCos and GCC 4.1.1 venumadhav
  0 siblings, 2 replies; 11+ messages in thread
From: Andrew Lunn @ 2006-03-26 22:54 UTC (permalink / raw)
  To: Marco Aur?lio da Cruz; +Cc: ecos-discuss

On Fri, Mar 24, 2006 at 03:33:37PM -0300, Marco Aur?lio da Cruz wrote:
> Hi.
> I've downloaded the ecos-trunk-20060319 snapshot from eCoscentric and 
> tried to compile it on arm-elf-gcc 4.1.0.
> 
> I got the errors below:
> 
> .../include/cyg/kernel/sched.hxx:181: error: extra qualification 
> 'Cyg_Scheduler::' on member 'thread_entry'
> .../include/cyg/kernel/thread.hxx:315: error: extra qualification 
> 'Cyg_Thread::' on member 'reinitialize'
> 
> I edited the files in /packages/kernel/current/include and removed the 
> qualifiers. So it compiled OK.
> 
> sched.hxx
> 
> from:
> /// perform thread startup housekeeping/
> void Cyg_Scheduler::thread_entry( Cyg_Thread *thread );
> 
> to:
> /// perform thread startup housekeeping/
> void thread_entry( Cyg_Thread *thread );
> 
> 
> thread.hxx
> 
> from:
> /// Re-initialize the thread back to it's initial state./
> void Cyg_Thread::reinitialize();
> 
> to:
> /// Re-initialize the thread back to it's initial state./
> void reinitialize();
> 
> 
> Regards
> 
> Marco Cruz

Please could you produce a proper patch, with ChangeLog entries.

        Thanks
                Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

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

* Re: [ECOS] eCos and GCC 4.1.0
  2006-03-26 22:54 ` Andrew Lunn
@ 2006-03-27 16:40   ` Marco Aurélio da Cruz
  2006-03-27 17:38     ` oliver munz @ s p e a g
  2007-12-14  9:47   ` [ECOS] eCos and GCC 4.1.1 venumadhav
  1 sibling, 1 reply; 11+ messages in thread
From: Marco Aurélio da Cruz @ 2006-03-27 16:40 UTC (permalink / raw)
  To: ecos-discuss

I've read some messages about doing this but I'm not aware how to...

I edited my local /packages/kernel/current/include files, changed the  
/packages/kernel/current/ChangLog but I'm not able to generate the diff 
file. I'm so newbie with CVS and patches...

Marco

Andrew Lunn wrote:
> On Fri, Mar 24, 2006 at 03:33:37PM -0300, Marco Aur?lio da Cruz wrote:
>   
>> Hi.
>> I've downloaded the ecos-trunk-20060319 snapshot from eCoscentric and 
>> tried to compile it on arm-elf-gcc 4.1.0.
>>
>> I got the errors below:
>>
>> .../include/cyg/kernel/sched.hxx:181: error: extra qualification 
>> 'Cyg_Scheduler::' on member 'thread_entry'
>> .../include/cyg/kernel/thread.hxx:315: error: extra qualification 
>> 'Cyg_Thread::' on member 'reinitialize'
>>
>> I edited the files in /packages/kernel/current/include and removed the 
>> qualifiers. So it compiled OK.
>>
>> sched.hxx
>>
>> from:
>> /// perform thread startup housekeeping/
>> void Cyg_Scheduler::thread_entry( Cyg_Thread *thread );
>>
>> to:
>> /// perform thread startup housekeeping/
>> void thread_entry( Cyg_Thread *thread );
>>
>>
>> thread.hxx
>>
>> from:
>> /// Re-initialize the thread back to it's initial state./
>> void Cyg_Thread::reinitialize();
>>
>> to:
>> /// Re-initialize the thread back to it's initial state./
>> void reinitialize();
>>
>>
>> Regards
>>
>> Marco Cruz
>>     
>
> Please could you produce a proper patch, with ChangeLog entries.
>
>         Thanks
>                 Andrew
>
>
>
>   

-- 
Marco Aurélio da Cruz

Depto. de Automação
Divisão de Tecnologia
Daruma Urmet S.A.
Tel.: +55 12 3609-5105
Fax:  +55 12 3609-5156
Web:  http://www.daruma.com.br


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

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

* Re: [ECOS] eCos and GCC 4.1.0
  2006-03-27 16:40   ` Marco Aurélio da Cruz
@ 2006-03-27 17:38     ` oliver munz @ s p e a g
  2006-03-28  0:30       ` Marco Aurélio da Cruz
  0 siblings, 1 reply; 11+ messages in thread
From: oliver munz @ s p e a g @ 2006-03-27 17:38 UTC (permalink / raw)
  To: Marco Aurélio da Cruz, ecos-discuss

Go to the "ecos" directory (where the packages is located).

and do:

cvs -d :pserver:anoncvs@ecos.sourceware.org:/cvs/ecos diff -u packages >
packages.01.diff

You then get all modifications in the packages.01.diff

----- Original Message ----- 
From: "Marco Aurélio da Cruz" <marco@daruma.com.br>
To: <ecos-discuss@sourceware.org>
Sent: Monday, March 27, 2006 5:21 PM
Subject: Re: [ECOS] eCos and GCC 4.1.0


> I've read some messages about doing this but I'm not aware how to...
>
> I edited my local /packages/kernel/current/include files, changed the
> /packages/kernel/current/ChangLog but I'm not able to generate the diff
> file. I'm so newbie with CVS and patches...
>
> Marco
>
> Andrew Lunn wrote:
>> On Fri, Mar 24, 2006 at 03:33:37PM -0300, Marco Aur?lio da Cruz wrote:
>>
>>> Hi.
>>> I've downloaded the ecos-trunk-20060319 snapshot from eCoscentric and
>>> tried to compile it on arm-elf-gcc 4.1.0.
>>>
>>> I got the errors below:
>>>
>>> .../include/cyg/kernel/sched.hxx:181: error: extra qualification
>>> 'Cyg_Scheduler::' on member 'thread_entry'
>>> .../include/cyg/kernel/thread.hxx:315: error: extra qualification
>>> 'Cyg_Thread::' on member 'reinitialize'
>>>
>>> I edited the files in /packages/kernel/current/include and removed the
>>> qualifiers. So it compiled OK.
>>>
>>> sched.hxx
>>>
>>> from:
>>> /// perform thread startup housekeeping/
>>> void Cyg_Scheduler::thread_entry( Cyg_Thread *thread );
>>>
>>> to:
>>> /// perform thread startup housekeeping/
>>> void thread_entry( Cyg_Thread *thread );
>>>
>>>
>>> thread.hxx
>>>
>>> from:
>>> /// Re-initialize the thread back to it's initial state./
>>> void Cyg_Thread::reinitialize();
>>>
>>> to:
>>> /// Re-initialize the thread back to it's initial state./
>>> void reinitialize();
>>>
>>>
>>> Regards
>>>
>>> Marco Cruz
>>>
>>
>> Please could you produce a proper patch, with ChangeLog entries.
>>
>>         Thanks
>>                 Andrew
>>
>>
>>
>>
>
> -- 
> Marco Aurélio da Cruz
>
> Depto. de Automação
> Divisão de Tecnologia
> Daruma Urmet S.A.
> Tel.: +55 12 3609-5105
> Fax:  +55 12 3609-5156
> Web:  http://www.daruma.com.br
>
>
> -- 
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

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

* Re: [ECOS] eCos and GCC 4.1.0
  2006-03-27 17:38     ` oliver munz @ s p e a g
@ 2006-03-28  0:30       ` Marco Aurélio da Cruz
  2006-03-28 12:38         ` Jonathan Larmour
  0 siblings, 1 reply; 11+ messages in thread
From: Marco Aurélio da Cruz @ 2006-03-28  0:30 UTC (permalink / raw)
  To: ecos-discuss

[-- Attachment #1: Type: text/plain, Size: 2481 bytes --]

Thank you very much!

The file is attached.

Marco

oliver munz @ s p e a g wrote:
> Go to the "ecos" directory (where the packages is located).
>
> and do:
>
> cvs -d :pserver:anoncvs@ecos.sourceware.org:/cvs/ecos diff -u packages >
> packages.01.diff
>
> You then get all modifications in the packages.01.diff
>
> ----- Original Message ----- From: "Marco Aurélio da Cruz" 
> <marco@daruma.com.br>
> To: <ecos-discuss@sourceware.org>
> Sent: Monday, March 27, 2006 5:21 PM
> Subject: Re: [ECOS] eCos and GCC 4.1.0
>
>
>> I've read some messages about doing this but I'm not aware how to...
>>
>> I edited my local /packages/kernel/current/include files, changed the
>> /packages/kernel/current/ChangLog but I'm not able to generate the diff
>> file. I'm so newbie with CVS and patches...
>>
>> Marco
>>
>> Andrew Lunn wrote:
>>> On Fri, Mar 24, 2006 at 03:33:37PM -0300, Marco Aur?lio da Cruz wrote:
>>>
>>>> Hi.
>>>> I've downloaded the ecos-trunk-20060319 snapshot from eCoscentric and
>>>> tried to compile it on arm-elf-gcc 4.1.0.
>>>>
>>>> I got the errors below:
>>>>
>>>> .../include/cyg/kernel/sched.hxx:181: error: extra qualification
>>>> 'Cyg_Scheduler::' on member 'thread_entry'
>>>> .../include/cyg/kernel/thread.hxx:315: error: extra qualification
>>>> 'Cyg_Thread::' on member 'reinitialize'
>>>>
>>>> I edited the files in /packages/kernel/current/include and removed the
>>>> qualifiers. So it compiled OK.
>>>>
>>>> sched.hxx
>>>>
>>>> from:
>>>> /// perform thread startup housekeeping/
>>>> void Cyg_Scheduler::thread_entry( Cyg_Thread *thread );
>>>>
>>>> to:
>>>> /// perform thread startup housekeeping/
>>>> void thread_entry( Cyg_Thread *thread );
>>>>
>>>>
>>>> thread.hxx
>>>>
>>>> from:
>>>> /// Re-initialize the thread back to it's initial state./
>>>> void Cyg_Thread::reinitialize();
>>>>
>>>> to:
>>>> /// Re-initialize the thread back to it's initial state./
>>>> void reinitialize();
>>>>
>>>>
>>>> Regards
>>>>
>>>> Marco Cruz
>>>>
>>>
>>> Please could you produce a proper patch, with ChangeLog entries.
>>>
>>>         Thanks
>>>                 Andrew
>>>
>>>
>>>
>>>
>>
>> -- 
>> Marco Aurélio da Cruz
>>
>> Depto. de Automação
>> Divisão de Tecnologia
>> Daruma Urmet S.A.
>> Tel.: +55 12 3609-5105
>> Fax:  +55 12 3609-5156
>> Web:  http://www.daruma.com.br
>>
>>
>> -- 
>> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
>> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>>
>
>



[-- Attachment #2: kernel.01.diff --]
[-- Type: text/plain, Size: 2090 bytes --]

? packages/kernel/kernel.01.diff
Index: packages/kernel/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/kernel/current/ChangeLog,v
retrieving revision 1.131
diff -u -r1.131 ChangeLog
--- packages/kernel/current/ChangeLog	14 Feb 2006 19:10:06 -0000	1.131
+++ packages/kernel/current/ChangeLog	27 Mar 2006 17:31:09 -0000
@@ -1,3 +1,10 @@
+2006-03-27  Marco Cruz  <marco@daruma.com.br>
+
+	* include/thread.hxx: removed extra qualifier of Cyg_Thread::reinitialize() to
+	permit compile on gcc 4.1.0
+	* include/sched.hxx: removed extra qualifier of Cyg_Scheduler::thread_entry to
+	permit compile on gcc 4.1.0
+
 2006-02-14  Andrew Lunn  <andrew.lunn@ascom.ch>
 
 	* tests/timeslice.c  (STACK_SIZE): Reduce the stack size so it will
Index: packages/kernel/current/include/sched.hxx
===================================================================
RCS file: /cvs/ecos/ecos/packages/kernel/current/include/sched.hxx,v
retrieving revision 1.13
diff -u -r1.13 sched.hxx
--- packages/kernel/current/include/sched.hxx	10 Jan 2006 15:52:54 -0000	1.13
+++ packages/kernel/current/include/sched.hxx	27 Mar 2006 17:31:10 -0000
@@ -178,7 +178,7 @@
     static void             unlock_simple();
 
     // perform thread startup housekeeping
-    void Cyg_Scheduler::thread_entry( Cyg_Thread *thread );
+    void 					thread_entry( Cyg_Thread *thread );
     
     // Start execution of the scheduler
     static void start() CYGBLD_ATTRIB_NORET;
Index: packages/kernel/current/include/thread.hxx
===================================================================
RCS file: /cvs/ecos/ecos/packages/kernel/current/include/thread.hxx,v
retrieving revision 1.11
diff -u -r1.11 thread.hxx
--- packages/kernel/current/include/thread.hxx	14 Apr 2004 09:32:05 -0000	1.11
+++ packages/kernel/current/include/thread.hxx	27 Mar 2006 17:31:11 -0000
@@ -312,7 +312,7 @@
         );
 
     // Re-initialize the thread back to it's initial state.
-    void Cyg_Thread::reinitialize();
+    void reinitialize();
     
     ~Cyg_Thread();
     


[-- Attachment #3: Type: text/plain, Size: 148 bytes --]

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

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

* Re: [ECOS] eCos and GCC 4.1.0
  2006-03-28  0:30       ` Marco Aurélio da Cruz
@ 2006-03-28 12:38         ` Jonathan Larmour
  0 siblings, 0 replies; 11+ messages in thread
From: Jonathan Larmour @ 2006-03-28 12:38 UTC (permalink / raw)
  To: Marco Aurélio da Cruz; +Cc: ecos-discuss, eCos Patches List

Marco Aurélio da Cruz wrote:
> Thank you very much!
> 
> The file is attached.

Thanks Marco, I've checked this in! (with some whitespace changes)

Jifl


>> ----- Original Message ----- From: "Marco Aurélio da Cruz" 
>> <marco@daruma.com.br>
>> To: <ecos-discuss@sourceware.org>
>> Sent: Monday, March 27, 2006 5:21 PM
>> Subject: Re: [ECOS] eCos and GCC 4.1.0
>>
>>
>>> I've read some messages about doing this but I'm not aware how to...
>>>
>>> I edited my local /packages/kernel/current/include files, changed the
>>> /packages/kernel/current/ChangLog but I'm not able to generate the diff
>>> file. I'm so newbie with CVS and patches...
>>>
>>> Marco
>>>
>>> Andrew Lunn wrote:
>>>
>>>> On Fri, Mar 24, 2006 at 03:33:37PM -0300, Marco Aur?lio da Cruz wrote:
>>>>
>>>>> Hi.
>>>>> I've downloaded the ecos-trunk-20060319 snapshot from eCoscentric and
>>>>> tried to compile it on arm-elf-gcc 4.1.0.
>>>>>
>>>>> I got the errors below:
>>>>>
>>>>> .../include/cyg/kernel/sched.hxx:181: error: extra qualification
>>>>> 'Cyg_Scheduler::' on member 'thread_entry'
>>>>> .../include/cyg/kernel/thread.hxx:315: error: extra qualification
>>>>> 'Cyg_Thread::' on member 'reinitialize'
[snip]

> ------------------------------------------------------------------------
> 
> ? packages/kernel/kernel.01.diff
> Index: packages/kernel/current/ChangeLog
> ===================================================================
> RCS file: /cvs/ecos/ecos/packages/kernel/current/ChangeLog,v
> retrieving revision 1.131
> diff -u -r1.131 ChangeLog
> --- packages/kernel/current/ChangeLog	14 Feb 2006 19:10:06 -0000	1.131
> +++ packages/kernel/current/ChangeLog	27 Mar 2006 17:31:09 -0000
> @@ -1,3 +1,10 @@
> +2006-03-27  Marco Cruz  <marco@daruma.com.br>
> +
> +	* include/thread.hxx: removed extra qualifier of Cyg_Thread::reinitialize() to
> +	permit compile on gcc 4.1.0
> +	* include/sched.hxx: removed extra qualifier of Cyg_Scheduler::thread_entry to
> +	permit compile on gcc 4.1.0
> +
>  2006-02-14  Andrew Lunn  <andrew.lunn@ascom.ch>
>  
>  	* tests/timeslice.c  (STACK_SIZE): Reduce the stack size so it will
> Index: packages/kernel/current/include/sched.hxx
> ===================================================================
> RCS file: /cvs/ecos/ecos/packages/kernel/current/include/sched.hxx,v
> retrieving revision 1.13
> diff -u -r1.13 sched.hxx
> --- packages/kernel/current/include/sched.hxx	10 Jan 2006 15:52:54 -0000	1.13
> +++ packages/kernel/current/include/sched.hxx	27 Mar 2006 17:31:10 -0000
> @@ -178,7 +178,7 @@
>      static void             unlock_simple();
>  
>      // perform thread startup housekeeping
> -    void Cyg_Scheduler::thread_entry( Cyg_Thread *thread );
> +    void 					thread_entry( Cyg_Thread *thread );
>      
>      // Start execution of the scheduler
>      static void start() CYGBLD_ATTRIB_NORET;
> Index: packages/kernel/current/include/thread.hxx
> ===================================================================
> RCS file: /cvs/ecos/ecos/packages/kernel/current/include/thread.hxx,v
> retrieving revision 1.11
> diff -u -r1.11 thread.hxx
> --- packages/kernel/current/include/thread.hxx	14 Apr 2004 09:32:05 -0000	1.11
> +++ packages/kernel/current/include/thread.hxx	27 Mar 2006 17:31:11 -0000
> @@ -312,7 +312,7 @@
>          );
>  
>      // Re-initialize the thread back to it's initial state.
> -    void Cyg_Thread::reinitialize();
> +    void reinitialize();
>      
>      ~Cyg_Thread();
>      
> 
> 


-- 
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
*>     Visit us at ESC Silicon Valley, April 4-6 2006.   Booth 1448     <*
*>  San Jose McEnery Convention Center  http://www.embedded.com/esc/sv  <*
------["The best things in life aren't things."]------      Opinions==mine

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

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

* [ECOS] eCos and GCC 4.1.1
  2006-03-26 22:54 ` Andrew Lunn
  2006-03-27 16:40   ` Marco Aurélio da Cruz
@ 2007-12-14  9:47   ` venumadhav
  2007-12-14 10:29     ` Andrew Lunn
  2007-12-14 10:38     ` [ECOS] eCos " Paul D. DeRocco
  1 sibling, 2 replies; 11+ messages in thread
From: venumadhav @ 2007-12-14  9:47 UTC (permalink / raw)
  To: ecos-discuss


Hi,

I trying to build the ecos with arm-elf-gcc 4.1.1, I am getting following
errors :
======================================================================
cc1: warning: command line option "-Woverloaded-virtual" is valid for
C++/ObjC++ but not for C
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but
not for C
cc1: warning: command line option "-fvtable-gc" is valid for C++/ObjC++ but
not for C
/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/packages/io/serial/v2_0/src/common/haldiag.c:
In function 'haldiag_getc':
/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/packages/io/serial/v2_0/src/common/haldiag.c:122:
warning: pointer targets in passing argument 1 of 'hal_if_diag_read_char'
differ in signedness
arm-elf-ar rcs
/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/ecos_4_1_1_install/lib/libextras.a
src/common/io_serial_serial.o src/common/io_serial_tty.o
src/common/io_serial_haldiag.o
make[1]: Leaving directory
`/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/ecos_4_1_1_build/io/serial/v2_0'
make -r -C infra/v2_0 build
make[1]: Entering directory
`/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/ecos_4_1_1_build/infra/v2_0'
arm-elf-gcc -c 
-I/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/ecos_4_1_1_install/include
-I/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/packages/infra/v2_0
-I/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/packages/infra/v2_0/src
-I/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/packages/infra/v2_0/tests -I.
-I/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/packages/infra/v2_0/src/
-mcpu=arm9 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef
-Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti
-fno-exceptions -fvtable-gc -Wp,-MD,src/startup.tmp -o src/infra_startup.o
/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/packages/infra/v2_0/src/startup.cxx
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
C/ObjC but not for C++
cc1plus: warning: switch '-fvtable-gc' is no longer supported
make[1]: Leaving directory
`/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/ecos_4_1_1_build/infra/v2_0'
/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/ecos_4_1_1_install/include/cyg/kernel/thread.hxx:315:
error: extra qualification 'Cyg_Thread::' on member 'reinitialize'
make: Leaving directory
`/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/ecos_4_1_1_build'
make[1]: *** [src/startup.o.d] Error 1
make: *** [build] Error 2
=========================================================

Any help will be really appreciated. 

Cheers,
Venu
-- 
View this message in context: http://www.nabble.com/eCos-and-GCC-4.1.0-tp3576883p14330913.html
Sent from the Sourceware - ecos-discuss mailing list archive at Nabble.com.


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

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

* Re: [ECOS] eCos and GCC 4.1.1
  2007-12-14  9:47   ` [ECOS] eCos and GCC 4.1.1 venumadhav
@ 2007-12-14 10:29     ` Andrew Lunn
       [not found]       ` <CBE0A8E1D067704EA75C8D910F98B93D01E611E7@HYD-MKD-MBX01.wipro.com>
  2007-12-14 10:38     ` [ECOS] eCos " Paul D. DeRocco
  1 sibling, 1 reply; 11+ messages in thread
From: Andrew Lunn @ 2007-12-14 10:29 UTC (permalink / raw)
  To: venumadhav; +Cc: ecos-discuss

On Thu, Dec 13, 2007 at 10:38:34PM -0800, venumadhav wrote:
> 
> Hi,
> 
> I trying to build the ecos with arm-elf-gcc 4.1.1, I am getting following
> errors :
> ======================================================================
> cc1: warning: command line option "-Woverloaded-virtual" is valid for
> C++/ObjC++ but not for C
> cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but
> not for C
> cc1: warning: command line option "-fvtable-gc" is valid for C++/ObjC++ but
> not for C
> /ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/packages/io/serial/v2_0/src/common/haldiag.c:

Such an old version of eCos, version 2.0, will not work with 4.1.1. See

http://ecos.sourceware.org/anoncvs.html

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

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

* RE: [ECOS] eCos and GCC 4.1.1
  2007-12-14  9:47   ` [ECOS] eCos and GCC 4.1.1 venumadhav
  2007-12-14 10:29     ` Andrew Lunn
@ 2007-12-14 10:38     ` Paul D. DeRocco
  1 sibling, 0 replies; 11+ messages in thread
From: Paul D. DeRocco @ 2007-12-14 10:38 UTC (permalink / raw)
  To: ecos-discuss

> From: venumadhav
> 
> I trying to build the ecos with arm-elf-gcc 4.1.1, I am 
> getting following errors : 
> ======================================================================
> cc1: warning: command line option "-Woverloaded-virtual" is valid for
> C++/ObjC++ but not for C
> cc1: warning: command line option "-fno-rtti" is valid for 
> C++/ObjC++ but not for C
> cc1: warning: command line option "-fvtable-gc" is valid for 
> C++/ObjC++ but not for C
> /ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/packages/io/serial/
> v2_0/src/common/haldiag.c:
> In function 'haldiag_getc':
> /ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/packages/io/serial/
> v2_0/src/common/haldiag.c:122:
> warning: pointer targets in passing argument 1 of 
> 'hal_if_diag_read_char' differ in signedness arm-elf-ar rcs 
> /ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/ecos_4_1_1_install/
> lib/libextras.a
> src/common/io_serial_serial.o src/common/io_serial_tty.o 
> src/common/io_serial_haldiag.o
> make[1]: Leaving directory 
> `/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/ecos_4_1_1_build/i
> o/serial/v2_0'
> make -r -C infra/v2_0 build
> make[1]: Entering directory 
> `/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/ecos_4_1_1_build/i
> nfra/v2_0'
> arm-elf-gcc -c 
> -I/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/ecos_4_1_1_instal
> l/include
> -I/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/packages/infra/v2_0
> -I/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/packages/infra/v2_0/src
> -I/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/packages/infra/v2
> _0/tests -I. 
> -I/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/packages/infra/v2_0/src/
> -mcpu=arm9 -Wall -Wpointer-arith -Wstrict-prototypes -Winline 
> -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections 
> -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc 
> -Wp,-MD,src/startup.tmp -o src/infra_startup.o 
> /ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/packages/infra/v2_0
> /src/startup.cxx
> cc1plus: warning: command line option "-Wstrict-prototypes" 
> is valid for C/ObjC but not for C++
> cc1plus: warning: switch '-fvtable-gc' is no longer supported
> make[1]: Leaving directory 
> `/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/ecos_4_1_1_build/i
> nfra/v2_0'
> /ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/ecos_4_1_1_install/
include/cyg/kernel/thread.hxx:315:
> error: extra qualification 'Cyg_Thread::' on member 'reinitialize'
> make: Leaving directory 
> `/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/ecos_4_1_1_build'
> make[1]: *** [src/startup.o.d] Error 1
> make: *** [build] Error 2 
> =========================================================
> 
> Any help will be really appreciated. 

The warnings about boilerplate C++ options being ignored in C is normal. But
the single actual error at the end of that is the result of a nonstandard
(and pointless) bit of syntax that the earlier compilers were willing to
forgive, but eventually was ruled illegal in the more recent compiler. It
was fixed in the latest rev of the eCos source code in the obvious manner.

-- 

Ciao,               Paul D. DeRocco
Paul                mailto:pderocco@ix.netcom.com 


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

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

* Re: [ECOS] Ecos and GCC 4.1.1
       [not found]       ` <CBE0A8E1D067704EA75C8D910F98B93D01E611E7@HYD-MKD-MBX01.wipro.com>
@ 2007-12-17 18:39         ` Andrew Lunn
  0 siblings, 0 replies; 11+ messages in thread
From: Andrew Lunn @ 2007-12-17 18:39 UTC (permalink / raw)
  To: venumadhav.josyula; +Cc: ecos-discuss

> Now we built our stack code and application using the library generated
> from the latest sources (these sources were compiled using arm-elf-gcc
> 4.1.1).  We are able to generate the .axf image. But we are not able to
> load the .axf image using axd debugger.

And what exactly does the debugger say?

What does Wind River say? 

Like i said, this is a tool chain problem, not eCos.

     Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

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

* Re: [ECOS] Ecos and GCC 4.1.1
       [not found] ` <CBE0A8E1D067704EA75C8D910F98B93D01E611EA@HYD-MKD-MBX01.wipro.com>
@ 2007-12-17 12:44   ` Andrew Lunn
  0 siblings, 0 replies; 11+ messages in thread
From: Andrew Lunn @ 2007-12-17 12:44 UTC (permalink / raw)
  To: venumadhav.josyula; +Cc: ecos-discuss

On Mon, Dec 17, 2007 at 04:22:37PM +0530, venumadhav.josyula@wipro.com wrote:
> 
> Hi Andrew,
>  
> I want to bit clear in 
>  
> experiment#1 
> we compiled Ecos + stack + application using arm-elf-gcc 4.1.1
>  
> experiment#2
> We compiled Ecos + stack + application using arm-elf-gcc 3.0
>  
> Cheers,
> Venu
> 
> ________________________________
> 
> From: Venumadhav Josyula (WT01 - Wipro NewLogic) 
> Sent: Monday, December 17, 2007 4:20 PM
> To: 'Andrew Lunn'
> Cc: 'ecos-discuss@ecos.sourceware.org'
> Subject: RE: [ECOS] Ecos and GCC 4.1.1
> 
> 
> Hi Andrew,
>  
> I got over the problem by downloading the latest Ecos sources. After
> that I am facing a unique problem. After I built the Ecos library, I
> replaced the target.ld with the target.ld which we use for our
> development environment.
>  
> Now we built our stack code and application using the library generated
> from the latest sources (these sources were compiled using arm-elf-gcc
> 4.1.1).  We are able to generate the .axf image. But we are not able to
> load the .axf image using axd debugger.


This is a toolchain/debugger problem, not an eCos problem. Try looking
on the gcc mailling lists and talk to the tech support for axd.

   Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

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

end of thread, other threads:[~2007-12-17 12:44 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-24 18:49 [ECOS] eCos and GCC 4.1.0 Marco Aurélio da Cruz
2006-03-26 22:54 ` Andrew Lunn
2006-03-27 16:40   ` Marco Aurélio da Cruz
2006-03-27 17:38     ` oliver munz @ s p e a g
2006-03-28  0:30       ` Marco Aurélio da Cruz
2006-03-28 12:38         ` Jonathan Larmour
2007-12-14  9:47   ` [ECOS] eCos and GCC 4.1.1 venumadhav
2007-12-14 10:29     ` Andrew Lunn
     [not found]       ` <CBE0A8E1D067704EA75C8D910F98B93D01E611E7@HYD-MKD-MBX01.wipro.com>
2007-12-17 18:39         ` [ECOS] Ecos " Andrew Lunn
2007-12-14 10:38     ` [ECOS] eCos " Paul D. DeRocco
     [not found] <CBE0A8E1D067704EA75C8D910F98B93D01164E45@HYD-MKD-MBX01.wipro.com>
     [not found] ` <CBE0A8E1D067704EA75C8D910F98B93D01E611EA@HYD-MKD-MBX01.wipro.com>
2007-12-17 12:44   ` [ECOS] Ecos " Andrew Lunn

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).