Bug 15082 - [4.0/4.1/4.2/4.3 regression] Minor compilation problem for cross to Solaris 8
Summary: [4.0/4.1/4.2/4.3 regression] Minor compilation problem for cross to Solaris 8
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: other (show other bugs)
Version: 3.4.0
: P5 normal
Target Milestone: 4.1.3
Assignee: Not yet assigned to anyone
URL:
Keywords: build
: 28097 28098 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-04-22 22:22 UTC by duz
Modified: 2007-12-18 20:15 UTC (History)
7 users (show)

See Also:
Host:
Target: *-*-solaris2.8
Build:
Known to work:
Known to fail: 3.4.1 4.0.0
Last reconfirmed: 2004-12-20 01:16:52


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description duz 2004-04-22 22:22:53 UTC
Actually, I'm building a cross compiler to target Solaris-2.8.
As this drags in the Solaris include files, I figure this error
might also happen when compiling on Solaris-2.8.

Anyway, the fix is simply to add line

    #include <limits.h> /* for PATH_MAX */

to

    gcc-3.4.0/gcc/config/sparc/gmon-sol2.c


/pub/unpacked/gcc-3.4.0/gcc/config/sparc/gmon-sol2.c:182: error: `PATH_MAX' unde
clared (first use in this function)
Comment 1 Eric Botcazou 2004-04-23 05:31:38 UTC
> Actually, I'm building a cross compiler to target Solaris-2.8.

You didn't provide enough information.  Please specify the host, the exact target,
the configure line, the 'make' command line and so on.  Also specify how much of
a cross-compilation environment is intalled on the host.

> As this drags in the Solaris include files, I figure this error
> might also happen when compiling on Solaris-2.8.

No, we wouldn't have shipped a compiler that doesn't build on Solaris 8.
Comment 2 Eric Botcazou 2004-04-28 20:26:17 UTC
Investigation at http://gcc.gnu.org/ml/gcc-patches/2004-04/msg01738.html .
Comment 3 Andrew Pinski 2004-05-04 15:38:16 UTC
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-05/msg00173.html>, this looks like a 
regression also.
Comment 4 Eric Botcazou 2004-06-03 08:01:26 UTC
Yes, it's a regression.
Comment 5 Mark Mitchell 2004-06-14 17:20:23 UTC
Eric, if this patch looks correct to you, would you please apply it?
Comment 6 Eric Botcazou 2004-06-14 18:41:46 UTC
> Eric, if this patch looks correct to you, would you please apply it?

Yes, it looks correct to me but I'm not familiar with the Makefile machinery. 
I'm going to ping Alexandre, who seems to be versed in the cross-compilation
business.
Comment 7 Eric Botcazou 2004-06-14 18:44:41 UTC
Hi Alexandre,

Would you mind reviewing the patch linked to from comment #3 in the audit trail
of this PR?  You will also find a discussion linked to from comment #2.

Thanks in advance.
Comment 8 Eric Botcazou 2004-06-21 14:15:19 UTC
Alexandre explained why the patch is not correct and suggested a solution:
http://gcc.gnu.org/ml/gcc-patches/2004-06/msg01646.html

The workaround is probably to create the missing directory before building the
cross-compiler.
Comment 9 Mark Mitchell 2004-06-21 14:26:31 UTC
Postponed until GCC 3.4.2.
Comment 10 Eric Botcazou 2004-07-10 20:11:15 UTC
The problem lies in the Makefile machinery.
Comment 11 Mark Mitchell 2004-08-29 18:57:43 UTC
Postponed until GCC 3.4.3.
Comment 12 Mark Mitchell 2004-11-01 00:46:32 UTC
Postponed until GCC 3.4.4.
Comment 13 Andrew Pinski 2005-07-22 21:13:47 UTC
Moving to 4.0.2 pre Mark.
Comment 14 Mark Mitchell 2005-10-30 22:23:33 UTC
We now have --build-sysroot, which ameliorates this situation.

(I don't fully understand Alexandre's suggestion, in the message linked from Comment #13.)

In any case, I've downgraded this to P5, as, although clearly desirable, building such a cross-compiler will not be release-critical.
Comment 15 Mark Mitchell 2005-10-30 22:33:26 UTC
Subject: Re:  [3.4/4.0/4.1 regression] Minor compilation
 problem for cross to Solaris 8

What's this "4.1blocker-" stuff about?  This certainly isn't a 4.1
blocker, and that information is already computable from the other
fields, as I've described.

Comment 16 Andrew Pinski 2005-10-30 22:36:45 UTC
(In reply to comment #15)
> Subject: Re:  [3.4/4.0/4.1 regression] Minor compilation
>  problem for cross to Solaris 8
> What's this "4.1blocker-" stuff about?  This certainly isn't a 4.1
> blocker, and that information is already computable from the other
> fields, as I've described.

Flags are better as we can have a requestor and only one group of people able to set the flag (you in this case).  So if I requested this should be a blocker, you can deny it without even being CC'd to the bug.  It is a little more automated than what fields do.  This is why I asked about flags.  Fields to me should not be used in this way.
Comment 17 Mark Mitchell 2005-10-30 22:38:57 UTC
Subject: Re:  [3.4/4.0/4.1 regression] Minor compilation
 problem for cross to Solaris 8

pinskia at gcc dot gnu dot org wrote:
> ------- Comment #16 from pinskia at gcc dot gnu dot org  2005-10-30 22:36 -------
> (In reply to comment #15)
> 
>>Subject: Re:  [3.4/4.0/4.1 regression] Minor compilation
>> problem for cross to Solaris 8
>>What's this "4.1blocker-" stuff about?  This certainly isn't a 4.1
>>blocker, and that information is already computable from the other
>>fields, as I've described.
> 
> 
> Flags are better as we can have a requestor and only one group of people able
> to set the flag (you in this case).  So if I requested this should be a
> blocker, you can deny it without even being CC'd to the bug.  It is a little
> more automated than what fields do.  This is why I asked about flags.  Fields
> to me should not be used in this way.

I don't think I agree.  Maybe I can be made to, but please drive this on
the GCC list, and get buy-in, rather than doing it unilaterally.  These
fields are tools for the RM, and all you're doing at the moment is
confusing me.

Comment 18 Andrew Pinski 2006-06-20 15:26:10 UTC
*** Bug 28097 has been marked as a duplicate of this bug. ***
Comment 19 Andrew Pinski 2006-06-20 15:46:27 UTC
*** Bug 28098 has been marked as a duplicate of this bug. ***
Comment 20 Gabriel Dos Reis 2007-01-18 02:54:07 UTC
Won't fix for GCC-4.0.x
Comment 21 Steven Bosscher 2007-12-18 20:15:52 UTC
After three years of deafening silence, I'm sure closing this as WONTFIX will perhaps ignite protests from anyone on the CC: list who still cares about this one.  Should that happen, I encourage the respected victim to get some motion in the process to resolve this bug :-)