This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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

problem with va_list


hi

i try to build a crosscompiler (gcc 2.52.2) for a mips-nec-sysv4.2MP on a
sun (solaris 2.6).  i got follow error:
-----------
make[1]: Entering directory `/user/bminks/crossgcc/build/gcc.5/mips-dde-sysv4.2M
P/libiberty'
test x"no" != xyes || \
  /user/bminks/crossgcc/build/gcc.5/gcc/xgcc -B/user/bminks/crossgcc/build/gcc.5
/gcc/ -B/user/bminks/crossgcc/tests/test8/mips-dde-sysv4.2MP/bin/ -c -DHAVE_CONF
IG_H -g -O2 -I. -I../../../../src/gcc-2.95.2/libiberty/../include   ../../../../
src/gcc-2.95.2/libiberty/vasprintf.c -o pic/vasprintf.o
/user/bminks/crossgcc/build/gcc.5/gcc/xgcc -B/user/bminks/crossgcc/build/gcc.5/g
cc/ -B/user/bminks/crossgcc/tests/test8/mips-dde-sysv4.2MP/bin/ -c -DHAVE_CONFIG
_H -g -O2 -I. -I../../../../src/gcc-2.95.2/libiberty/../include  ../../../../src
/gcc-2.95.2/libiberty/vasprintf.c
In file included from ../../../../src/gcc-2.95.2/libiberty/vasprintf.c:26:
/user/bminks/crossgcc/build/gcc.5/gcc/include/stdio.h:135: parse error before `)
'
...
----

stdio.h at line 135:
extern int      vfprintf(FILE *, const char *, _VA_LIST);

i tried some with _VA_LIST and the result is, that _VA_LIST is defined,
but it seems to be emtpy.

has anybody a solution for this problem?

cu bernhard minks

#!/usr/bin/perl -iake_one_down_pass_it_around:_bottles_of_beer:_on_the_wall:99
for(($t,$a,$b,$i)=split/:/,$^I;$i;print){$_="-$i$a$b,-$i$a,-T$t,-".--$i."$a$b";
s/(-1_.*?e)s/$1/g;y/_-/ \n/} #     by Randolph Chung and Joey Hess


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