From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7064 invoked by alias); 27 Nov 2007 23:48:35 -0000 Received: (qmail 7045 invoked by uid 22791); 27 Nov 2007 23:48:34 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 27 Nov 2007 23:48:28 +0000 Received: (qmail 12100 invoked from network); 27 Nov 2007 23:48:26 -0000 Received: from unknown (HELO ?192.168.0.2?) (mitchell@127.0.0.2) by mail.codesourcery.com with ESMTPA; 27 Nov 2007 23:48:26 -0000 Message-ID: <474CACB5.2040704@codesourcery.com> Date: Wed, 28 Nov 2007 01:24:00 -0000 From: Mark Mitchell User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Bernd Schmidt CC: Jie Zhang , gcc@gcc.gnu.org, GCC Patches , Richard Sandiford Subject: Re: Link tests after GCC_NO_EXECUTABLES References: <46EFBCC1.6070200@gmail.com> <46EFC383.7020503@t-online.de> <46EFC9E9.7090201@gmail.com> <46EFCEF9.3060304@t-online.de> <46EFCF7A.2080704@gmail.com> <46EFD236.6080907@t-online.de> <46EFDA4D.3070006@gmail.com> <474C0C52.8050503@t-online.de> <474C8FA4.2040603@codesourcery.com> <474C95BA.1060807@t-online.de> <474C96C1.7010208@codesourcery.com> <474C98AA.50105@t-online.de> <474C9A65.2060902@codesourcery.com> <474C9B33.8060503@t-online.de> <474C9CBD.2070708@codesourcery.com> <474C9E12.6050903@t-online.de> In-Reply-To: <474C9E12.6050903@t-online.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2007-11/txt/msg01532.txt.bz2 Bernd Schmidt wrote: > "libstdc++-v3/configure.ac" AM_PROG_LIBTOOL -> "libtool.m4" LT_INIT -> > _LT_SETUP -> _LT_LANG_C_CONFIG -> LT_SYS_DLOPEN_SELF > > which leads to > checking for shl_load... configure: error: Link tests are not allowed > after GCC_NO_EXECUTABLES. > make[1]: *** [configure-target-libstdc++-v3] Error 1 Thanks. Perhaps the difference here is that isn't available for MIPS/Power ELF, but is available in your configuration because you're building with uClibc as your C library? If so, I think there are ways that we can solve this problem that don't involve adding -msim. (I haven't looked at Jie's approach, so I can't comment on that.) > Jie had a patch for that, but I decided to fix it by just making things > link, since I've seen other occurrences of this problem over the years. > It just seems more robust not to require the configure scripts to avoid > linking. I disagree. Since the preferred bare-metal setup is that linking not work without -msim (or a -T option), we don't want configure tests that detect any properties that might depend on what happens when you link. We want to make sure that detected properties are a property only of the parts that a user isn't going to change. In any case, I think this is something that ought to be decided as a global policy for GCC and its run-time libraries, not something that differs between ports. In particular, if run-time libraries are allowed to depend on linking in their configure tests, that's something everyone should know. -- Mark Mitchell CodeSourcery mark@codesourcery.com (650) 331-3385 x713