From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24486 invoked by alias); 2 May 2005 07:57:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 24463 invoked by uid 48); 2 May 2005 07:57:53 -0000 Date: Mon, 02 May 2005 07:57:00 -0000 Message-ID: <20050502075753.24462.qmail@sourceware.org> From: "ebotcazou at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050429073316.21277.info@yourkit.com> References: <20050429073316.21277.info@yourkit.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug target/21277] Runtime error with C++ shared library and --disable-shared X-Bugzilla-Reason: CC X-SW-Source: 2005-05/txt/msg00211.txt.bz2 List-Id: ------- Additional Comments From ebotcazou at gcc dot gnu dot org 2005-05-02 07:57 ------- > readelf -r libq.so | grep R_SPARC_WDISP30 gives the following: OK, the fundamental problem is that you're trying to build shared libraries with a compiler configured with --disable-shared. That's not really intended (and might cause problems for exception propagation in C++). The fix is indeed to recompile every GCC library with -fPIC. Try to configure at toplevel --with-pic, but I'm not sure the option is valid there. Otherwise you'll need to specifically configure libstdc++-v3 --with-pic. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21277