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

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