[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: va_copy error [Was Re: Make Problem - parse error before "const"]
From: |
Gary V. Vaughan |
Subject: |
Re: va_copy error [Was Re: Make Problem - parse error before "const"] |
Date: |
Mon, 5 May 2008 21:42:26 -0400 |
Hi Joseph,
On 5 May 2008, at 19:40, Joseph Maxwell wrote:
Gary V. Vaughan wrote:
Yes indeed! Joseph please attach version-etc.pp.gz as generated by
the
following to your next reply:
$ cd src
$ gcc -I. -E version-etc.c | gzip -c > version-etc.pp.gz
I am taking 'src' as been /usr/local/appl/gnu/m4/m4-1.4.11/lib , the
location of my version-etc.c files as there is no version-etc.c
in my /usr/local/appl/gnu/m4/m4-1.4.11/src directory. The gzipped
file is attached.
Here's what I get around the offending lines with both gcc-3.4.3 and
gcc-4.2.3 on
mips-sgi-irix6.5:
while (__builtin_va_arg(tmp_authors,const char *) != 0L)
++n_authors;
And with MIPSpro 7.4.4m cc -E on the same machine:
while (((const char * *)(void *)( tmp_authors = ( va_list)
(( ( ((__va_iptr_
t)tmp_authors)+((__NO_CFOLD_WARNING( (__builtin_alignof(const char *)
> 8) ? (__
va_iptr_t)__builtin_alignof(const char *) : (__va_iptr_t)8 ))-1) ) & (-
(__NO_CFO
LD_WARNING( (__builtin_alignof(const char *) > 8) ?
(__va_iptr_t)__builtin_align
of(const char *) : (__va_iptr_t)8 ))) )+
(__NO_CFOLD_WARNING( ((__builtin_classof
(const char *) == 0) && (sizeof(const char *) < 8)) ? 8-sizeof(const
char *) : 0
))+sizeof(const char *)) )) [-1] != 0L)
++n_authors;
Where in the gcc -E output you sent me, I see:
while (((const char * *)(void *)( tmp_authors = ( va_list)
(( ( ((__va_iptr_
t)tmp_authors)+((__NO_CFOLD_WARNING( (__builtin_alignof(const char *)
> 8) ? (__
va_iptr_t)__builtin_alignof(const char *) : (__va_iptr_t)8 ))-1) ) & (-
(__NO_CFO
LD_WARNING( (__builtin_alignof(const char *) > 8) ?
(__va_iptr_t)__builtin_align
of(const char *) : (__va_iptr_t)8 ))) )+
(__NO_CFOLD_WARNING( ((__builtin_classof
(const char *) == 0) && (sizeof(const char *) < 8)) ? 8-sizeof(const
char *) : 0 ))+sizeof(const char *)) )) [-1] != 0L)
++n_authors;
So it looks very much like you're somehow feeding the output of the
MIPSpro preprocessor to your gcc . I'd say you need to reinstall gcc
and try again.
Cheers,
Gary
--
())_. Email me: address@hidden
( '/ Read my blog: http://blog.azazil.net
/ )= ...and my book: http://sources.redhat.com/autobook
`(_~)_
PGP.sig
Description: This is a digitally signed message part