public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] create an application ecos with Eclipse CDT
@ 2011-04-05  0:36 moktar_bouain
  2011-04-05 10:03 ` Ilija Kocho
  0 siblings, 1 reply; 8+ messages in thread
From: moktar_bouain @ 2011-04-05  0:36 UTC (permalink / raw)
  To: ecos-discuss


Hi,
I want to create an application ecos with Eclipse CDT .
What are the steps for this?
-- 
View this message in context: http://old.nabble.com/create-an-application-ecos-with-Eclipse-CDT-tp31319929p31319929.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] 8+ messages in thread

* Re: [ECOS] create an application ecos with Eclipse CDT
  2011-04-05  0:36 [ECOS] create an application ecos with Eclipse CDT moktar_bouain
@ 2011-04-05 10:03 ` Ilija Kocho
  2011-04-05 13:30   ` moktar_bouain
  0 siblings, 1 reply; 8+ messages in thread
From: Ilija Kocho @ 2011-04-05 10:03 UTC (permalink / raw)
  To: ecos-discuss

On 05.04.2011 02:36, moktar_bouain wrote:
> Hi,
> I want to create an application ecos with Eclipse CDT .
> What are the steps for this?
Avery brief recipe:

Start C or C++ project.
    Project type: select Makefile Project.
    Toolchains: select Other Toolchain
 
If you don't have one, you need to prepare a Makefile, see Examples
provided with eCos.

For debugging you may look at
http://www.open-etech.com/RTOS/Debugging/index.php?page=eclipse

I hope this helps.

Ilija


-- 
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] 8+ messages in thread

* Re: [ECOS] create an application ecos with Eclipse CDT
  2011-04-05 10:03 ` Ilija Kocho
@ 2011-04-05 13:30   ` moktar_bouain
  2011-04-05 14:01     ` Ilija Kocho
  0 siblings, 1 reply; 8+ messages in thread
From: moktar_bouain @ 2011-04-05 13:30 UTC (permalink / raw)
  To: ecos-discuss


Hi Ilija ,
Thank you for your reply ,but can you give me more detail .
I use ecos ;cross compiler; for Leon3 (Sparc). 

Ilija Koco wrote:
> 
> On 05.04.2011 02:36, moktar_bouain wrote:
>> Hi,
>> I want to create an application ecos with Eclipse CDT .
>> What are the steps for this?
> Avery brief recipe:
> 
> Start C or C++ project.
>     Project type: select Makefile Project.
>     Toolchains: select Other Toolchain
>  
> If you don't have one, you need to prepare a Makefile, see Examples
> provided with eCos.
> 
> For debugging you may look at
> http://www.open-etech.com/RTOS/Debugging/index.php?page=eclipse
> 
> I hope this helps.
> 
> Ilija
> 
> 
> -- 
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/create-an-application-ecos-with-Eclipse-CDT-tp31319929p31324165.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] 8+ messages in thread

* Re: [ECOS] create an application ecos with Eclipse CDT
  2011-04-05 13:30   ` moktar_bouain
@ 2011-04-05 14:01     ` Ilija Kocho
  2011-04-05 14:10       ` moktar_bouain
  0 siblings, 1 reply; 8+ messages in thread
From: Ilija Kocho @ 2011-04-05 14:01 UTC (permalink / raw)
  To: ecos-discuss

On 05.04.2011 15:29, moktar_bouain wrote:
> Hi Ilija ,
> Thank you for your reply ,but can you give me more detail .
Perhaps I could if your are more specific with your question.
Did you try to build ecos app. under eclipse?
If yes what is the outcome?
> I use ecos ;cross compiler; for Leon3 (Sparc). 
You can use standard eCos compiler provided that your processor is
supported. I guess it should work with other gcc distributions too.
State your compiler in Makefile, usually there are macros such as:

XCC, XCXX, etc.

> Ilija Koco wrote:
>> On 05.04.2011 02:36, moktar_bouain wrote:
>>> Hi,
>>> I want to create an application ecos with Eclipse CDT .
>>> What are the steps for this?
>> Avery brief recipe:
>>
>> Start C or C++ project.
>>     Project type: select Makefile Project.
>>     Toolchains: select Other Toolchain
>>  
>> If you don't have one, you need to prepare a Makefile, see Examples
>> provided with eCos.
>>
>> For debugging you may look at
>> http://www.open-etech.com/RTOS/Debugging/index.php?page=eclipse
>>
>> I hope this helps.
>>
>> Ilija
>>
>>
>> -- 
>> 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] 8+ messages in thread

* Re: [ECOS] create an application ecos with Eclipse CDT
  2011-04-05 14:01     ` Ilija Kocho
@ 2011-04-05 14:10       ` moktar_bouain
  2011-04-05 14:23         ` Ilija Kocho
  0 siblings, 1 reply; 8+ messages in thread
