bug-make
[Top][All Lists]
Advanced

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

HP-UX and GCC 3.0 build issue


From: Steve Ellcey
Subject: HP-UX and GCC 3.0 build issue
Date: Tue, 1 May 2001 14:28:44 -0700 (PDT)

I was just building make with a pre-release 3.0 GCC and ran into an
interesting issue.  GCC 3.0 complains if you define a macro whose name
starts with "__STDC_" more then once.  This affects the build of make on
HP-UX because in acinclude.m4 there is a workaround to a GCC 2.95.1 bug.
GCC 2.95.1 doesn't define __STDC_EXT__ so the make configuration is
adding it to CFLAGS whenever you build with GCC on HP-UX.

GCC 2.95.2 does define this by default but gives no error when it is
defined twice so there is no problem.  GCC 3.0 also defines this and it
does gives a warning because when it sees two definitions (even if they
are identical).  These warnings cause the configuration to mess up.

I see two possible fixes for this, one would be to not do this if the
GCC version being used is 3.0 or higher, the other would be to just not
ever do it and assume anyone building make at this point with gcc is
using gcc 2.95.2 or higher in which case the workaround is not needed.

Could someone with write permission to make implement one of these
fixes?  Personally, I think we can assume anyone building make with GCC
has at version 2.95.2 (at least) and we should just yank the workaround
out.

Steve Ellcey
address@hidden



reply via email to

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