MinGW prep of RTEMS 4.10.2

Ralf Corsepius ralf.corsepius at rtems.org
Sat Mar 3 06:13:42 UTC 2012


On 03/03/2012 06:58 AM, Andrei Chichak wrote:
>
> On 2012-February-26, at 5:22 PM, Chris Johns wrote:

> Now, once the build gets down to trying to build adjtime.c, it runs into
> a bit of a problem. I have tried to build the av5282 BSP as well as the
> psim PowerPC BSP and they both blow at the same place.
>
> mv -f src/.deps/libposix_a-pspinunlock.Tpo
> src/.deps/libposix_a-pspinunlock.Po
> m68k-rtems4.11-gcc --pipe -DHAVE_CONFIG_H -I..
> -I../../cpukit/../../../av5282/lib/include -D__RTEMS_INSIDE__ -mcpu=528x
> -O2 -g -fomit-frame-pointe
> r -Wall -Wimplicit-function-declaration -Wstrict-prototypes
> -Wnested-externs -MT src/libposix_a-adjtime.o -MD -MP -MF
> src/.deps/libposix_a-adjtime.Tpo
> -c -o src/libposix_a-adjtime.o `test -f 'src/adjtime.c' || echo
> '../../../../../../rtems-4.10.2/c/src/../../cpukit/posix/'`src/adjtime.c
> ../../../../../../rtems-4.10.2/c/src/../../cpukit/posix/src/adjtime.c:42:6:
> error: conflicting types for 'adjtime'
> c:\opt\rtems-4.11\bin\../lib/gcc/m68k-rtems4.11/4.6.2/../../../../m68k-rtems4.11/include/sys/time.h:83:5:
> note: previous declaration of 'adjtime' was
> here
> make[5]: *** [src/libposix_a-adjtime.o] Error 1
> make[5]: Leaving directory
> `/c/opt/build/m68k-rtems4.11/c/av5282/cpukit/posix'
> make[4]: *** [all-recursive] Error 1
> make[4]: Leaving directory `/c/opt/build/m68k-rtems4.11/c/av5282/cpukit'
> make[3]: *** [all] Error 2
> make[3]: Leaving directory `/c/opt/build/m68k-rtems4.11/c/av5282/cpukit'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/c/opt/build/m68k-rtems4.11/c/av5282'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/c/opt/build/m68k-rtems4.11/c'
> make: *** [all-recursive] Error 1
>
> It looks like the first parameter of adjtime is declared as const in
> time.h and without const in adjtime.c.

You seem to be trying to build rtems4.10 with an rtems4.11 toolchain and 
now are hitting an incompatibility between both versions.

rtems4.10 and rtems4.11 are incompatible and need different toolchains. 
You can't build rtems4.10 with rtems4.11 toolchains.


For rtems4.11 you will want to use these packages:
ftp://ftp.rtems.org/pub/rtems/mingw32/4.11/

For rtems4.10 you will want to use these packages:
ftp://ftp.rtems.org/pub/rtems/mingw32/4.10/

Ralf




More information about the users mailing list