public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] problem with cyg/kernel/kapi.h
@ 2003-10-17 14:31 Alexander Popov
  2003-10-17 14:44 ` Alexander Popov
  0 siblings, 1 reply; 5+ messages in thread
From: Alexander Popov @ 2003-10-17 14:31 UTC (permalink / raw)
  To: ecos-discuss

Hi,

I am trying to port Wonka to ecos/i386 and I came to this problem when 
ytrying to include <target>_install/include/cyg/kernel/kapi.h:


[long@popov delme]$i386-elf-gcc 
-I/opt/ecos/ecos-2.0/tools/bin/default-i386_install/include -nostdlib 
-Ttarget.ld -static -o delme delme.c
In file included from delme.c:1:
/opt/ecos/ecos-2.0/tools/bin/default-i386_install/include/cyg/kernel/kapi.h:481: 
parse error before "mbox"
[long@popov delme]$ cat delme.c
#include 
"/opt/ecos/ecos-2.0/tools/bin/default-i386_install/include/cyg/kernel/kapi.h"
#include <stdio.h>

int main(){

         printf("Echo World!\n");
}

Any hints?

Best Regards,
-- 
Alexander Popov                    ProSyst Bulgaria Inc.
RTOS Leader                        48 Vladajska Str.
RTOS and JVM Dept.  	           Sofia 1606, Bulgaria
Phone:  +359 2 952 3581/203        http://www.prosyst.com
Mobile: +359 887 663 193           OSGi Technology Leaders
----------------------------------------------------------

The wonderful thing about Linux is that there is always at
least one more undiscovered way to do almost anything.
              Lewin A.R.W. Edwards (comp.os.linux.embedded)
----------------------------------------------------------


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

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

* Re: [ECOS] problem with cyg/kernel/kapi.h
  2003-10-17 14:31 [ECOS] problem with cyg/kernel/kapi.h Alexander Popov
@ 2003-10-17 14:44 ` Alexander Popov
  2003-10-17 15:33   ` Andrew Lunn
  0 siblings, 1 reply; 5+ messages in thread
From: Alexander Popov @ 2003-10-17 14:44 UTC (permalink / raw)
  To: ecos-discuss

I can't find cyg_handlg_t in the header files for the target.
What am I doing wrog - can I use cyg/kernel/kapi.h that way?


Alexander Popov wrote:
> Hi,
> 
> I am trying to port Wonka to ecos/i386 and I came to this problem when 
> ytrying to include <target>_install/include/cyg/kernel/kapi.h:
> 
> 
> [long@popov delme]$i386-elf-gcc 
> -I/opt/ecos/ecos-2.0/tools/bin/default-i386_install/include -nostdlib 
> -Ttarget.ld -static -o delme delme.c
> In file included from delme.c:1:
> /opt/ecos/ecos-2.0/tools/bin/default-i386_install/include/cyg/kernel/kapi.h:481: 
> parse error before "mbox"
> [long@popov delme]$ cat delme.c
> #include 
> "/opt/ecos/ecos-2.0/tools/bin/default-i386_install/include/cyg/kernel/kapi.h" 
> 
> #include <stdio.h>
> 
> int main(){
> 
>         printf("Echo World!\n");
> }
> 
> Any hints?
> 
> Best Regards,


-- 
Alexander Popov                    ProSyst Bulgaria Inc.
RTOS Leader                        48 Vladajska Str.
RTOS and JVM Dept.  	           Sofia 1606, Bulgaria
Phone:  +359 2 952 3581/203        http://www.prosyst.com
Mobile: +359 887 663 193           OSGi Technology Leaders
----------------------------------------------------------

The wonderful thing about Linux is that there is always at
least one more undiscovered way to do almost anything.
              Lewin A.R.W. Edwards (comp.os.linux.embedded)
----------------------------------------------------------


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

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

* Re: [ECOS] problem with cyg/kernel/kapi.h
  2003-10-17 14:44 ` Alexander Popov
@ 2003-10-17 15:33   ` Andrew Lunn
  2003-10-17 16:23     ` Alexander Popov
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Lunn @ 2003-10-17 15:33 UTC (permalink / raw)
  To: Alexander Popov; +Cc: ecos-discuss

On Fri, Oct 17, 2003 at 05:44:00PM +0300, Alexander Popov wrote:
> I can't find cyg_handlg_t in the header files for the target.
> What am I doing wrog - can I use cyg/kernel/kapi.h that way?

Yes you can, with a correctly configured and built system. Not you
don't need to give the full path either, which is a bad idea.

A guess would be you have a confused build directory. Have you build
redboot in the same directory? Thats a common mistake.

Start from an empty directory and do a clean configuration and build.

ecosconfig new pc
ecosconfig tree
make

Then try your "hello world" with this. 

     Andrew

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

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

