public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/18532] [3.4 Regression] libgcc.mk isn't parallel build safe for multilib
       [not found] <bug-18532-682@http.gcc.gnu.org/bugzilla/>
@ 2005-10-07  3:36 ` gdr at gcc dot gnu dot org
  0 siblings, 0 replies; 10+ messages in thread
From: gdr at gcc dot gnu dot org @ 2005-10-07  3:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from gdr at gcc dot gnu dot org  2005-10-07 03:36 -------
Works in 4.0.x
WONTFIX for 3.4.x


-- 

gdr at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|3.4.5                       |4.0.3


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


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

* [Bug bootstrap/18532] [3.4 Regression] libgcc.mk isn't parallel build safe for multilib
  2004-11-17 18:55 [Bug bootstrap/18532] New: " hjl at lucon dot org
                   ` (7 preceding siblings ...)
  2005-08-03 17:12 ` ian at airs dot com
@ 2005-08-03 17:14 ` ian at airs dot com
  8 siblings, 0 replies; 10+ messages in thread
From: ian at airs dot com @ 2005-08-03 17:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ian at airs dot com  2005-08-03 17:14 -------
Oh, I see it now.  Your patch has a prev_extra to serialize building
EXTRA_MULTILIB_PARTS for all multilibs.  That avoids the problem with options.h.
 Mainline doesn't have that patch, and presumably doesn't need to serialize
building EXTRA_MULTILIB_PARTS.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
   Last reconfirmed|2005-03-03 03:08:23         |2005-08-03 17:14:37
               date|                            |


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


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

* [Bug bootstrap/18532] [3.4 Regression] libgcc.mk isn't parallel build safe for multilib
  2004-11-17 18:55 [Bug bootstrap/18532] New: " hjl at lucon dot org
                   ` (6 preceding siblings ...)
  2005-08-03 17:10 ` hjl at lucon dot org
@ 2005-08-03 17:12 ` ian at airs dot com
  2005-08-03 17:14 ` ian at airs dot com
  8 siblings, 0 replies; 10+ messages in thread
From: ian at airs dot com @ 2005-08-03 17:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ian at airs dot com  2005-08-03 17:12 -------
The patch you need is this one:
    http://gcc.gnu.org/ml/gcc-patches/2004-01/msg03130.html
I don't know how you are surviving without it.

The failing part of the build log is:

mips-elf-ar  rc soft-float/el/libgcov.a libgcc/soft-float/el/_gcov.o
libgcc/soft-float/el/_gcov_merge_add.o libgcc/soft-float/el/_gcov_merge_single.o
libgcc/soft-float/el/_gcov_merge_delta.o
mips-elf-ranlib soft-float/el/libgcov.a
make GCC_FOR_TARGET="/home/ian/gcc/gcc-3.4-mips-elf/gcc/xgcc
-B/home/ian/gcc/gcc-3.4-mips-elf/gcc/
-B/home/ian/gcc/mips-elf-install/mips-elf/bin/
-B/home/ian/gcc/mips-elf-install/mips-elf/lib/ -isystem
/home/ian/gcc/mips-elf-install/mips-elf/include -isystem
/home/ian/gcc/mips-elf-install/mips-elf/sys-include" \
  AR_FOR_TARGET="mips-elf-ar" \
  AR_CREATE_FOR_TARGET="mips-elf-ar  rc" \
  AR_EXTRACT_FOR_TARGET="mips-elf-ar  x" \
  AR_FLAGS_FOR_TARGET="" \
  CC="gcc" CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long  " \
  BUILD_PREFIX="" \
  BUILD_PREFIX_1="loser-" \
  LANGUAGES="" \
  LIBGCC2_CFLAGS="-O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem
./include  -G 0 -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc "  \
  MULTILIB_CFLAGS="" T= crtbegin.o crtend.o crti.o crtn.o
mips-elf-ranlib soft-float/el/libgcc.a
make GCC_FOR_TARGET="/home/ian/gcc/gcc-3.4-mips-elf/gcc/xgcc
-B/home/ian/gcc/gcc-3.4-mips-elf/gcc/
-B/home/ian/gcc/mips-elf-install/mips-elf/bin/
-B/home/ian/gcc/mips-elf-install/mips-elf/lib/ -isystem
/home/ian/gcc/mips-elf-install/mips-elf/include -isystem
/home/ian/gcc/mips-elf-install/mips-elf/sys-include" \
  AR_FOR_TARGET="mips-elf-ar" \
  AR_CREATE_FOR_TARGET="mips-elf-ar  rc" \
  AR_EXTRACT_FOR_TARGET="mips-elf-ar  x" \
  AR_FLAGS_FOR_TARGET="" \
  CC="gcc" CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long  " \
  BUILD_PREFIX="" \
  BUILD_PREFIX_1="loser-" \
  LANGUAGES="" \
  LIBGCC2_CFLAGS="-O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem
./include  -G 0 -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc
-msoft-float "  \
  MULTILIB_CFLAGS=" -msoft-float" T=soft-float/ soft-float/crtbegin.o
soft-float/crtend.o soft-float/crti.o soft-float/crtn.o
make[3]: Entering directory `/home/ian/gcc/gcc-3.4-mips-elf/gcc'
make[3]: Entering directory `/home/ian/gcc/gcc-3.4-mips-elf/gcc'
AWK=gawk /bin/sh ../../gcc-3.4/gcc/gcc/opts.sh \
               '/bin/sh ../../gcc-3.4/gcc/gcc/move-if-change' \
               options.c options.h ../../gcc-3.4/gcc/gcc/c.opt
../../gcc-3.4/gcc/gcc/common.opt
AWK=gawk /bin/sh ../../gcc-3.4/gcc/gcc/opts.sh \
               '/bin/sh ../../gcc-3.4/gcc/gcc/move-if-change' \
               options.c options.h ../../gcc-3.4/gcc/gcc/c.opt
../../gcc-3.4/gcc/gcc/common.opt
options.h is unchanged
options.c is unchanged
/home/ian/gcc/gcc-3.4-mips-elf/gcc/xgcc -B/home/ian/gcc/gcc-3.4-mips-elf/gcc/
-B/home/ian/gcc/mips-elf-install/mips-elf/bin/
-B/home/ian/gcc/mips-elf-install/mips-elf/lib/ -isystem
/home/ian/gcc/mips-elf-install/mips-elf/include -isystem
/home/ian/gcc/mips-elf-install/mips-elf/sys-include -O2 -DIN_GCC -DCROSS_COMPILE
  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include  -I. -Isoft-float
-I../../gcc-3.4/gcc/gcc -I../../gcc-3.4/gcc/gcc/soft-float
-I../../gcc-3.4/gcc/gcc/../include  -msoft-float -g0 -finhibit-size-directive
-fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss
-fno-unit-at-a-time -G 0 \
  -Dinhibit_libc -c ../../gcc-3.4/gcc/gcc/crtstuff.c -DCRT_BEGIN \
  -o soft-float/crtbegin.o
mv: cannot stat `tmp-options.h': No such file or directory
mv: cannot stat `tmp-options.c': No such file or directory
make[3]: *** [options.h] Error 1
make[3]: Leaving directory `/home/ian/gcc/gcc-3.4-mips-elf/gcc'
make[2]: *** [extra] Error 2
make[2]: *** Waiting for unfinished jobs....


-- 


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


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

* [Bug bootstrap/18532] [3.4 Regression] libgcc.mk isn't parallel build safe for multilib
  2004-11-17 18:55 [Bug bootstrap/18532] New: " hjl at lucon dot org
                   ` (5 preceding siblings ...)
  2005-08-03 17:04 ` hjl at lucon dot org
@ 2005-08-03 17:10 ` hjl at lucon dot org
  2005-08-03 17:12 ` ian at airs dot com
  2005-08-03 17:14 ` ian at airs dot com
  8 siblings, 0 replies; 10+ messages in thread
From: hjl at lucon dot org @ 2005-08-03 17:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hjl at lucon dot org  2005-08-03 17:10 -------
I also have this patch

http://gcc.gnu.org/ml/gcc-patches/2003-10/msg00088.html

Ian, can you email me your failed build log?

-- 


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


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

* [Bug bootstrap/18532] [3.4 Regression] libgcc.mk isn't parallel build safe for multilib
  2004-11-17 18:55 [Bug bootstrap/18532] New: " hjl at lucon dot org
                   ` (4 preceding siblings ...)
  2005-08-03 16:59 ` ian at airs dot com
@ 2005-08-03 17:04 ` hjl at lucon dot org
  2005-08-03 17:10 ` hjl at lucon dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hjl at lucon dot org @ 2005-08-03 17:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hjl at lucon dot org  2005-08-03 17:04 -------
I do have this patch

http://gcc.gnu.org/ml/gcc-patches/2004-06/msg00340.html

Does it help?

-- 


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


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

* [Bug bootstrap/18532] [3.4 Regression] libgcc.mk isn't parallel build safe for multilib
  2004-11-17 18:55 [Bug bootstrap/18532] New: " hjl at lucon dot org
                   ` (3 preceding siblings ...)
  2005-08-03 14:05 ` hjl at lucon dot org
@ 2005-08-03 16:59 ` ian at airs dot com
  2005-08-03 17:04 ` hjl at lucon dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ian at airs dot com @ 2005-08-03 16:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ian at airs dot com  2005-08-03 16:59 -------
How do you manage without patches to use a stamp file for gtyp-gen.h and
options.h?  When I tried using patches like the ones you listed, I got a crash
on a simultaneous build of options.h.  Are you sure you don't have any patches
in gcc/Makefile.in?

