From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1920 invoked by alias); 12 Jul 2010 15:00:33 -0000 Received: (qmail 1799 invoked by uid 48); 12 Jul 2010 15:00:13 -0000 Date: Mon, 12 Jul 2010 15:00:00 -0000 Message-ID: <20100712150013.1798.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug testsuite/42843] --enable-build-with-cxx plugin tests fail In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "iains at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-07/txt/msg01287.txt.bz2 ------- Comment #14 from iains at gcc dot gnu dot org 2010-07-12 15:00 ------- (In reply to comment #13) > I'll have to check the config.log more carefully. OK. possible a can of wiggly things here... case "${host}" in *-*-darwin*) export_sym_check="$gcc_cv_nm -g" <=== maybe these need to be $NM .... ;; *) export_sym_check="$gcc_cv_objdump -T" <==== ... and $OBJDUMP in any event, the correct host tool ;; esac looks fine - until you find that gcc_cv_nm is being set to ../binutils/nm == nm-for-target when host==build (and we've built the tool). AS_VAR_SET_IF(gcc_cv_nm,, [ if test -f $gcc_cv_binutils_srcdir/configure.in \ && test -f ../binutils/Makefile \ && test x$build = x$host; then gcc_cv_nm=../binutils/nm-new$build_exeext elif test -x nm$build_exeext; then gcc_cv_nm=./nm$build_exeext elif test -x $NM_FOR_TARGET; then gcc_cv_nm="$NM_FOR_TARGET" else AC_PATH_PROG(gcc_cv_nm, $NM_FOR_TARGET) fi]) I'm not sure what the right version of nm/objdump is - but clearly, one for the host not the target ... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42843