From: moktar_bouain @ 2011-04-05 14:10 UTC (permalink / raw)
  To: ecos-discuss


Hi ,

Yes i tried to compile the application directly:

sparc-elf-gcc -g -I/home/moktar/ecos/build2/install/include twothreads.c 
-L/home/moktar/ecos/build2/install/lib -Ttarget.ld -nostdlib

but I can not solve this problem:

collect2: ld returned 1 exit status
Any help ??



Ilija Koco wrote:
> 
> On 05.04.2011 15:29, moktar_bouain wrote:
>> Hi Ilija ,
>> Thank you for your reply ,but can you give me more detail .
> Perhaps I could if your are more specific with your question.
> Did you try to build ecos app. under eclipse?
> If yes what is the outcome?
>> I use ecos ;cross compiler; for Leon3 (Sparc). 
> You can use standard eCos compiler provided that your processor is
> supported. I guess it should work with other gcc distributions too.
> State your compiler in Makefile, usually there are macros such as:
> 
> XCC, XCXX, etc.
> 
>> Ilija Koco wrote:
>>> On 05.04.2011 02:36, moktar_bouain wrote:
>>>> Hi,
>>>> I want to create an application ecos with Eclipse CDT .
>>>> What are the steps for this?
>>> Avery brief recipe:
>>>
>>> Start C or C++ project.
>>>     Project type: select Makefile Project.
>>>     Toolchains: select Other Toolchain
>>>  
>>> If you don't have one, you need to prepare a Makefile, see Examples
>>> provided with eCos.
>>>
>>> For debugging you may look at
>>> http://www.open-etech.com/RTOS/Debugging/index.php?page=eclipse
>>>
>>> I hope this helps.
>>>
>>> Ilija
>>>
>>>
>>> -- 
>>> 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
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/create-an-application-ecos-with-Eclipse-CDT-tp31319929p31324571.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] 8+ messages in thread

* Re: [ECOS] create an application ecos with Eclipse CDT
  2011-04-05 14:10       ` moktar_bouain
@ 2011-04-05 14:23         ` Ilija Kocho
  2011-04-05 14:33           ` moktar_bouain
  0 siblings, 1 reply; 8+ messages in thread
From: Ilija Kocho @ 2011-04-05 14:23 UTC (permalink / raw)
  To: ecos-discuss

On 05.04.2011 16:10, moktar_bouain wrote:
> Hi ,
>
> Yes i tried to compile the application directly:
>
> sparc-elf-gcc -g -I/home/moktar/ecos/build2/install/include twothreads.c 
> -L/home/moktar/ecos/build2/install/lib -Ttarget.ld -nostdlib
>
> but I can not solve this problem:
>
> collect2: ld returned 1 exit status
Can you paste ld output?
> Any help ??
>
>
>
> Ilija Koco wrote:
>> On 05.04.2011 15:29, moktar_bouain wrote:
>>> Hi Ilija ,
>>> Thank you for your reply ,but can you give me more detail .
>> Perhaps I could if your are more specific with your question.
>> Did you try to build ecos app. under eclipse?
>> If yes what is the outcome?
>>> I use ecos ;cross compiler; for Leon3 (Sparc). 
>> You can use standard eCos compiler provided that your processor is
>> supported. I guess it should work with other gcc distributions too.
>> State your compiler in Makefile, usually there are macros such as:
>>
>> XCC, XCXX, etc.
>>
>>> Ilija Koco wrote:
>>>> On 05.04.2011 02:36, moktar_bouain wrote:
>>>>> Hi,
>>>>> I want to create an application ecos with Eclipse CDT .
>>>>> What are the steps for this?
>>>> Avery brief recipe:
>>>>
>>>> Start C or C++ project.
>>>>     Project type: select Makefile Project.
>>>>     Toolchains: select Other Toolchain
>>>>  
>>>> If you don't have one, you need to prepare a Makefile, see Examples
>>>> provided with eCos.
>>>>
>>>> For debugging you may look at
>>>> http://www.open-etech.com/RTOS/Debugging/index.php?page=eclipse
>>>>
>>>> I hope this helps.
>>>>
>>>> Ilija
>>>>
>>>>
>>>> -- 
>>>> 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
>>
>>
>>


-- 
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] 8+ messages in thread

* Re: [ECOS] create an application ecos with Eclipse CDT
  2011-04-05 14:23         ` Ilija Kocho
@ 2011-04-05 14:33           ` moktar_bouain
  2011-04-05 15:35             ` Ilija Kocho
  0 siblings, 1 reply; 8+ messages in thread
From: moktar_bouain @ 2011-04-05 14:33 UTC (permalink / raw)
  To: ecos-discuss


OK ,the output:
 sparc-elf-gcc -g -I/home/moktar/Bureau/ecos/build2/install/include hello.c
