[oggonachip] Re: posix platform and pthread

Joel Sherrill joel.sherrill at OARcorp.com
Tue Apr 30 02:01:15 UTC 2002



Pattara Kiatisevi wrote:
> 
> opps, I am using gcc:
> 
> gcc -B/usr/local/ott-rtems/posix/lib/ -specs bsp_specs -qrtems -o test-x86
> test.c soundinput.c

You are using the native UNIX gcc and synthesized unix port.  
When you use the "synthesized" UNIX port you are actually native so
everything
eventually boils down to a native Linux call.  Even the system call
support
in RTEMS is not used.  

> so this is wrong? I have also installed i386-rtems-gcc (debs from OAR's
> ftp) but couldn't get it compiled yet (I don't know what options for
> compiler to be used).

And you are not using it.  You have to configure as --target=i386-rtems
and --enable-rtemsbsp=pc386.  Then you have to boot the RTEMS
application.


> Pattara
> 
> On Mon, 29 Apr 2002, Joel Sherrill wrote:
> 
> >
> >
> > Pattara Kiatisevi wrote:
> > >
> > > Hi,
> > >
> > > 1.RTEMS-4.5.0 on Linux. I did: '../configure --enable-posix
> > > --prefix=/usr/local/ott-rtems --enable-tests' and then 'make && make
> > > install' but I could not find libposix.a (in order to use pthread) under
> > > /usr/local/ott-rtems/posix/lib/. Do I miss something here?
> >
> > RTEMS includes all system calls in a single library in 4.5.0.
> > If you use the normal linking arguments, they are just there.
> > No extra libraries.  They are in librtemsall.a.
> >
> > > 2.I tried to compile my code (that formerly worked on sparc-rtems) to
> > > posix (x86) hoping that the debugging process will be easier. But in my
> > > test program, the "open("/dev/soundinput", major,0)" statement seems to
> > > want to open the real devices on the Linux filesystem instead of my device
> > > driver's code for /dev/soundinput. Anybody has idea?
> >
> > Did you compile using i386-rtems or native gcc?  Even though you are
> > on the same hardware, RTEMS still views it as an embedded system and
> > you will have to "boot RTEMS"
> >
> > > Thank you very much,
> > > Pattara
> > >
> > > --
> > > Please avoid sending me Word or PowerPoint attachments.
> > > See http://www.fsf.org/philosophy/no-word-attachments.html
> > > ----------------------------------------------------------------------
> > > Ott Pattara Kiatisevi                              T L W G
> > > M.Sc. INFOTECH Student, Stuttgart, Germany      http://linux.thai.net/
> > > ----------------------------------------------------------------------
> >
> > --
> > Joel Sherrill, Ph.D.             Director of Research & Development
> > joel at OARcorp.com                 On-Line Applications Research
> > Ask me about RTEMS: a free RTOS  Huntsville AL 35805
> >    Support Available             (256) 722-9985
> >
> > ------------------------ Yahoo! Groups Sponsor ---------------------~-->
> > Tied to your PC? Cut Loose and
> > Stay connected with Yahoo! Mobile
> > http://us.click.yahoo.com/QBCcSD/o1CEAA/yigFAA/gWFolB/TM
> > ---------------------------------------------------------------------~->
> >
> > To unsubscribe from this group, send an email to:
> > oggonachip-unsubscribe at yahoogroups.com
> >
> >
> >
> > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
> >
> >
> >
> >

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985



More information about the users mailing list