Help with MinGW and 4.8 release candidate

Dirk Heinrichs dirk.heinrichs at online.de
Sat Jan 19 21:47:34 UTC 2008


Am Samstag, 19. Januar 2008 schrieb Dirk Heinrichs:
> Chris Johns <chrisj at ...> writes:
> > Joel Sherrill wrote:
> > > Spin the MinGW tools. :-D
> >
> > The build-17 tools are available for the RTEMS 4.8.
> >
> >   http://www.rtems.org/ftp/pub/rtems/windows/4.8/build-17/
>
> In my attempt to build RTEMS 4.7.99.2 with a self-built gcc 4.2.2
> toolchain, I just ran into the same error "conflicting types for
> 'gettimeofday'" when compiling libcsupport.
>
> The versions used for building the toolchain are:
>
> gcc 4.2.2
> binutils 2.18
> newlib 1.15.0
>
> with the following patches applied:
>
> binutils-2.18-rtems4.8-20071104.diff
> gcc-422-ada-20071206.diff
> gcc-core-4.2.2-rtems4.8-20071127.diff
> newlib-1.15.0-rtems4.8-20071221.diff
>
> Any hints what I could do to solve this?

Here's the error msg I get, just in case:

gmake[5]: Entering directory 
`/gentoo/build/build-rtems/i386-rtems4.8/c/pc686/cpukit/libcsupport'
i386-rtems4.8-gcc --pipe -DHAVE_CONFIG_H   -I.. -I../../cpukit/../../../pc686/lib/include  -Wall -fasm -mtune=pentiumpro -O2 -g -MT 
src/libcsupport_a-__gettod.o -MD -MP -MF 
src/.deps/libcsupport_a-__gettod.Tpo -c -o src/libcsupport_a-__gettod.o 
`test -f 'src/__gettod.c' || 
echo '../../../../../../rtems-4.7.99.2/c/src/../../cpukit/libcsupport/'`src/__gettod.c
../../../../../../rtems-4.7.99.2/c/src/../../cpukit/libcsupport/src/__gettod.c:40: 
error: conflicting types for 'gettimeofday'
/opt/stow/gcc-4.2.2/bin/../lib/gcc/i386-rtems4.8/4.2.2/../../../../i386-rtems4.8/include/sys/time.h:73: 
error: previous declaration of 'gettimeofday' was here
gmake[5]: *** [src/libcsupport_a-__gettod.o] Error 1
gmake[5]: Leaving directory 
`/gentoo/build/build-rtems/i386-rtems4.8/c/pc686/cpukit/libcsupport'

Bye...

	Dirk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.rtems.org/pipermail/users/attachments/20080119/3edecbc6/attachment-0001.bin>


More information about the users mailing list