-L/home/moktar/Bureau/ecos/build2/install/lib -Ttarget.ld  -nostdlib
/home/moktar/Bureau/ecos/build2/install/lib/libtarget.a(kernel_thread.o): In
function `__static_initialization_and_destruction_0':
/home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/kernel/current/src/common/thread.cxx:1302:
undefined reference to `__dso_handle'
/home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/kernel/current/src/common/thread.cxx:1302:
undefined reference to `__cxa_atexit'
/home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/kernel/current/src/common/thread.cxx:1302:
undefined reference to `__dso_handle'
/home/moktar/Bureau/ecos/build2/install/lib/libtarget.a(kernel_intr.o): In
function `__static_initialization_and_destruction_0':
/home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/kernel/current/src/intr/intr.cxx:72:
undefined reference to `__dso_handle'
/home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/kernel/current/src/intr/intr.cxx:72:
undefined reference to `__dso_handle'
/home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/kernel/current/src/intr/intr.cxx:72:
undefined reference to `__cxa_atexit'
/home/moktar/Bureau/ecos/build2/install/lib/libtarget.a(kernel_sched.o): In
function `Cyg_Scheduler':
/home/moktar/Bureau/ecos/build2/install/include/cyg/kernel/sched.hxx:149:
undefined reference to `__dso_handle'
/home/moktar/Bureau/ecos/build2/install/lib/libtarget.a(kernel_sched.o): In
function `__static_initialization_and_destruction_0':
/home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/kernel/current/src/sched/sched.cxx:98:
undefined reference to `__cxa_atexit'
/home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/kernel/current/src/sched/sched.cxx:98:
undefined reference to `__dso_handle'
/home/moktar/Bureau/ecos/build2/install/lib/libtarget.a(language_c_libc_startup_mainthread.o):
In function `__static_initialization_and_destruction_0':
/home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/language/c/libc/startup/current/src/mainthread.cxx:131:
undefined reference to `__dso_handle'
/home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/language/c/libc/startup/current/src/mainthread.cxx:121:
undefined reference to `__cxa_atexit'
/home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/language/c/libc/startup/current/src/mainthread.cxx:121:
undefined reference to `__dso_handle'
/home/moktar/Bureau/ecos/build2/install/lib/libtarget.a(language_c_libc_stdio_stdout.o):
In function `__static_initialization_and_destruction_0':
/home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/language/c/libc/stdio/current/src/common/stdout.cxx:84:
undefined reference to `__dso_handle'
/home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/language/c/libc/stdio/current/src/common/stdout.cxx:84:
undefined reference to `__cxa_atexit'
/home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/language/c/libc/stdio/current/src/common/stdout.cxx:84:
undefined reference to `__dso_handle'
/home/moktar/Bureau/ecos/build2/install/lib/libtarget.a(kernel_clock.o): In
function `__static_initialization_and_destruction_0':
/home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/kernel/current/src/common/clock.cxx:828:
undefined reference to `__dso_handle'
/home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/kernel/current/src/common/clock.cxx:828:
undefined reference to `__cxa_atexit'
/home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/kernel/current/src/common/clock.cxx:828:
undefined reference to `__dso_handle'
/home/moktar/Bureau/ecos/build2/install/lib/libtarget.a(services_memalloc_common_heaps.o):
In function `__static_initialization_and_destruction_0':
/home/moktar/Bureau/ecos/build2/services/memalloc/common/current/heaps.cxx:19:
undefined reference to `__dso_handle'
/home/moktar/Bureau/ecos/build2/services/memalloc/common/current/heaps.cxx:19:
undefined reference to `__cxa_atexit'
/home/moktar/Bureau/ecos/build2/services/memalloc/common/current/heaps.cxx:19:
undefined reference to `__dso_handle'
/home/moktar/Bureau/ecos/build2/install/lib/libtarget.a(language_c_libc_stdio_stderr.o):
In function `__static_initialization_and_destruction_0':
/home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/language/c/libc/stdio/current/src/common/stderr.cxx:84:
undefined reference to `__dso_handle'
/home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/language/c/libc/stdio/current/src/common/stderr.cxx:84:
undefined reference to `__cxa_atexit'
/home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/language/c/libc/stdio/current/src/common/stderr.cxx:84:
undefined reference to `__dso_handle'
/home/moktar/Bureau/ecos/build2/install/lib/libtarget.a(language_c_libc_stdio_stdin.o):
In function `__static_initialization_and_destruction_0':
/home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/language/c/libc/stdio/current/src/common/stdin.cxx:84:
undefined reference to `__dso_handle'
/home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/language/c/libc/stdio/current/src/common/stdin.cxx:84:
undefined reference to `__cxa_atexit'
/home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/language/c/libc/stdio/current/src/common/stdin.cxx:84:
undefined reference to `__dso_handle'
/home/moktar/Bureau/ecos/build2/install/lib/libtarget.a(language_c_libc_stdio_stdiofiles.o):
In function `__static_initialization_and_destruction_0':
/home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/language/c/libc/stdio/current/src/common/stdiofiles.cxx:79:
undefined reference to `__dso_handle'
/home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/language/c/libc/stdio/current/src/common/stdiofiles.cxx:79:
undefined reference to `__cxa_atexit'
/home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/language/c/libc/stdio/current/src/common/stdiofiles.cxx:79:
undefined reference to `__dso_handle'
collect2: ld returned 1 exit status





> On 05.04.2011 16:10, moktar_bouain wrote:
>> Hi ,
>>
>> Yes i tried to compile the application directly:
>>
>> sparc-elf-gcc -g -I/home/moktar/ecos/build2/install/include twothreads.c 
>> -L/home/moktar/ecos/build2/install/lib -Ttarget.ld -nostdlib
>>
>> but I can not solve this problem:
>>
>> collect2: ld returned 1 exit status
> Can you paste ld output?
>> Any help ??
>>
>>
>>
>> Ilija Koco wrote:
>>> On 05.04.2011 15:29, moktar_bouain wrote:
>>>> Hi Ilija ,
>>>> Thank you for your reply ,but can you give me more detail .
>>> Perhaps I could if your are more specific with your question.
>>> Did you try to build ecos app. under eclipse?
>>> If yes what is the outcome?
>>>> I use ecos ;cross compiler; for Leon3 (Sparc). 
>>> You can use standard eCos compiler provided that your processor is
>>> supported. I guess it should work with other gcc distributions too.
>>> State your compiler in Makefile, usually there are macros such as:
>>>
>>> XCC, XCXX, etc.
>>>
>>>> Ilija Koco wrote:
>>>>> On 05.04.2011 02:36, moktar_bouain wrote:
>>>>>> Hi,
>>>>>> I want to create an application ecos with Eclipse CDT .
>>>>>> What are the steps for this?
>>>>> Avery brief recipe:
>>>>>
>>>>> Start C or C++ project.
>>>>>     Project type: select Makefile Project.
>>>>>     Toolchains: select Other Toolchain
>>>>>  
>>>>> If you don't have one, you need to prepare a Makefile, see Examples
>>>>> provided with eCos.
>>>>>
>>>>> For debugging you may look at
>>>>> http://www.open-etech.com/RTOS/Debugging/index.php?page=eclipse
>>>>>
>>>>> I hope this helps.
>>>>>
>>>>> Ilija
>>>>>
>>>>>
>>>>> -- 
>>>>> 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
>>>
>>>
>>>
> 
> 
> -- 
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/create-an-application-ecos-with-Eclipse-CDT-tp31319929p31324765.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] 8+ messages in thread

* Re: [ECOS] create an application ecos with Eclipse CDT
  2011-04-05 14:33           ` moktar_bouain