* Re: [ECOS] problem with cyg/kernel/kapi.h
  2003-10-17 15:33   ` Andrew Lunn
@ 2003-10-17 16:23     ` Alexander Popov
  2003-10-17 16:45       ` Gary Thomas
  0 siblings, 1 reply; 5+ messages in thread
From: Alexander Popov @ 2003-10-17 16:23 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos-discuss



Andrew Lunn wrote:
> On Fri, Oct 17, 2003 at 05:44:00PM +0300, Alexander Popov wrote:
> 
>>I can't find cyg_handlg_t in the header files for the target.
>>What am I doing wrog - can I use cyg/kernel/kapi.h that way?
> 
> 
> Yes you can, with a correctly configured and built system. Not you
> don't need to give the full path either, which is a bad idea.
> 
> A guess would be you have a confused build directory. Have you build
> redboot in the same directory? Thats a common mistake.
> 
> Start from an empty directory and do a clean configuration and build.
> 
> ecosconfig new pc
> ecosconfig tree
> make

10x Andrew,

I found the problem...
When I added the POSIX compatibility layers this was resolved...

btw: the target image that I used was built with the pc-i386 template 
(trough configtool)...

bbtw: when I added the POSIX compatibility layer the build failed... it 
came out that the CYGSEM_LIBC_SIGNALS_POSIX directive was not added to 
the build options ( I had to do this manualy - is that wrong? ).
Without it the cyg/posix/export.h failed on line 100 ( sigset_t was not 
defined - it was in cyg/libc/signals/signal.h in the
#ifdef CYGSEM_LIBC_SIGNALS_POSIX ).

> 
> Then try your "hello world" with this. 
> 
>      Andrew
> 
> 

Best Regards,
-- 
Alexander Popov                    ProSyst Bulgaria Inc.
RTOS Leader                        48 Vladajska Str.
RTOS and JVM Dept.  	           Sofia 1606, Bulgaria
Phone:  +359 2 952 3581/203        http://www.prosyst.com
Mobile: +359 887 663 193           OSGi Technology Leaders
----------------------------------------------------------

The wonderful thing about Linux is that there is always at
least one more undiscovered way to do almost anything.
              Lewin A.R.W. Edwards (comp.os.linux.embedded)
----------------------------------------------------------


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

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

* Re: [ECOS] problem with cyg/kernel/kapi.h
  2003-10-17 16:23     ` Alexander Popov
@ 2003-10-17 16:45       ` Gary Thomas
  0 siblings, 0 replies; 5+ messages in thread
From: Gary Thomas @ 2003-10-17 16:45 UTC (permalink / raw)
  To: Alexander Popov; +Cc: Andrew Lunn, ecos-discuss

On Fri, 2003-10-17 at 10:23, Alexander Popov wrote:
> Andrew Lunn wrote:
> > On Fri, Oct 17, 2003 at 05:44:00PM +0300, Alexander Popov wrote:
> > 
> >>I can't find cyg_handlg_t in the header files for the target.
> >>What am I doing wrog - can I use cyg/kernel/kapi.h that way?
> > 
> > 
> > Yes you can, with a correctly configured and built system. Not you
> > don't need to give the full path either, which is a bad idea.
> > 
> > A guess would be you have a confused build directory. Have you build
> > redboot in the same directory? Thats a common mistake.
> > 
> > Start from an empty directory and do a clean configuration and build.
> > 
> > ecosconfig new pc
> > ecosconfig tree
> > make
> 
> 10x Andrew,
> 
> I found the problem...
> When I added the POSIX compatibility layers this was resolved...
> 
> btw: the target image that I used was built with the pc-i386 template 
> (trough configtool)...
> 
> bbtw: when I added the POSIX compatibility layer the build failed... it 
> came out that the CYGSEM_LIBC_SIGNALS_POSIX directive was not added to 
> the build options ( I had to do this manualy - is that wrong? ).
> Without it the cyg/posix/export.h failed on line 100 ( sigset_t was not 
> defined - it was in cyg/libc/signals/signal.h in the
> #ifdef CYGSEM_LIBC_SIGNALS_POSIX ).
> 

Use the templates!  Oft-times, a set of functionality, like POSIX, is
spread out over multiple packages.  The templates make sure you get 
all of the pieces you need.

> > 
> > Then try your "hello world" with this. 
> > 
> >      Andrew
> > 
> > 
> 
> Best Regards,
> -- 
> Alexander Popov                    ProSyst Bulgaria Inc.
> RTOS Leader                        48 Vladajska Str.
> RTOS and JVM Dept.  	           Sofia 1606, Bulgaria
> Phone:  +359 2 952 3581/203        http://www.prosyst.com
> Mobile: +359 887 663 193           OSGi Technology Leaders
> ----------------------------------------------------------
> 
> The wonderful thing about Linux is that there is always at
> least one more undiscovered way to do almost anything.
>               Lewin A.R.W. Edwards (comp.os.linux.embedded)
> ----------------------------------------------------------
-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


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

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

end of thread, other threads:[~2003-10-17 16:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-17 14:31 [ECOS] problem with cyg/kernel/kapi.h Alexander Popov
2003-10-17 14:44 ` Alexander Popov
2003-10-17 15:33   ` Andrew Lunn
2003-10-17 16:23     ` Alexander Popov
2003-10-17 16:45       ` Gary Thomas

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