This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: PR gas/14899: Missing gas dependency for ld and gold
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sourceware dot org
- Date: Fri, 30 Nov 2012 11:19:33 -0800
- Subject: PATCH: PR gas/14899: Missing gas dependency for ld and gold
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
When bootstrap GCC and binutils in a combined-tree, gcc/as has
RIGINAL_AS_FOR_TARGET="../gas/as-new"
ORIGINAL_LD_FOR_TARGET="../ld/ld-new"
ORIGINAL_PLUGIN_LD_FOR_TARGET="../ld/ld-new"
ORIGINAL_NM_FOR_TARGET="../binutils/nm-new"
exeext=
fast_install=yes
objdir=.libs
invoked=`basename "$0"`
id=$invoked
case "$invoked" in
as)
original=$ORIGINAL_AS_FOR_TARGET
prog=as-new$exeext
dir=gas
;;
ld and gold must be built after gas. Otherwise, parallel build will
get
/export/build/gnu/tools-4.8/build-x86_64-linux/./prev-gcc/xg++
-B/export/build/gnu/tools-4.8/build-x86_64-linux/./prev-gcc/
-B/usr/tools-4.8.0/x86_64-unknown-linux-gnu/bin/ -nostdinc++
-B/export/build/gnu/tools-4.8/build-x86_64-linux/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/export/build/gnu/tools-4.8/build-x86_64-linux/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-I/export/build/gnu/tools-4.8/build-x86_64-linux/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu
-I/export/build/gnu/tools-4.8/build-x86_64-linux/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include
-I/export/gnu/src/tools-4.8/tools/libstdc++-v3/libsupc++
-L/export/build/gnu/tools-4.8/build-x86_64-linux/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/export/build/gnu/tools-4.8/build-x86_64-linux/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-DHAVE_CONFIG_H -I. -I/export/gnu/src/tools-4.8/tools/gold
-I/export/gnu/src/tools-4.8/tools/gold
-I/export/gnu/src/tools-4.8/tools/gold/../include
-I/export/gnu/src/tools-4.8/tools/gold/../elfcpp
-DLOCALEDIR="\"/usr/tools-4.8.0/share/locale\""
-DBINDIR="\"/usr/tools-4.8.0/bin\""
-DTOOLBINDIR="\"/usr/tools-4.8.0/x86_64-unknown-linux-gnu/bin\""
-DTOOLLIBDIR="\"/usr/tools-4.8.0/x86_64-unknown-linux-gnu/lib\"" -W
-Wall
-Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=nacl.o
-g -O2
-MT nacl.o -MD -MP -MF .deps/nacl.Tpo -c -o nacl.o
/export/gnu/src/tools-4.8/tools/gold/nacl.cc
/export/build/gnu/tools-4.8/build-x86_64-linux/./prev-gcc/as: line 97:
/export/build/gnu/tools-4.8/build-x86_64-linux/prev-gcc/../gas/as-new:
Text
file busy
make[6]: *** [nacl.o] Error 1
at random. Tested on Linux/x86-64 with binutils and GCC+binutils
builds. OK to install?
Thanks.
H.J.
---
2012-11-30 H.J. Lu <hongjiu.lu@intel.com>
PR gas/14899
* Makefile.def (dependencies): Make all-ld and all-gold depend
on all-gas.
* Makefile.in: Regenerated.
diff --git a/Makefile.def b/Makefile.def
index 1ea63ac..f2013d1 100644
--- a/Makefile.def
+++ b/Makefile.def
@@ -405,6 +405,7 @@ dependencies = { module=all-ld; on=all-opcodes; };
dependencies = { module=all-ld; on=all-build-bison; };
dependencies = { module=all-ld; on=all-build-flex; };
dependencies = { module=all-ld; on=all-intl; };
+dependencies = { module=all-ld; on=all-gas; };
dependencies = { module=install-ld; on=install-gold; };
dependencies = { module=install-strip-ld; on=install-strip-gold; };
dependencies = { module=configure-gold; on=configure-intl; };
@@ -412,6 +413,7 @@ dependencies = { module=all-gold; on=all-libiberty; };
dependencies = { module=all-gold; on=all-intl; };
dependencies = { module=all-gold; on=all-bfd; };
dependencies = { module=all-gold; on=all-build-bison; };
+dependencies = { module=all-gold; on=all-gas; };
dependencies = { module=check-gold; on=all-binutils; };
dependencies = { module=check-gold; on=all-gas; };
diff --git a/Makefile.in b/Makefile.in
index 636b2ba..37d7d29 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -45491,6 +45491,14 @@ all-stage3-ld: maybe-all-stage3-intl
all-stage4-ld: maybe-all-stage4-intl
all-stageprofile-ld: maybe-all-stageprofile-intl
all-stagefeedback-ld: maybe-all-stagefeedback-intl
+all-ld: maybe-all-gas
+
+all-stage1-ld: maybe-all-stage1-gas
+all-stage2-ld: maybe-all-stage2-gas
+all-stage3-ld: maybe-all-stage3-gas
+all-stage4-ld: maybe-all-stage4-gas
+all-stageprofile-ld: maybe-all-stageprofile-gas
+all-stagefeedback-ld: maybe-all-stagefeedback-gas
install-ld: maybe-install-gold
install-strip-ld: maybe-install-strip-gold
configure-gold: maybe-configure-intl
@@ -45533,6 +45541,14 @@ all-stage3-gold: maybe-all-build-bison
all-stage4-gold: maybe-all-build-bison
all-stageprofile-gold: maybe-all-build-bison
all-stagefeedback-gold: maybe-all-build-bison
+all-gold: maybe-all-gas
+
+all-stage1-gold: maybe-all-stage1-gas
+all-stage2-gold: maybe-all-stage2-gas
+all-stage3-gold: maybe-all-stage3-gas
+all-stage4-gold: maybe-all-stage4-gas
+all-stageprofile-gold: maybe-all-stageprofile-gas
+all-stagefeedback-gold: maybe-all-stagefeedback-gas
check-gold: maybe-all-binutils
check-stage1-gold: maybe-all-stage1-binutils