@ 2011-04-05 15:35             ` Ilija Kocho
  0 siblings, 0 replies; 8+ messages in thread
From: Ilija Kocho @ 2011-04-05 15:35 UTC (permalink / raw)
  To: ecos-discuss

It seem yous gcc is not configured for eCos. As a workaround try to
define dummy __dso_handle and __cxa_atexit.

For example and explanation pse look in your rCos repository in file:
packages/hal/cortexm/arch/current/src/hal_misc.c

Ilija


On 05.04.2011 16:32, moktar_bouain wrote:
> /home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/kernel/current/src/common/thread.cxx:1302:
> undefined reference to `__dso_handle'
> /home/moktar/Bureau/ecos/build2/install/lib/libtarget.a(kernel_intr.o): In
> function `__static_initialization_and_destruction_0':
> /home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/kernel/current/src/intr/intr.cxx:72:
> undefined reference to `__dso_handle'
> /home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/kernel/current/src/intr/intr.cxx:72:
> undefined reference to `__dso_handle'
> /home/moktar/Bureau/ecos/ecos-rep-1.0.9/packages/kernel/current/src/intr/intr.cxx:72:
> undefined reference to `__cxa_atexit'
> /home/moktar/Bureau/ecos/build2/install/lib/libtarget.a(kernel_sched.o): In


-- 
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] 8+ messages in thread

end of thread, other threads:[~2011-04-05 15:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-05  0:36 [ECOS] create an application ecos with Eclipse CDT moktar_bouain
2011-04-05 10:03 ` Ilija Kocho
2011-04-05 13:30   ` moktar_bouain
2011-04-05 14:01     ` Ilija Kocho
2011-04-05 14:10       ` moktar_bouain
2011-04-05 14:23         ` Ilija Kocho
2011-04-05 14:33           ` moktar_bouain
2011-04-05 15:35             ` Ilija Kocho

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