public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/18532] New: libgcc.mk isn't parallel build safe for multilib
@ 2004-11-17 18:55 hjl at lucon dot org
  2004-11-18  0:58 ` [Bug bootstrap/18532] " hjl at lucon dot org
                   ` (14 more replies)
  0 siblings, 15 replies; 17+ messages in thread
From: hjl at lucon dot org @ 2004-11-17 18:55 UTC (permalink / raw)
  To: gcc-bugs

With multilib, libgcc.mk has

crtendS.o: stmp-dirs
        $(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \
          AR_FOR_TARGET="$(AR_FOR_TARGET)" \
          AR_CREATE_FOR_TARGET="$(AR_CREATE_FOR_TARGET)" \
          AR_EXTRACT_FOR_TARGET="$(AR_EXTRACT_FOR_TARGET)" \
          AR_FLAGS_FOR_TARGET="$(AR_FLAGS_FOR_TARGET)" \
          CC="$(CC)" CFLAGS="$(CFLAGS)" \
          BUILD_PREFIX="$(BUILD_PREFIX)" \
          BUILD_PREFIX_1="$(BUILD_PREFIX_1)" \
          LANGUAGES="$(LANGUAGES)" \
          LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS) "  \
          MULTILIB_CFLAGS="" T= crtendS.o
32/crtendS.o: stmp-dirs
        $(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \
          AR_FOR_TARGET="$(AR_FOR_TARGET)" \
          AR_CREATE_FOR_TARGET="$(AR_CREATE_FOR_TARGET)" \
          AR_EXTRACT_FOR_TARGET="$(AR_EXTRACT_FOR_TARGET)" \
          AR_FLAGS_FOR_TARGET="$(AR_FLAGS_FOR_TARGET)" \
          CC="$(CC)" CFLAGS="$(CFLAGS)" \
          BUILD_PREFIX="$(BUILD_PREFIX)" \
          BUILD_PREFIX_1="$(BUILD_PREFIX_1)" \
          LANGUAGES="$(LANGUAGES)" \
          LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS) -m32 "  \
          MULTILIB_CFLAGS=" -m32" T=32/ 32/crtendS.o
crtbeginT.o: stmp-dirs
        $(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \
          AR_FOR_TARGET="$(AR_FOR_TARGET)" \
          AR_CREATE_FOR_TARGET="$(AR_CREATE_FOR_TARGET)" \
          AR_EXTRACT_FOR_TARGET="$(AR_EXTRACT_FOR_TARGET)" \
          AR_FLAGS_FOR_TARGET="$(AR_FLAGS_FOR_TARGET)" \
          CC="$(CC)" CFLAGS="$(CFLAGS)" \
          BUILD_PREFIX="$(BUILD_PREFIX)" \
          BUILD_PREFIX_1="$(BUILD_PREFIX_1)" \
          LANGUAGES="$(LANGUAGES)" \
          LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS) "  \
          MULTILIB_CFLAGS="" T= crtbeginT.o
32/crtbeginT.o: stmp-dirs
        $(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \
          AR_FOR_TARGET="$(AR_FOR_TARGET)" \
          AR_CREATE_FOR_TARGET="$(AR_CREATE_FOR_TARGET)" \
          AR_EXTRACT_FOR_TARGET="$(AR_EXTRACT_FOR_TARGET)" \
          AR_FLAGS_FOR_TARGET="$(AR_FLAGS_FOR_TARGET)" \
          CC="$(CC)" CFLAGS="$(CFLAGS)" \
          BUILD_PREFIX="$(BUILD_PREFIX)" \
          BUILD_PREFIX_1="$(BUILD_PREFIX_1)" \
          LANGUAGES="$(LANGUAGES)" \
          LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS) -m32 "  \
          MULTILIB_CFLAGS=" -m32" T=32/ 32/crtbeginT.o
                                                                               
                                                                               
       
all: stmp-dirs ./libgcc.a ./libgcov.a ./libgcc_eh.a ./libgcc_s.so 32/libgcc.a
32/libgcov.a 32/libgcc_eh.a 32/libgcc_s_32.so crtbegin.o 32/crtbegin.o crtend.o
32/crtend.o crtbeginS.o 32/crtbeginS.o crtendS.o 32/crtendS.o crtbeginT.o
32/crtbeginT.o

