public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/14315] New: Java compiler is not parallel make safe
@ 2004-02-27  1:40 hjl at lucon dot org
  2004-02-27  1:52 ` [Bug java/14315] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: hjl at lucon dot org @ 2004-02-27  1:40 UTC (permalink / raw)
  To: gcc-bugs

During bootstrap on a SMP machine, I got

/export/build/gnu/gcc-3.4-ia32e/build-ia32e-linux/gcc/gcj
-B/export/build/gnu/gcc-3.4-ia32e/build-ia32e-linux/ia32e-linux/libjava/
-B/export/build/gnu/gcc-3.4-ia32e/build-ia32e-linux/gcc/ --encoding=UTF-8
-Wno-deprecated -C -g -classpath '' -bootclasspath
/export/build/gnu/gcc-3.4-ia32e/build-ia32e-linux/ia32e-linux/libjava:/net/gnu/export/gnu/src/gcc-3.4/gcc/libjava
-d /export/build/gnu/gcc-3.4-ia32e/build-ia32e-linux/ia32e-linux/libjava
/net/gnu/export/gnu/src/gcc-3.4/gcc/libjava/java/util/regex/Pattern.java
/net/gnu/export/gnu/src/gcc-3.4/gcc/libjava/java/util/regex/Pattern.java: In
class `java.util.regex.Pattern':
/net/gnu/export/gnu/src/gcc-3.4/gcc/libjava/java/util/regex/Pattern.java: In
method `<clinit>()':
/net/gnu/export/gnu/src/gcc-3.4/gcc/libjava/java/util/regex/Pattern.java:1:
fatal error: can't create directory
/export/build/gnu/gcc-3.4-ia32e/build-ia32e-linux/ia32e-linux/libjava/java/util/regex:
File exists
compilation terminated.

The problem is

  while (1)
    {
      char *s = strchr (dname, sep);
      if (s == NULL)
        break;
      *s = '\0';
      if (stat (r, &sb) == -1
          /* Try to make it.  */
          && mkdir (r, 0755) == -1)
        fatal_error ("can't create directory %s: %m", r);
                                                                                
      *s = sep;
      /* Skip consecutive separators.  */
      for (dname = s + 1; *dname && *dname == sep; ++dname)
        ;
   }

in jcf-write.c. 'r' can be created between stat and mkdir.

-- 
           Summary: Java compiler is not parallel make safe
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl at lucon dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14315


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug java/14315] Java compiler is not parallel make safe
  2004-02-27  1:40 [Bug java/14315] New: Java compiler is not parallel make safe hjl at lucon dot org
@ 2004-02-27  1:52 ` pinskia at gcc dot gnu dot org
  2004-03-03 16:12 ` hjl at lucon dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-27  1:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-02-27 01:52 -------
confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-02-27 01:52:52
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14315


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug java/14315] Java compiler is not parallel make safe
  2004-02-27  1:40 [Bug java/14315] New: Java compiler is not parallel make safe hjl at lucon dot org
  2004-02-27  1:52 ` [Bug java/14315] " pinskia at gcc dot gnu dot org
@ 2004-03-03 16:12 ` hjl at lucon dot org
  2004-03-23 17:49 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hjl at lucon dot org @ 2004-03-03 16:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hjl at lucon dot org  2004-03-03 16:12 -------
The proposed patch works for me.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14315


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug java/14315] Java compiler is not parallel make safe
  2004-02-27  1:40 [Bug java/14315] New: Java compiler is not parallel make safe hjl at lucon dot org
  2004-02-27  1:52 ` [Bug java/14315] " pinskia at gcc dot gnu dot org
  2004-03-03 16:12 ` hjl at lucon dot org
@ 2004-03-23 17:49 ` pinskia at gcc dot gnu dot org
  2004-03-23 17:54 ` cvs-commit at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-23 17:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-23 17:49 -------
Patch posted here: <http://gcc.gnu.org/ml/gcc-patches/2004-03/msg01935.html>.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |java-prs at gcc dot gnu dot
                   |                            |org
           Keywords|                            |patch


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14315


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug java/14315] Java compiler is not parallel make safe
  2004-02-27  1:40 [Bug java/14315] New: Java compiler is not parallel make safe hjl at lucon dot org
                   ` (2 preceding siblings ...)
  2004-03-23 17:49 ` pinskia at gcc dot gnu dot org
@ 2004-03-23 17:54 ` cvs-commit at gcc dot gnu dot org
  2004-03-23 17:55 ` tromey at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-23 17:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-03-23 17:54 -------
Subject: Bug 14315

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	tromey@gcc.gnu.org	2004-03-23 17:54:03

Modified files:
	gcc/java       : ChangeLog jcf-write.c 

Log message:
	PR java/14315:
	* jcf-write.c (make_class_file_name): Don't report if mkdir
	failed with EEXIST.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&r1=1.1347&r2=1.1348
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/jcf-write.c.diff?cvsroot=gcc&r1=1.141&r2=1.142



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14315


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug java/14315] Java compiler is not parallel make safe
  2004-02-27  1:40 [Bug java/14315] New: Java compiler is not parallel make safe hjl at lucon dot org
                   ` (3 preceding siblings ...)
  2004-03-23 17:54 ` cvs-commit at gcc dot gnu dot org
@ 2004-03-23 17:55 ` tromey at gcc dot gnu dot org
  2004-04-27 18:13 ` [Bug java/14315] [3.4]: " hjl at lucon dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at gcc dot gnu dot org @ 2004-03-23 17:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tromey at gcc dot gnu dot org  2004-03-23 17:55 -------
Fix checked in on trunk.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14315


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug java/14315] [3.4]: Java compiler is not parallel make safe
  2004-02-27  1:40 [Bug java/14315] New: Java compiler is not parallel make safe hjl at lucon dot org
                   ` (4 preceding siblings ...)
  2004-03-23 17:55 ` tromey at gcc dot gnu dot org
@ 2004-04-27 18:13 ` hjl at lucon dot org
  2004-04-27 18:27 ` [Bug java/14315] [3.4 only]: " pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hjl at lucon dot org @ 2004-04-27 18:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hjl at lucon dot org  2004-04-27 18:04 -------
Can we backport this patch to 3.4?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |
            Summary|Java compiler is not        |[3.4]: Java compiler is not
                   |parallel make safe          |parallel make safe


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14315


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug java/14315] [3.4 only]: Java compiler is not parallel make safe
  2004-02-27  1:40 [Bug java/14315] New: Java compiler is not parallel make safe hjl at lucon dot org
                   ` (5 preceding siblings ...)
  2004-04-27 18:13 ` [Bug java/14315] [3.4]: " hjl at lucon dot org
@ 2004-04-27 18:27 ` pinskia at gcc dot gnu dot org
  2004-05-21 14:30 ` cvs-commit at gcc dot gnu dot org
  2004-05-21 14:47 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-27 18:27 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[3.4]: Java compiler is not |[3.4 only]: Java compiler is
                   |parallel make safe          |not parallel make safe
   Target Milestone|---                         |3.4.1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14315


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug java/14315] [3.4 only]: Java compiler is not parallel make safe
  2004-02-27  1:40 [Bug java/14315] New: Java compiler is not parallel make safe hjl at lucon dot org
                   ` (6 preceding siblings ...)
  2004-04-27 18:27 ` [Bug java/14315] [3.4 only]: " pinskia at gcc dot gnu dot org
@ 2004-05-21 14:30 ` cvs-commit at gcc dot gnu dot org
  2004-05-21 14:47 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-05-21 14:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-05-20 16:06 -------
Subject: Bug 14315

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	hjl@gcc.gnu.org	2004-05-20 16:06:14

Modified files:
	gcc/java       : ChangeLog jcf-write.c 

Log message:
	2004-05-20  H.J. Lu  <hongjiu.lu@intel.com>
	
	PR java/14315
	Backport from mainline:
	
	2004-03-23  Tom Tromey  <tromey@redhat.com>
	
	* jcf-write.c (make_class_file_name): Don't report if mkdir
	failed with EEXIST.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.1315.2.15&r2=1.1315.2.16
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/jcf-write.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.140&r2=1.140.4.1



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14315


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug java/14315] [3.4 only]: Java compiler is not parallel make safe
  2004-02-27  1:40 [Bug java/14315] New: Java compiler is not parallel make safe hjl at lucon dot org
                   ` (7 preceding siblings ...)
  2004-05-21 14:30 ` cvs-commit at gcc dot gnu dot org
@ 2004-05-21 14:47 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-21 14:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-20 16:11 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14315


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-05-20 16:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-27  1:40 [Bug java/14315] New: Java compiler is not parallel make safe hjl at lucon dot org
2004-02-27  1:52 ` [Bug java/14315] " pinskia at gcc dot gnu dot org
2004-03-03 16:12 ` hjl at lucon dot org
2004-03-23 17:49 ` pinskia at gcc dot gnu dot org
2004-03-23 17:54 ` cvs-commit at gcc dot gnu dot org
2004-03-23 17:55 ` tromey at gcc dot gnu dot org
2004-04-27 18:13 ` [Bug java/14315] [3.4]: " hjl at lucon dot org
2004-04-27 18:27 ` [Bug java/14315] [3.4 only]: " pinskia at gcc dot gnu dot org
2004-05-21 14:30 ` cvs-commit at gcc dot gnu dot org
2004-05-21 14:47 ` pinskia at gcc dot gnu dot org

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).