From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7732 invoked by alias); 18 Jul 2011 11:31:20 -0000 Received: (qmail 7724 invoked by uid 22791); 18 Jul 2011 11:31:19 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from snape.CeBiTec.Uni-Bielefeld.DE (HELO smtp-relay.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 18 Jul 2011 11:31:05 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 34EC34D8; Mon, 18 Jul 2011 13:31:04 +0200 (CEST) Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Vhk-GBnzHMO2; Mon, 18 Jul 2011 13:31:02 +0200 (CEST) Received: from manam.CeBiTec.Uni-Bielefeld.DE (manam.CeBiTec.Uni-Bielefeld.DE [129.70.161.120]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPS id 118EB4D7; Mon, 18 Jul 2011 13:31:02 +0200 (CEST) Received: (from ro@localhost) by manam.CeBiTec.Uni-Bielefeld.DE (8.14.4+Sun/8.14.4/Submit) id p6IBV1ub011419; Mon, 18 Jul 2011 13:31:01 +0200 (MEST) From: Rainer Orth To: sje@cup.hp.com Cc: Tristan Gingold , GCC Patches , Douglas Rupp Subject: Re: CFT: Move unwinder to toplevel libgcc References: <1310058332.10986.2616.camel@hpsje.cup.hp.com> <1310078773.10986.2627.camel@hpsje.cup.hp.com> <1310491090.10986.2693.camel@hpsje.cup.hp.com> <1310594583.10986.2819.camel@hpsje.cup.hp.com> Date: Mon, 18 Jul 2011 12:07:00 -0000 In-Reply-To: (Rainer Orth's message of "Fri, 15 Jul 2011 11:06:14 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (usg-unix-v) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2011-07/txt/msg01393.txt.bz2 Steve, >> It looks like a prefix is missing somewhere since it is trying to access /libunwind.so. This >> may be something messed up in my build area again but I did run autoconf in libgcc so I am >> not sure what is going on. I'll dig around some more but I thought I would see if this looks >> familiar to you. > > It didn't, but I now see what's going on: gcc/config.gcc has > > *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu) > [...] > tmake_file="t-slibgcc-elf-ver t-linux" > > t-slibgcc-elf-ver has the whole shebang necessary to build versioned ELF > shared libraries, among others SHLIB_DIR which is missing above. This > should be dealt with by using > > tmake_file="$tmake_file t-slibgcc t-slibgcc-elf-ver" > > in libgcc/config.host. > > t-linux adds > > SHLIB_MAPFILES += $(srcdir)/config/libgcc-glibc.ver > > but there's more SHLIB_* related stuff in the regular gcc/config ia64 > t-* files used on ia64*-*-linux*: > > ia64/t-ia64:SHLIB_MAPFILES += $(srcdir)/config/ia64/libgcc-ia64.ver > t-libunwind:SHLIB_LC = -lunwind -lc > ia64/t-glibc:SHLIB_MAPFILES += $(srcdir)/config/ia64/libgcc-glibc.ver > > This seems all so involved and entangled with the t-slibgcc* stuff that > it's probably best to keep out of this patch. I'll try to come up with > something over the week, either fixing up this patch that it should > handle things correctly or splitting it out into its own, either > together with the rest of SHLIB_* handling or separate and on top of > that. I had a fresh look and it seems this isn't as bad as it might have been: the only SHLIB_ macros used are SHLIB_(DIR|OBJS|SOLINK|SLIBDIR_QUAL), which are all present in libgcc/config/t-slibgcc and are substituted by configure. While one might split them out of t-slibgcc for reuse by both libgcc_s and libunwind or also substitute them t-libunwind-elf, this is probably overkill. Could you please try to insert t-slibgcc in front of t-libunwind-elf in the ia64*-*-linux* case in libgcc/config.host? Thanks. Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University