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]

Re: 19981101 snapshot fails install on HPUX-10.20 - patch included


Jeffrey A Law wrote:
> 
>   In message <3640BFAB.4BAB1BC5@nortel.ca>you write:
>   > Fortran portion of the install fails while trying to build ansify.c.  I
>   > went back to look at egcs-1.1 and the same problem appears to be there
>   > as well.  The following patch fixes ansify.c, but the install still
>   > fails.  /usr/bin/cc doesn't like prototypes in main() without the -Aa
>   > flag and this seems easier:
> Why is ansify.c being compiled with any compiler other than gcc?

Here is the relevant rule in the <build>/gcc/Makefile:

$(srcdir)/f/intdoc.texi: f/intdoc.c f/intdoc.in f/ansify.c f/intrin.def
f/intrin
.h
        case "$(LANGUAGES)" in \
          *[fF]77*) touch lang-f77;; \
          *) rm -f lang-f77;; \
        esac
        if [ -f lang-f77 ]; then \
          $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) $(INCLUDES) \
           `echo $(srcdir)/f/ansify.c | sed 's,^\./,,'` -o f/ansify; \
          f/ansify < $(srcdir)/f/intdoc.in > f/intdoc.h0
$(srcdir)/f/intdoc.in; 
\
          $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) $(INCLUDES) -I./f \
           `echo $(srcdir)/f/intdoc.c | sed 's,^\./,,'` -o f/intdoc; \
          f/intdoc > $(srcdir)/f/intdoc.texi; \
          rm f/intdoc f/ansify f/intdoc.h0; \
        else true; fi

Further up in the makefile, we have 

# Prefix to apply to names of object files when compiling them
# to run on the machine we are compiling on.
# The default for this variable is chosen to keep these rules 
# out of the way of the other rules for compiling the same source files.
HOST_PREFIX_1=loser-
HOST_CC=$(CC)
HOST_CFLAGS=$(ALL_CFLAGS)

$(CC) is /usr/bin/cc

Is configure not building the right Makefile?

-- 
Jerry Quinn                             Tel: (514) 761-8737
jquinn@nortel.ca                        Fax: (514) 761-8505
Speech Recognition Research


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