From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5244 invoked by alias); 28 Nov 2007 00:45:52 -0000 Received: (qmail 5227 invoked by uid 22791); 28 Nov 2007 00:45:52 -0000 X-Spam-Check-By: sourceware.org Received: from mailout10.sul.t-online.de (HELO mailout10.sul.t-online.com) (194.25.134.21) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 28 Nov 2007 00:45:44 +0000 Received: from fwd27.aul.t-online.de by mailout10.sul.t-online.com with smtp id 1IxB3b-00009r-00; Wed, 28 Nov 2007 01:45:39 +0100 Received: from [84.152.245.64] (Ze2fi+ZX8hDp-MRioCVlVXTIQt0aqnarRKLeTdzNa-pnRqCTIjccqjV4nbWIIjiZqL@[84.152.245.64]) by fwd27.aul.t-online.de with esmtp id 1IxB3S-1y3Esi0; Wed, 28 Nov 2007 01:45:30 +0100 Message-ID: <474CBA16.9050309@t-online.de> Date: Wed, 28 Nov 2007 06:34:00 -0000 From: Bernd Schmidt User-Agent: Thunderbird 2.0.0.9 (X11/20071116) MIME-Version: 1.0 To: Mark Mitchell 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> <474CACB5.2040704@codesourcery.com> In-Reply-To: <474CACB5.2040704@codesourcery.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-ID: Ze2fi+ZX8hDp-MRioCVlVXTIQt0aqnarRKLeTdzNa-pnRqCTIjccqjV4nbWIIjiZqL X-TOI-MSGID: 11711f0a-9ad2-42bc-ae58-94e742186a5e X-IsSubscribed: yes 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/msg01536.txt.bz2 Mark Mitchell wrote: > 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? We're talking bfin-elf here, so that'd be newlib. I have no great desire to meddle in the affairs of libtool, and I'd like to again make the point that this isn't the first time I've seen the "Link tests are not allowed after GCC_NO_EXECUTABLES" message; if there is a rule that libstdc++ configure shouldn't try to link anything, it doesn't appear to be well enforced. There's another reason why the patch is helpful: the uClibc build system tries to guess an OUTPUT_FORMAT for the linker from the output of bfin-elf-gcc -mfdpic -Wl,--verbose which currently fails because without -msim, the linker is trying to pull in the wrong objects. I suppose that could be changed too, or I could try to investigate other ways of building up all the toolchains that don't require -mfdpic multilibs for bfin-elf. > 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. If you wish to approve Jie's original patch, I'm not stopping you. I'll then revert my patch if I can get some fix into the uClibc repository, but I reserve the right to reapply it in the future if libstdc++ breaks my build again. What I'm trying to do here is to ensure that gcc-4.3 will work out of the box as a compiler for our uClinux distribution. Bernd -- This footer brought to you by insane German lawmakers. Analog Devices GmbH Wilhelm-Wagenfeld-Str. 6 80807 Muenchen Sitz der Gesellschaft Muenchen, Registergericht Muenchen HRB 40368 Geschaeftsfuehrer Thomas Wessel, William A. Martin, Margaret Seif