This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fw: CT_DoExecLog error during GCC build


Hi,

On Tue, Aug 3, 2010 at 7:12 AM, milan radulovic
<radulovic_milan@yahoo.com> wrote:
> Dear Yann, All,
>
> I would like to use crosstool-ng as cross compiler for MIPS architecture R4K, and I need to build cross compiler without Thread local storage support or threads support.
>
> So far, I tried to build cross compiler but I didn't make any success since I am getting the following error message:
>
>
> INFO ]? Installing final compiler
> [EXTRA]??? Configuring final compiler
> [EXTRA]??? Building final compiler
> [ERROR]???checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
> [ERROR]??? make[2]: ***
> [configure-target-libstdc++-v3] Error 1
> [ERROR]
> ?make[1]: *** [all] Error 2
> [ERROR]??? Build failed in step 'Installing final compiler'
> [ERROR]??? Error happened in '/opt/crosstool-ng/lib/ct-ng-hg_default@2039_c5a2e4ee7fb8/scripts/functions' in function 'CT_DoExecLog' (line unknown, sorry)
> [ERROR]?called from '/opt/crosstool-ng/lib/ct-ng-hg_default@2039_c5a2e4ee7fb8/scripts/build/cc/gcc.sh' at line # 414 in function 'do_cc'
> [ERROR] called from '/opt/crosstool-ng/lib/ct-ng-hg_default@2039_c5a2e4ee7fb8/scripts/crosstool-NG.sh' at line # 583 in function 'main'
> [ERROR]??? Look at '/root/x-tools/mips-unknown-linux-uclibc/build.log' for more info on this error.
> [ERROR]? (elapsed: 36:36.24)
> [36:37] / make: ***
> [build] Error 2
>
this is gcc's PR/41818:

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

Try rebuilding with the attached patch. I'm preparing a proper
submission for Yann (and myself).

 - Arnaud
commit 1ab7bcf02aec0709662deff6e2d9910070ef00d6
Author: rwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Thu Jan 7 19:53:50 2010 +0000

    Fix PR bootstrap/41818.
    
    /:
    	PR bootstrap/41818
    	* Makefile.tpl (BASE_TARGET_EXPORTS): Only add TARGET_LIB_PATH
    	to $(RPATH_ENVVAR) if bootstrapping.  Fix typo in comment.
    	* Makefile.in: Regenerate.
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155706 138bc75d-0d04-0410-961f-82ee72b054a4

diff --git a/Makefile.in b/Makefile.in
index e5fa1d3..6f1c140 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -259,7 +259,7 @@ TARGET_SUBDIR = @target_subdir@
 # directories built for the target.
 TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)"
 # This is the list of variables to export in the environment when
-# configuring subdirectories for the host system.
+# configuring subdirectories for the target system.
 BASE_TARGET_EXPORTS = \
 	$(BASE_EXPORTS) \
 	AR="$(AR_FOR_TARGET)"; export AR; \
@@ -281,7 +281,10 @@ BASE_TARGET_EXPORTS = \
 	STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \
 	WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
 	WINDMC="$(WINDMC_FOR_TARGET)"; export WINDMC; \
-	$(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
+@if gcc-bootstrap
+	$(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
+@endif gcc-bootstrap
+	$(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
 
 RAW_CXX_TARGET_EXPORTS = \
 	$(BASE_TARGET_EXPORTS) \
diff --git a/Makefile.tpl b/Makefile.tpl
index 15102e5..ac62666 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -262,7 +262,7 @@ TARGET_SUBDIR = @target_subdir@
 # directories built for the target.
 TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)"
 # This is the list of variables to export in the environment when
-# configuring subdirectories for the host system.
+# configuring subdirectories for the target system.
 BASE_TARGET_EXPORTS = \
 	$(BASE_EXPORTS) \
 	AR="$(AR_FOR_TARGET)"; export AR; \
@@ -284,7 +284,10 @@ BASE_TARGET_EXPORTS = \
 	STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \
 	WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
 	WINDMC="$(WINDMC_FOR_TARGET)"; export WINDMC; \
-	$(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
+@if gcc-bootstrap
+	$(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
+@endif gcc-bootstrap
+	$(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
 
 RAW_CXX_TARGET_EXPORTS = \
 	$(BASE_TARGET_EXPORTS) \
--
For unsubscribe information see http://sourceware.org/lists.html#faq

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]