When we do "make -j N" on a SMP machine, we may get

make GCC_FOR_TARGET=" ./xgcc -B./ -B/usr/gcc-4.0/x86_64-unknown-linux-gnu/bin/
-isystem /usr/gcc-4.0/x86_64-unknown-linux-gnu/include -isystem
/usr/gcc-4.0/x86_64-unknown-linux-gnu/sys-include
-L/export/build/gnu/gcc/build-x86_64-linux/gcc/../ld" \
  AR_FOR_TARGET="ar" \
  AR_CREATE_FOR_TARGET="ar  rc" \
  AR_EXTRACT_FOR_TARGET="ar  x" \
  AR_FLAGS_FOR_TARGET="" \
  CC="stage1/xgcc -Bstage1/ -B/usr/gcc-4.0/x86_64-unknown-linux-gnu/bin/"
CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Werror  " \
  BUILD_PREFIX="" \
  BUILD_PREFIX_1="loser-" \
  LANGUAGES="c gcov gcov-dump c++ java objc" \
  LIBGCC2_CFLAGS="-O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g
-DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -m32 "  \
  MULTILIB_CFLAGS=" -m32" T=32/ 32/crtbegin.o
make GCC_FOR_TARGET=" ./xgcc -B./ -B/usr/gcc-4.0/x86_64-unknown-linux-gnu/bin/
-isystem /usr/gcc-4.0/x86_64-unknown-linux-gnu/include -isystem
/usr/gcc-4.0/x86_64-unknown-linux-gnu/sys-include
-L/export/build/gnu/gcc/build-x86_64-linux/gcc/../ld" \
  AR_FOR_TARGET="ar" \
  AR_CREATE_FOR_TARGET="ar  rc" \
  AR_EXTRACT_FOR_TARGET="ar  x" \
  AR_FLAGS_FOR_TARGET="" \
  CC="stage1/xgcc -Bstage1/ -B/usr/gcc-4.0/x86_64-unknown-linux-gnu/bin/"
CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Werror  " \
  BUILD_PREFIX="" \
  BUILD_PREFIX_1="loser-" \
  LANGUAGES="c gcov gcov-dump c++ java objc" \
  LIBGCC2_CFLAGS="-O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g
-DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -m32 "  \
  MULTILIB_CFLAGS=" -m32" T=32/ 32/crtend.o
make[6]: Entering directory `/export/build/gnu/gcc/build-x86_64-linux/gcc'
make[6]: Entering directory `/export/build/gnu/gcc/build-x86_64-linux/gcc'
echo | ./xgcc -B./ -B/usr/gcc-4.0/x86_64-unknown-linux-gnu/bin/ -isystem
/usr/gcc-4.0/x86_64-unknown-linux-gnu/include -isystem
/usr/gcc-4.0/x86_64-unknown-linux-gnu/sys-include
-L/export/build/gnu/gcc/build-x86_64-linux/gcc/../ld -E -dM - | \
  sed -n 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p ; \
        s/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \
  sort -u > tmp-macro_list
echo | ./xgcc -B./ -B/usr/gcc-4.0/x86_64-unknown-linux-gnu/bin/ -isystem
/usr/gcc-4.0/x86_64-unknown-linux-gnu/include -isystem
/usr/gcc-4.0/x86_64-unknown-linux-gnu/sys-include
-L/export/build/gnu/gcc/build-x86_64-linux/gcc/../ld -E -dM - | \
  sed -n 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p ; \
        s/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \
  sort -u > tmp-macro_list
/bin/sh /net/gnu/export/gnu/src/gcc/gcc/gcc/../move-if-change tmp-macro_list
macro_list
/bin/sh /net/gnu/export/gnu/src/gcc/gcc/gcc/../move-if-change tmp-macro_list
macro_list
macro_list is unchanged
./xgcc -B./ -B/usr/gcc-4.0/x86_64-unknown-linux-gnu/bin/ -isystem
/usr/gcc-4.0/x86_64-unknown-linux-gnu/include -isystem
/usr/gcc-4.0/x86_64-unknown-linux-gnu/sys-include
-L/export/build/gnu/gcc/build-x86_64-linux/gcc/../ld -O2 -DIN_GCC    -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
 -isystem ./include  -I. -I32 -I/net/gnu/export/gnu/src/gcc/gcc/gcc
