From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20344 invoked by alias); 22 Nov 2011 22:10:00 -0000 Received: (qmail 20336 invoked by uid 22791); 22 Nov 2011 22:09:59 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,TW_XG X-Spam-Check-By: sourceware.org Received: from p3plsmtpa06-04.prod.phx3.secureserver.net (HELO p3plsmtpa06-04.prod.phx3.secureserver.net) (173.201.192.105) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Tue, 22 Nov 2011 22:09:47 +0000 Received: (qmail 28002 invoked from network); 22 Nov 2011 22:09:47 -0000 Received: from unknown (173.164.101.125) by p3plsmtpa06-04.prod.phx3.secureserver.net (173.201.192.105) with ESMTP; 22 Nov 2011 22:09:47 -0000 Received: from localhost (sanders [IPv6:::1]) by sanders.100acres.us (Postfix) with ESMTP id 4634F82 for ; Tue, 22 Nov 2011 14:09:45 -0800 (PST) Date: Wed, 23 Nov 2011 00:12:00 -0000 Message-Id: <20111122.140945.1544243502220868436.aran@100acres.us> To: gcc-help@gcc.gnu.org Subject: Linking libgcc with xgcc fails in build of trunk From: Aran Clauson Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-11/txt/msg00227.txt.bz2 All, I'm trying to build trunk with C only on NetBSD 5.1. I've gotten to the point where libgcc is built with xgcc and I get a failure when linking libgcc_s.so with: /usr/bin/ld: /usr/local/lib: No such file: I replaced ld with echo to see the link line and /usr/local/lib is sent to the linker as a file. In $(BUILD)/gcc/spec is a section with the following: *link_libgcc: %D /usr/local/lib I tried removing this line, but the file is regenerated by the make system. Since others have built and are building trunk, I assume that I have a misconfiguration. I am using the same configuration options that successfully built gcc-4.6.2. Any help is appreciated. Aran