Buildroot & Cygwin problem

Paul Blacquiere blacq at slingshot.co.nz
Fri Feb 24 03:10:45 UTC 2006


Hi,

I am attempting to run buildroot under cygwin (mainly to get the toolchain). I
am using a buildroot snapshot from 20060223, with uClibc, & GDB set to daily
snapshot, Linux = 2.6.12, GCC = 2.4.5, binutil2 = 2.16.91.0.5, Arm 922T, and
developers package selection.

make crashes with the following error:

make[1]: Entering directory `/opt/buildroot/toolchain_build_arm/uClibc/utils'
gcc ../utils/readelf.c  -o ../utils/readelf.host  -Wl,-s  -O2 -Wall -include
../include/elf.h
In file included from /usr/include/elf.h:18,
                 from ../utils/readelf.c:41:
/usr/include/sys/elf32.h:38: error: conflicting types for 'Elf32_Addr'
./../include/elf.h:48: error: previous declaration of 'Elf32_Addr' was here
/usr/include/sys/elf32.h:40: error: conflicting types for 'Elf32_Off'
./../include/elf.h:52: error: previous declaration of 'Elf32_Off' was here
/usr/include/sys/elf32.h:42: error: conflicting types for 'Elf32_Word'
./../include/elf.h:36: error: previous declaration of 'Elf32_Word' was here
/usr/include/sys/elf32.h:65: error: conflicting types for 'Elf32_Ehdr'
./../include/elf.h:84: error: previous declaration of 'Elf32_Ehdr' was here
/usr/include/sys/elf32.h:83: error: conflicting types for 'Elf32_Shdr'
./../include/elf.h:380: error: previous declaration of 'Elf32_Shdr' was here
/usr/include/sys/elf32.h:98: error: conflicting types for 'Elf32_Phdr'
./../include/elf.h:643: error: previous declaration of 'Elf32_Phdr' was here
/usr/include/sys/elf32.h:110: error: conflicting types for 'Elf32_Dyn'
./../include/elf.h:735: error: previous declaration of 'Elf32_Dyn' was here
/usr/include/sys/elf32.h:120: error: conflicting types for 'Elf32_Rel'
./../include/elf.h:592: error: previous declaration of 'Elf32_Rel' was here
/usr/include/sys/elf32.h:127: error: conflicting types for 'Elf32_Rela'
./../include/elf.h:612: error: previous declaration of 'Elf32_Rela' was here
/usr/include/sys/elf32.h:147: error: conflicting types for 'Elf32_Sym'
./../include/elf.h:483: error: previous declaration of 'Elf32_Sym' was here
In file included from /usr/include/elf.h:19,
                 from ../utils/readelf.c:41: And so on......

Comparing the /usr/include/sys directory between cygwin & my Linux box shows the
cygwin has a bunch of elfxxx.h files, that are not on the Linux box.

If this sparks a recollection for anyone, I would love to hear it.

Cheers


PaulB.




More information about the uClibc mailing list