From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29666 invoked by alias); 25 Feb 2016 17:44:43 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 29656 invoked by uid 89); 25 Feb 2016 17:44:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=H*MI:cygwin, H*M:cygwin X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 25 Feb 2016 17:44:42 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 5AF7046217 for ; Thu, 25 Feb 2016 17:44:41 +0000 (UTC) Received: from [10.10.116.34] (ovpn-116-34.rdu2.redhat.com [10.10.116.34]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u1PHidF7001074 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 25 Feb 2016 12:44:41 -0500 From: Yaakov Selkowitz Subject: gcc: link scan order of /usr/lib and /usr/lib/w32api To: cygwin@cygwin.com Message-ID: <56CF3D8B.2050703@cygwin.com> Date: Thu, 25 Feb 2016 17:44:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-02/txt/msg00393.txt.bz2 JonY, It has been brought to my attention that /usr/lib/w32api is now taking precedence over /usr/lib, which is a result of this commit: https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=227962 https://github.com/gcc-mirror/gcc/commit/c1b7008c95f97dd7c11997e7be7be7b58d113db0 This is incorrect, and results in the unfortunately-named w32api libuuid.a being found instead of the completely unrelated *NIX libuuid (which is what *NIX software expects to find). Linking from /usr/lib/w32api is handled in binutils, and this is the fix that my cygwin cross-toolchains are using to support sysroots: https://github.com/cygwinports/cygwin32-binutils/blob/master/01-w32api-sysroot.patch Please revert r227962. -- Yaakov -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple