From owner-freebsd-current@FreeBSD.ORG Wed Dec 28 15:57:03 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 125CE106566B; Wed, 28 Dec 2011 15:57:03 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id C7FAD8FC14; Wed, 28 Dec 2011 15:57:02 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:110:9155:3851:5ce] (unknown [IPv6:2001:7b8:3a7:0:110:9155:3851:5ce]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id DD9035C37; Wed, 28 Dec 2011 16:57:01 +0100 (CET) Message-ID: <4EFB3C4F.2020108@FreeBSD.org> Date: Wed, 28 Dec 2011 16:57:03 +0100 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: "O. Hartmann" References: <4EFAF3FC.60002@zedat.fu-berlin.de> In-Reply-To: <4EFAF3FC.60002@zedat.fu-berlin.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: Current FreeBSD , Ports FreeBSD Subject: Re: /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/../../../libstdc++.a: could not read symbols: Bad value X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2011 15:57:03 -0000 On 2011-12-28 11:48, O. Hartmann wrote: ... > /usr/local/bin/ld: > /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/../../../libstdc++.a(functexcept.o): > relocation R_X86_64_32 against `std::bad_exception::~bad_exception()' > can not be used when making a shared object; recompile with -fPIC > /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/../../../libstdc++.a: > could not read symbols: Bad value > collect2: ld returned 1 exit status What happens if you compile and link the following simple program with g++46: #include int main(void) { std::cout << "Hello World!" << std::endl; return 0; } Does it fail with the same type of link error, e.g. linking to the libstdc++.a instead libstdc++.so? It would be nice if you can add -v to the command line, and paste the output here. I suspect your g++46 port is busted, for some reason.