-- 


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


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

* [Bug bootstrap/18532] [3.4 Regression] libgcc.mk isn't parallel build safe for multilib
  2004-11-17 18:55 [Bug bootstrap/18532] New: " hjl at lucon dot org
                   ` (2 preceding siblings ...)
  2005-08-03  6:00 ` ian at airs dot com
@ 2005-08-03 14:05 ` hjl at lucon dot org
  2005-08-03 16:59 ` ian at airs dot com
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hjl at lucon dot org @ 2005-08-03 14:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hjl at lucon dot org  2005-08-03 14:05 -------
I have been using

http://gcc.gnu.org/ml/gcc-patches/2004-11/msg01456.html
http://gcc.gnu.org/ml/gcc-patches/2004-11/msg01454.html

on gcc 3.4 since Nov., 2004. I have been doing "-j 8" on 4way SMP machines.
I haven't seen any problems. I am ok to close it if the bug comes back
somehow after applying those 2 patches.

-- 


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


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

* [Bug bootstrap/18532] [3.4 Regression] libgcc.mk isn't parallel build safe for multilib
  2004-11-17 18:55 [Bug bootstrap/18532] New: " hjl at lucon dot org
  2004-12-02 22:00 ` [Bug bootstrap/18532] [3.4 Regression] " pinskia at gcc dot gnu dot org
  2005-05-19 17:47 ` mmitchel at gcc dot gnu dot org
@ 2005-08-03  6:00 ` ian at airs dot com
  2005-08-03 14:05 ` hjl at lucon dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ian at airs dot com @ 2005-08-03  6:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ian at airs dot com  2005-08-03 06:00 -------
I looked into fixing this on the 3.4 branch.  There is at minimum a series of
patches which would have to be applied:

1) mklibgcc.in has to be changed to group all the EXTRA_MULTILIB_PARTS files for
a particular multilib together.  (E.g., H.J. Lu patch of 2004-12-02).

2) mklibgcc.in has to be changed to make the shared libgcc (if any) and
libunwind (if any) for each multilib depend on the extra target created in step
1.  This is so that the required parts exist before the shared libgcc is built.
 (E.g., Zack Weinberg patch of 2004-11-30).

3) Every use of move-if-change in the top level Makefile has to be modified to
use a stamp file, in particular options.h and gtyp-gen.h.  Otherwise the
parallel makes will try to rebuild them simultaneously, which will fail.  (E.g.,
Ian Lance Taylor patch of 2004-01-28).

This is of course possible but tedious to test all relevant cases.  We may want
to close this as WONTFIX for 3.4.

H.J., you reported the bug.  What do you think?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


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


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

* [Bug bootstrap/18532] [3.4 Regression] libgcc.mk isn't parallel build safe for multilib
  2004-11-17 18:55 [Bug bootstrap/18532] New: " hjl at lucon dot org
  2004-12-02 22:00 ` [Bug bootstrap/18532] [3.4 Regression] " pinskia at gcc dot gnu dot org
@ 2005-05-19 17:47 ` mmitchel at gcc dot gnu dot org
  2005-08-03  6:00 ` ian at airs dot com
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-05-19 17:47 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.4                       |3.4.5


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


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

* [Bug bootstrap/18532] [3.4 Regression] libgcc.mk isn't parallel build safe for multilib
  2004-11-17 18:55 [Bug bootstrap/18532] New: " hjl at lucon dot org
@ 2004-12-02 22:00 ` pinskia at gcc dot gnu dot org
  2005-05-19 17:47 ` mmitchel at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-02 22:00 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.0.0
            Summary|libgcc.mk isn't parallel    |[3.4 Regression] libgcc.mk
                   |build safe for multilib     |isn't parallel build safe
                   |                            |for multilib
   Target Milestone|---                         |3.4.4


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


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

end of thread, other threads:[~2005-10-07  3:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-18532-682@http.gcc.gnu.org/bugzilla/>
2005-10-07  3:36 ` [Bug bootstrap/18532] [3.4 Regression] libgcc.mk isn't parallel build safe for multilib gdr at gcc dot gnu dot org
2004-11-17 18:55 [Bug bootstrap/18532] New: " hjl at lucon dot org
2004-12-02 22:00 ` [Bug bootstrap/18532] [3.4 Regression] " pinskia at gcc dot gnu dot org
2005-05-19 17:47 ` mmitchel at gcc dot gnu dot org
2005-08-03  6:00 ` ian at airs dot com
2005-08-03 14:05 ` hjl at lucon dot org
2005-08-03 16:59 ` ian at airs dot com
2005-08-03 17:04 ` hjl at lucon dot org
2005-08-03 17:10 ` hjl at lucon dot org
2005-08-03 17:12 ` ian at airs dot com
2005-08-03 17:14 ` ian at airs dot com

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