Bug 4962 - GCC 3.0.2 don't builds in Tru64 Unix V5.1A
Summary: GCC 3.0.2 don't builds in Tru64 Unix V5.1A
Status: RESOLVED DUPLICATE of bug 2
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 3.0.2
: P3 normal
Target Milestone: ---
Assignee: Rainer Orth
URL:
Keywords: wrong-code
Depends on:
Blocks:
 
Reported: 2001-11-28 11:16 UTC by jcblanco
Modified: 2003-06-12 00:15 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jcblanco 2001-11-28 11:16:00 UTC
The build process of GCC 3.0.2 don't works, I think that
the problem is a incompatibility between the GCC suplied
va_list.h and the "fixed" stdio.h.

The va_list.h defines the "va_list" type, however stdio.h
tries to use a "__va_list" type, the reason was thsubstitution
of all ocurrences of "VA_LIST" to "DUMMY_VA_LIST" in the
stdio.h file.

The use of the "va_list" type in stdio depends on the
definition of the "_VA_LIST" macro in va_list.h, however
is checked as "_DUMMY_VA_LIST" in stdio.h, and obviously
not found.

Release:
GCC V3.0.2

Environment:
Tru64 Unix V5.1A with GCC 2.95.3 working copied from a
Tru64 Unix V5.1 system

How-To-Repeat:
Building the GCC 3.0.2 distribution in a Tru64 Unix, also
building any other program that uses the stdio.h.
Comment 1 jcblanco 2001-11-28 11:16:00 UTC
Fix:
I've workaround the problem changing the pattern of the
substitution in the "fixinc" phase from "VA_LIST/DUMMY_VA_LIST" to
"VA_LIST_/DUMMY_VA_LIST_" in the files fixinc.ptx,
fixincl.x and inclhack.def in the gcc/fixinc directory,
Don't know if the correct solution but seems to work for me.
Comment 2 Rainer Orth 2001-11-28 13:57:51 UTC
Responsible-Changed-From-To: unassigned->ro
Responsible-Changed-Why: Mine.
Comment 3 Rainer Orth 2001-11-28 13:57:51 UTC
*** This bug has been marked as a duplicate of 2 ***
Comment 4 Rainer Orth 2001-11-28 21:57:51 UTC
From: ro@gcc.gnu.org
To: gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org,
  jcblanco@fi.upm.es, nobody@gcc.gnu.org, ro@gcc.gnu.org
Cc:  
Subject: Re: target/4962: GCC 3.0.2 don't builds in Tru64 Unix V5.1A
Date: 28 Nov 2001 21:57:51 -0000

 Synopsis: GCC 3.0.2 don't builds in Tru64 Unix V5.1A
 
 Responsible-Changed-From-To: unassigned->ro
 Responsible-Changed-By: ro
 Responsible-Changed-When: Wed Nov 28 13:57:51 2001
 Responsible-Changed-Why:
     Mine.
 State-Changed-From-To: open->closed
 State-Changed-By: ro
 State-Changed-When: Wed Nov 28 13:57:51 2001
 State-Changed-Why:
     Duplicate of PR libf2c/4826.  See
     
     http://gcc.gnu.org/ml/gcc-patches/2001-11/msg01735.html
     
     for a proposed patch.  I'm awaiting full testsuite results
     for this patch, which hopefully will make it acceptable for
     GCC 3.0.3.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4962&database=gcc