bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

config.guess, hpux 11.11, "cc -E -" prints an error message


From: Michael Chastain
Subject: config.guess, hpux 11.11, "cc -E -" prints an error message
Date: Sun, 29 Aug 2004 06:45:25 -0400
User-agent: nail 10.8 6/28/04

[Previously sent: 2004-08-17]

Hello,

Here is a bug report and a patch for config.guess.

On hpux 11.11 with the hp ansi c compiler, config.guess prints:

  address@hidden sh config.guess.2004-06-11
  cpp: "", line 0: error 4021: Unable to stat .
  hppa2.0w-hp-hpux11.11

The second line is correct, but the first line is an extraneous error
message.  The preprocessor prints this error message because
config.guess runs "$CC_FOR_BUILD -E -".

This happens with hp ansi c B.11.11.30766.GP.  It did not happen with
two earlier compilers, hp ansi c B.11.11.28706.GP and hp ansi c
A.11.01.25171.GP.

The fix is simple: replace "$CC_FOR_BUILD -E -" with
"$CC_FOR_BUILD -E $dummy.c".  I've included a patch.

Tested on:

  hpux 11.00 with hp ansi c A.11.01.25171.GP
  hpux 11.11 with hp ansi c B.11.11.28706.GP
  hpux 11.11 with hp ansi c B.11.11.30766.GP

I have copyright assignments on file for gcc, gdb, and binutils.
Let me know if you need a copyright assignment for config.

Also there is one other instance of "$CC_FOR_BUILD -E -" in
config.guess, in the NetBSD code.  Let me know if you want a patch for
that too.  I have one i386-unknown-netbsdelf1.6 machine for testing.

Michael Chastain

===

2004-08-17  Michael Chastain  <address@hidden>

        * config.guess (9000/[34678]??:HP-UX:*:*): Run preprocessor
        on $dummy.c, not standard input.  This fixes a problem with
        hp ansi c B.11.11.30766.GP .

*** config.guess.2004-08-13     2004-08-17 04:43:23.000000000 -0400
--- config.guess        2004-08-17 04:48:23.000000000 -0400
*************** EOF
*** 647,653 ****
        then
            # avoid double evaluation of $set_cc_for_build
            test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
!           if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ 
>/dev/null
            then
                HP_ARCH="hppa2.0w"
            else
--- 647,654 ----
        then
            # avoid double evaluation of $set_cc_for_build
            test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
!           echo "__LP64__" > $dummy.c
!           if (CCOPTS= $CC_FOR_BUILD -E $dummy.c) | grep __LP64__ >/dev/null
            then
                HP_ARCH="hppa2.0w"
            else




reply via email to

[Prev in Thread] Current Thread [Next in Thread]