This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug bootstrap/9989] [HPUX 11.00, gcc 3.3] fixing of stdio.h fails


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9989



------- Additional Comments From stefan dot rupp at inform-ac dot com  2003-06-27 14:33 -------
Subject: Re:  [HPUX 11.00, gcc 3.3] fixing of stdio.h
 fails

Good afternoon,

dhazeghi at yahoo dot com schrieb:
> ------- Additional Comments From dhazeghi at yahoo dot com  2003-06-21 00:45 -------
> A reminder that this bug is in waiting. Can the submitter please explain where the #include 
> <varargs.h> is coming from, as Dave requested? Thanks.

I just had the chance to retry the build on an HP machine and got the 
following error message while building:

-----------------------------------------------------------------------
mkdir libgcc
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
./xgcc -B./ -B/CONN/TESYS/TOOLS/hppa2.0w-hp-hpux11.00/bin/ -isystem 
/CONN/TESYS/TOOLS/hppa2.0w-hp-hpux11.00/include -isystem 
/CONN/TESYS/TOOLS/hppa2.0w-h\
p-hpux11.00/sys-include -O2  -DIN_GCC    -W -Wall -Wwrite-strings 
-Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -fPIC -g 
-DIN_LIBGCC2 -D_\
_GCC_FLOAT_NOT_NEEDED  -I. -I. -I. -I./. -I./config -I./../include 
-DL_muldi3 -c ./libgcc2.c -o libgcc/./_muldi3.o
In file included from include/stdio.h:429,
                  from tsystem.h:72,
                  from libgcc2.c:37:
include/varargs.h:4:2: #error "GCC no longer implements <varargs.h>."
include/varargs.h:5:2: #error "Revise your code to use <stdarg.h>."
-----------------------------------------------------------------------

I've configured with

./configure --prefix=/CONN/TESYS/TOOLS 
--with-local-prefix=/CONN/TESYS/TOOLS 
--with-libiconv-prefix=/CONN/TESYS/TOOLS 
--enable-version-specific-runtime-libs --enable-languages=c,c++ --with-gnu-as

and built with

make CC=gcc bootstrap

The line reported (429) is the last #include line of the following 
excerpt (in gcc/include/stdio.h):

-----------------------------------------------------------------------
#   ifndef __GNUC__
#    ifdef __hp9000s300
#      ifndef _DUMMY_VA_LIST
#        define _DUMMY_VA_LIST
          typedef char *__not_va_list__;
#      endif  /* _DUMMY_VA_LIST */
#    endif /* __hp9000s300 */

#    ifdef __hp9000s800
#      ifndef _DUMMY_VA_LIST
#        define _DUMMY_VA_LIST
_NAMESPACE_STD_START
          typedef double *__not_va_list__;
_NAMESPACE_STD_END
#      endif  /* _DUMMY_VA_LIST */
#    endif /* __hp9000s800 */
#   else
#    include <varargs.h>
#   endif
-----------------------------------------------------------------------

In another reply John David Angli wrote that I should see the lines

     #ifndef FIXINC_WRAP_STDIO_H_STDIO_STDARG_H
     #define FIXINC_WRAP_STDIO_H_STDIO_STDARG_H 1

     #define __need___va_list
     #include <stdarg.h>

near the beginning of the fixed stdio.h and in fact I do see these lines, 
but the #include <varargs.h> is still in there as well. It comes from 
/usr/include/stdio.h line 415.

Is there any more information I can provide?

Regards,
Stefan


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