public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: willic3@rpi.edu
To: gcc-gnats@gcc.gnu.org
Subject: preprocessor/10022: Preprocessor failure when using '-MMD' flag with gcc 3.1 on Mac OSX
Date: Mon, 10 Mar 2003 19:16:00 -0000	[thread overview]
Message-ID: <20030310191407.25190.qmail@sources.redhat.com> (raw)


>Number:         10022
>Category:       preprocessor
>Synopsis:       Preprocessor failure when using '-MMD' flag with gcc 3.1 on Mac OSX
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 10 19:16:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Charles Williams
>Release:        Apple Computer, Inc. GCC version 1175, based on gcc version 3.1 20020420 (prerelease)
>Organization:
>Environment:
Mac OSX 10.2.4, 350 MHz G3, 896 MB RAM, 12 GB HD
>Description:
When attempting to compile a simple example using the '-MMD' flag for gcc 3.1, no output is produced and the preprocessor exits with an error.  This does not happen with either g77 (installed via fink), g++, or gcc2 (2.95.2) on my Mac, or with gcc 3.0.3 on Sparc Solaris 2.8, or with gcc 3.2.1 on an Athlon 2000+ running RedHat 7.3.  The similar '-MD' flag works correctly using gcc 3.1 on the Mac.  It appears that the preprocessor is attempting to read the object file (which does not yet exist).  It does not matter whether the source file has non-system include files (which would be listed in the '.d' file).  I have the same problem on my Pismo PowerBook as on the machine described here.  Please let me know if this bug should be filed with Apple rather than GNU.  Pasted below are the compiler messages when attempting to compile a simple example:

gcc -v -save-temps -MMD -fPIC -c -o c_hello.o c_hello.c
Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
Thread model: posix
Apple Computer, Inc. GCC version 1175, based on gcc version 3.1 20020420 (prerelease)
 /usr/libexec/gcc/darwin/ppc/cpp-precomp -smart -arch ppc -lang-c -v -MMD c_hello.d -MQ c_hello.o -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -D__APPLE_CC__=1175 -D__ppc__ -D__POWERPC__ -D__NATURAL_ALIGNMENT__ -D__MACH__ -D__BIG_ENDIAN__ -D__APPLE__ -D__ppc__ -D__POWERPC__ -D__NATURAL_ALIGNMENT__ -D__MACH__ -D__BIG_ENDIAN__ -D__APPLE__ -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D__DYNAMIC__ c_hello.c -isystem /usr/include/gcc/darwin/3.1 -ispecs=/usr/libexec/gcc/darwin/ppc/3.1/specs -D__SIZE_TYPE__=long unsigned int -D__PTRDIFF_TYPE__=int -D__WCHAR_TYPE__=int -D__WINT_TYPE__=unsigned int c_hello.i
Apple cpp-precomp 6.14 (devkit-213/devkit_tools-214)
cpp-precomp: could not open 'c_hello.o'

>How-To-Repeat:
Compile a simple sample code using the '-MMD' flag.
>Fix:
Use the older compiler (2.95.2) or, in some cases, use g++.
>Release-Note:
>Audit-Trail:
>Unformatted:


             reply	other threads:[~2003-03-10 19:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-10 19:16 willic3 [this message]
2003-03-26 16:22 neil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030310191407.25190.qmail@sources.redhat.com \
    --to=willic3@rpi.edu \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).