-I/net/gnu/export/gnu/src/gcc/gcc/gcc/32
-I/net/gnu/export/gnu/src/gcc/gcc/gcc/../include
-I/net/gnu/export/gnu/src/gcc/gcc/gcc/../libcpp/include  -m32 -g0
-finhibit-size-directive -fno-inline-functions -fno-exceptions
-fno-zero-initialized-in-bss -fno-unit-at-a-time -fno-omit-frame-pointer
-fno-asynchronous-unwind-tables \
   -c /net/gnu/export/gnu/src/gcc/gcc/gcc/crtstuff.c -DCRT_END \
  -o 32/crtend.o
cmp: tmp-macro_list: No such file or directory
mv: cannot stat `tmp-macro_list': No such file or directory
make[6]: *** [macro_list] Error 1
make[6]: Leaving directory `/export/build/gnu/gcc/build-x86_64-linux/gcc'
make[5]: *** [32/crtbegin.o] Error 2
make[5]: *** Waiting for unfinished jobs....
make[6]: Leaving directory `/export/build/gnu/gcc/build-x86_64-linux/gcc'
make[5]: Leaving directory `/export/build/gnu/gcc/build-x86_64-linux/gcc'
make[4]: *** [stmp-multilib] Error 2
make[4]: Leaving directory `/export/build/gnu/gcc/build-x86_64-linux/gcc'
make[3]: *** [stage2_build] Error 2
make[3]: Leaving directory `/export/build/gnu/gcc/build-x86_64-linux/gcc'
make[2]: *** [bootstrap] Error 2

Basically, we can't have more than one "make xxx" if xxx have common
dependencies.

-- 
           Summary: libgcc.mk isn't parallel build safe for multilib
           Product: gcc
           Version: 3.4.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: bootstrap
        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=18532


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

* [Bug bootstrap/18532] libgcc.mk isn't parallel build safe for multilib
  2004-11-17 18:55 [Bug bootstrap/18532] New: libgcc.mk isn't parallel build safe for multilib hjl at lucon dot org
@ 2004-11-18  0:58 ` hjl at lucon dot org
  2004-11-18 12:51 ` pinskia at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 17+ messages in thread
From: hjl at lucon dot org @ 2004-11-18  0:58 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |18533


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


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

