__getpid.c & pid_t

Joel Sherrill joel.sherrill at OARcorp.com
Wed Feb 12 15:27:13 UTC 2003



Salman wrote:
> 
> I'm stuck at this error message here, no matter what I do :(
> 
> gcc --pipe -isystem ../../../.././pc386/lib/include -DHAVE_CONFIG_H
^^^^^^

You are not using the correct compiler.  This is the native compiler not
the i386-rtems compiler.


> -Isrc       -O4 -g -Wall  -o o-optimize/__getpid.o -c
> ../../../../../../rtems/c/src/../../cpukit/libcsupport/src/__getpid.c
> ../../../../../../rtems/cpukit/libcsupport/src/__getpid.c:14: parse error before "__getpid"
> ../../../../../../rtems/cpukit/libcsupport/src/__getpid.c:15: warning: return type defaults to `int'
> gmake[4]: *** [o-optimize/__getpid.o] Error 1
> gmake[4]: Leaving directory `/home/salman/work/build/i386-rtems/c/pc386/exec/libcsupport'
> gmake[3]: *** [all-recursive] Error 1
> gmake[3]: Leaving directory `/home/salman/work/build/i386-rtems/c/pc386/exec'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory `/home/salman/work/build/i386-rtems/c/pc386'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/home/salman/work/build/i386-rtems/c'
> make: *** [all-recursive] Error 1
> 
> i think it's giving out about "pid_t" which is a type defined within gcc.
> I'm using latest rtems build tools and gnu build utils. and /opt/rtems/bin is prepended to my environmental path.
> 
> anyone with similar experience?
> 
> NB i hope this is not the cause, but my native gcc is version 3.2.2 (i386-rtems-gcc is version 3.2.1)
> 
> Salman

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