MinGW prep of RTEMS 4.10.2

Andrei Chichak groups at chichak.ca
Sat Mar 3 05:58:21 UTC 2012


On 2012-February-26, at 5:22 PM, Chris Johns wrote:

> 
> The solution is simple. Copy the MinGW zlib.dll to zlib1.dll in the MinGW bin directory. You could and test I will add a note to the Wiki page.
> 

Okay, that worked. The file is kept in C:\MinGW\msys\1.0\lib\perl5\vendor_perl\5.8\msys\auto\Compress\Raw\Zlib\Zlib.dll



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.

Andrei

---------------------
Andrei Chichak

Systems Developer
CBF Systems Inc.
4-038 NINT INNOVATION CENTRE
11421 SASKATCHEWAN DRIVE
EDMONTON, ALBERTA
T6G 2M9
CANADA

Phone: 780-628-2072
Skype: andrei.chichak








-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20120302/c4fd7b9b/attachment.html>


More information about the users mailing list