* [Bug bootstrap/18532] libgcc.mk isn't parallel build safe for multilib
  2004-11-17 18:55 [Bug bootstrap/18532] New: libgcc.mk isn't parallel build safe for multilib hjl at lucon dot org
  2004-11-18  0:58 ` [Bug bootstrap/18532] " hjl at lucon dot org
@ 2004-11-18 12:51 ` pinskia at gcc dot gnu dot org
  2004-11-28 19:25 ` hjl at lucon dot org
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-18 12:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-18 12:51 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg01456.html>.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |build, patch
   Last reconfirmed|0000-00-00 00:00:00         |2004-11-18 12:51:16
               date|                            |


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


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

* [Bug bootstrap/18532] libgcc.mk isn't parallel build safe for multilib
  2004-11-17 18:55 [Bug bootstrap/18532] New: libgcc.mk isn't parallel build safe for multilib hjl at lucon dot org
  2004-11-18  0:58 ` [Bug bootstrap/18532] " hjl at lucon dot org
  2004-11-18 12:51 ` pinskia at gcc dot gnu dot org
@ 2004-11-28 19:25 ` hjl at lucon dot org
  2004-12-01 18:49 ` hjl at lucon dot org
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 17+ messages in thread
From: hjl at lucon dot org @ 2004-11-28 19:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hjl at lucon dot org  2004-11-28 19:25 -------
*** Bug 18486 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ak at muc dot de


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


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

* [Bug bootstrap/18532] libgcc.mk isn't parallel build safe for multilib
  2004-11-17 18:55 [Bug bootstrap/18532] New: libgcc.mk isn't parallel build safe for multilib hjl at lucon dot org
                   ` (2 preceding siblings ...)
  2004-11-28 19:25 ` hjl at lucon dot org
@ 2004-12-01 18:49 ` hjl at lucon dot org
  2004-12-02  1:05 ` hjl at lucon dot org
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 17+ messages in thread
From: hjl at lucon dot org @ 2004-12-01 18:49 UTC (permalink / raw)
  To: gcc-bugs



-- 
Bug 18532 depends on bug 18533, which changed state.

Bug 18533 Summary: EXTRA_MULTILIB_PARTS are used to build libgcc_s.so for multilib
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18533

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

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


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

* [Bug bootstrap/18532] libgcc.mk isn't parallel build safe for multilib
  2004-11-17 18:55 [Bug bootstrap/18532] New: libgcc.mk isn't parallel build safe for multilib hjl at lucon dot org
                   ` (3 preceding siblings ...)
  2004-12-01 18:49 ` hjl at lucon dot org
@ 2004-12-02  1:05 ` hjl at lucon dot org
  2004-12-02 21:49 ` cvs-commit at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 17+ messages in thread
From: hjl at lucon dot org @ 2004-12-02  1:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hjl at lucon dot org  2004-12-02 01:05 -------
An updated patch is at

http://gcc.gnu.org/ml/gcc-patches/2004-12/msg00110.html

-- 


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


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

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


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-12-02 21:49 -------
Subject: Bug 18532

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	hjl@gcc.gnu.org	2004-12-02 21:49:00

Modified files:
	gcc            : ChangeLog mklibgcc.in 

Log message:
	2004-12-02  H.J. Lu  <hongjiu.lu@intel.com>
	
	PR bootstrap/18532
	* mklibgcc.in: Build one set of EXTRA_MULTILIB_PARTS for
	multilib at a time. Don't build the default set. Don't add
	EXTRA_MULTILIB_PARTS to shared libunwind nor libgcc. Remove
	filter for shared libunwind and libgcc.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6690&r2=2.6691
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/mklibgcc.in.diff?cvsroot=gcc&r1=1.74&r2=1.75



-- 


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


^ permalink raw reply	[flat|nested] 17+ 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: libgcc.mk isn't parallel build safe for multilib hjl at lucon dot org
                   ` (5 preceding siblings ...)
  2004-12-02 21:49 ` cvs-commit at gcc dot gnu 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)
  14 siblings, 0 replies; 17+ 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] 17+ 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: libgcc.mk isn't parallel build safe for multilib hjl at lucon dot org
                   ` (6 preceding siblings ...)
  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)
  14 siblings, 0 replies; 17+ 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] 17+ 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: libgcc.mk isn't parallel build safe for multilib hjl at lucon dot org
                   ` (7 preceding siblings ...)
  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)
  14 siblings, 0 replies; 17+ 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] 17+ 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: libgcc.mk isn't parallel build safe for multilib hjl at lucon dot org
                   ` (8 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)
  14 siblings, 0 replies; 17+ 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] 17+ 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: libgcc.mk isn't parallel build safe for multilib hjl at lucon dot org
                   ` (9 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)
  14 siblings, 0 replies; 17+ 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] 17+ 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: libgcc.mk isn't parallel build safe for multilib hjl at lucon dot org
                   ` (10 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)
  14 siblings, 0 replies; 17+ 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] 17+ 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: libgcc.mk isn't parallel build safe for multilib hjl at lucon dot org
                   ` (11 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
  14 siblings, 0 replies; 17+ 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] 17+ 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: libgcc.mk isn't parallel build safe for multilib hjl at lucon dot org
                   ` (12 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
  14 siblings, 0 replies; 17+ 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] 17+ 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: libgcc.mk isn't parallel build safe for multilib hjl at lucon dot org
                   ` (13 preceding siblings ...)
  2005-08-03 17:12 ` ian at airs dot com
@ 2005-08-03 17:14 ` ian at airs dot com
  14 siblings, 0 replies; 17+ 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] 17+ messages in thread

* [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; 17+ 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] 17+ messages in thread

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

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-17 18:55 [Bug bootstrap/18532] New: libgcc.mk isn't parallel build safe for multilib hjl at lucon dot org
2004-11-18  0:58 ` [Bug bootstrap/18532] " hjl at lucon dot org
2004-11-18 12:51 ` pinskia at gcc dot gnu dot org
2004-11-28 19:25 ` hjl at lucon dot org
2004-12-01 18:49 ` hjl at lucon dot org
2004-12-02  1:05 ` hjl at lucon dot org
2004-12-02 21:49 ` cvs-commit at gcc dot gnu 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
     [not found] <bug-18532-682@http.gcc.gnu.org/bugzilla/>
2005-10-07  3:36 ` gdr 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).