This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: gcc and djgpp problem


Hi,
I'm new to cygwin and gcc and I'm trying to cross compile some code to
generate Ms-DOS executables. I followed the procedures described in the
DJGPP website (http://www.delorie.com/howto/djgpp/linux-x-djgpp.html) but I
keep getting an error when I build gcc-3.1.1-4 under the latest cygwin that
has something to do with a conflicting va_list':

if [ x"" != x ]; then \
  /usr/src/djgpp/gcc/gcc/xgcc -B/usr/src/djgpp/gcc/gcc/
-B/usr/local/i586-pc-msdosdjgpp/bin/ -B/usr/local/i586-pc-msdosdjgpp/lib/
-isystem /usr/local/i586-pc-msdosdjgpp/include -c -DHAVE_CONFIG_H -g -O2 -I.
-I../../../gcc-3.1.1-4/libiberty/../include  -W -Wall -Wtraditional
-pedantic  ../../../gcc-3
.1.1-4/libiberty/cplus-dem.c -o pic/cplus-dem.o; \
else true; fi
/usr/src/djgpp/gcc/gcc/xgcc -B/usr/src/djgpp/gcc/gcc/
-B/usr/local/i586-pc-msdosdjgpp/bin/ -B/usr/local/i586-pc-msdosdjgpp/lib/
-isystem /usr/local/i586-pc-msdosdjgpp/include -c -DHAVE_CONFIG_H -g -O2 -I.
-I../../../gcc-3.1.1-4/libiberty/../include  -W -Wall -Wtraditional
-pedantic ../../../gcc-3.1.
1-4/libiberty/cplus-dem.c
In file included from ../../../gcc-3.1.1-4/include/libiberty.h:48,
                 from ../../../gcc-3.1.1-4/libiberty/cplus-dem.c:54:
/usr/src/djgpp/gcc/gcc/include/stdarg.h:111: conflicting types for `va_list'
/usr/local/i586-pc-msdosdjgpp/include/stdio.h:35: previous declaration of
`va_list'
make[1]: *** [cplus-dem.o] Error 1
make[1]: Leaving directory `/usr/src/djgpp/gcc/i586-pc-msdosdjgpp/libiberty'
make: *** [all-target-libiberty] Error 2

Could someone help me please?

Thanks

 
Alessandro Di Bella
Software Developer
Blackpearl EU
Unit 20a, Becket Way Park West Business Park
Duiblin 12 - Ireland
Tel +353 1 6166715
Fax +353 1 6166711


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]