From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in6.apple.com (mail-out6.apple.com [17.151.62.28]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 87B401A1EEB for ; Wed, 7 Sep 2016 08:34:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1473262488; x=2337176088; h=From:Sender:Reply-To:Subject:Date:Message-id:To:Cc:MIME-version:Content-type: Content-transfer-encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-reply-to:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=7e0QMecenP94l0RADEsexf3Wqur9t8s4mxIsHa5PON8=; b=LlnCFpXOmw9Uq2/a7mU1Ei/EXDtkLyaG6jVe5z6dvSMch6Z/o6jEwKm2v158TAY1 PduPkKltYMMYGECSIVj1dIlCGIUnzuBjJ/gB/wFTksWQ/xDjwMqqd84voAetiszu 1im2CeUhShsdr0f/wQ9F9Krr4JDwSWaEsOD0KtR5nZJocSAusjSBNEyVgQf9lgcJ hUZzBXAg4LWonB29//t2FtZQYUHA9xu+O9LCDSTOjcxzxnXW6lNvwv8Us9QfKsuk pR1c600Q/kL8ECVCO4f5PGkLMTxa5RmX0UQ9mzT2evzt6daJm6PUUMT4U0RXfeLJ u8T6mJyEc6RSq+4ESfu3jg==; Received: from relay2.apple.com (relay2.apple.com [17.128.113.67]) by mail-in6.apple.com (Apple Secure Mail Relay) with SMTP id 24.5B.07752.79330D75; Wed, 7 Sep 2016 08:34:47 -0700 (PDT) X-AuditID: 11973e15-f798f6d000001e48-ea-57d03397390b Received: from nwk-mmpp-sz12.apple.com (nwk-mmpp-sz12.apple.com [17.128.115.204]) by relay2.apple.com (Apple SCV relay) with SMTP id 71.99.09148.79330D75; Wed, 7 Sep 2016 08:34:47 -0700 (PDT) MIME-version: 1.0 Received: from [17.153.45.195] by nwk-mmpp-sz12.apple.com (Oracle Communications Messaging Server 8.0.1.1.0 64bit (built Jun 15 2016)) with ESMTPSA id <0OD500E5X4LZFL60@nwk-mmpp-sz12.apple.com>; Wed, 07 Sep 2016 08:34:47 -0700 (PDT) Sender: afish@apple.com From: Andrew Fish In-reply-to: <20160907152701.GG16080@bivouac.eciton.net> Date: Wed, 07 Sep 2016 08:34:47 -0700 Cc: edk2-devel@lists.01.org Message-id: <16C7C619-A87D-4FCD-AD7C-145E554C91C1@apple.com> References: <20160907152701.GG16080@bivouac.eciton.net> To: Leif Lindholm X-Mailer: Apple Mail (2.3112) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrGLMWRmVeSWpSXmKPExsUi2FDorDvd+EK4we0TVhZ7Dh1ltvi0ew+L A5PHnWt72Dy6Z/9jCWCK4rJJSc3JLEst0rdL4MqYdOMnY8FtnoqL84UaGGdzdTFyckgImEj0 3t/HAmGLSVy4t56ti5GLQ0hgL6PE27d3WGCKfs3bxA6ROMQocbLnADtIgldAUOLH5HtARRwc zALyEgfPy4KEmQW0JL4/amWBqH/HKPH+xBk2kISwgLjEuzObmCFsQ4mO7qtgNpuAssSK+R/A ZnIKWEi0PZ3OCmKzCKhKXJl+kwliqLTEw4nHWSH22kj8WrwC7DghAXOJlQuugdkiAjoSp7/+ Y4Y4WlZi34YFYN9ICGxgk9i/rpNlAqPILCR3z0K4exaSuxcwMq9iFMpNzMzRzcwz00ssKMhJ 1UvOz93ECAr46XaiOxjPrLI6xCjAwajEw5sgeyFciDWxrLgy9xCjNAeLkjivmOX5cCGB9MSS 1OzU1ILUovii0pzU4kOMTBycUg2Mvmayd812rE1rzJRxt/bbsKC08oPkbOWNXyYdTp0Qm294 0cHe3PbvooZ1K3Ze4ZixqqHiSeKp+dvr7nkfXeX+/e/8OYElUzreqIUna+cee5Bp8XNiaV7T 20SJ1Sv2P9G7HrKkg3viaauzgW6S/9r64lbNFajt6Q09cUBaoXXTw1brnypXuN8IK7EUZyQa ajEXFScCAN1wU/BZAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpkkeLIzCtJLcpLzFFi42IRbCg+ozvd+EK4wfvn5hZ7Dh1ltvi0ew+L A5PHnWt72Dy6Z/9jCWCK4rJJSc3JLEst0rdL4MqYdOMnY8FtnoqL84UaGGdzdTFyckgImEj8 mreJHcIWk7hwbz1bFyMXh5DAIUaJkz0HwBK8AoISPybfY+li5OBgFpCXOHheFiTMLKAl8f1R KwtE/TtGifcnzrCBJIQFxCXendnEDGEbSnR0XwWz2QSUJVbM/wA2k1PAQqLt6XRWEJtFQFXi yvSbTBBDpSUeTjzOCrHXRuLX4hUsILaQgLnEygXXwGwRAR2J01//MUMcLSuxb8MCtgmMgrOQ nDoL4dRZSE5dwMi8ilGgKDUnsdJIL7GgICdVLzk/dxMjOEALnXcwHltmdYhRgINRiYc3QfZC uBBrYllxZS4wLDiYlUR4HY2AQrwpiZVVqUX58UWlOanFhxiTge6fyCwlmpwPjJ68knhDExMD E2NjM2NjcxNz0oSVxHm3HjkaLiSQnliSmp2aWpBaBLOFiYNTqoExeB+3Me9RhlltjKVmrEm9 r36uLs9jjxc6vPKwXsOTE8t9Xjp91vyveeycx2URdRHH0qNmlt0Rew89P/HtTOU3+9iSsHLD j++yw3TdAvwCzNZmBj63/bHYVO3GlNirP9z84lg57NpetPddvc560UyCdf59cakTRdbJ+v8u TfcWufu1oPWQ2WwlluKMREMt5qLiRAAXuHZnlAIAAA== Subject: Re: CLANG cross-compilation issue X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2016 15:34:48 -0000 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII > On Sep 7, 2016, at 8:27 AM, Leif Lindholm wrote: > > Hi all, > > This is a report for the archive, rather than anything easily fixable. > While testing one of Ard's sets against CLANG, I tripped over a > behaviour exposed by commit a1b8baccc30b > (BaseTools GCC: use 'gcc' as the linker command for GCC44 and later). > > This commit changes the CLANG profiles to invoke the linker via the > 'clang' command, rather than as previously directly calling ld (with > appropriate cross toolchain prefix where needed). > > Turns out clang, at least the one packaged in Debian 'Jessie', does > not scan the PATH when looking for cross-variants of GNU ld, but > rather goes and looks for it in some commonly used locations. Failing > to find any, it then falls back to the system-provided ld. > > The symptom is a failed link step with the message: > /usr/bin/ld: unrecognised emulation mode: aarch64linux > > As a workaround, I was able to get my build functional again by > creating a symbolic link /usr/bin/aarch64-linux-gnueabi-ld pointing at > the actual location of my cross-ld. > Leif, I'm not sure it works the same as Xcode, but one of the search paths is often relative to the current location of the tools. This could be macOS specific as the tools don't install in /usr/bin anymore, and those locations just contain a reflector to the active toolchain. Thanks, Andrew Fish > / > Leif > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel