From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 9A9751A1EE9 for ; Thu, 15 Sep 2016 02:49:53 -0700 (PDT) Received: by mail-wm0-x229.google.com with SMTP id i130so90381705wmf.0 for ; Thu, 15 Sep 2016 02:49:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=rZmuNVqDg232EWydYroDZShiQ4Ls12qAyQsOvBOk+/w=; b=CweixY/cxcIumJXo6XvkWgBVlPsh2E4Y4jtRRfYNIXvdRpT1oa+rVSyWZKtqRyZLPf akOXXL6XmKSWrO89Gg8L07K7HWeMLFtqwEdUpuhhZQbqvP/yhh2unclrFf0EKKOW48W2 iinK8HInIfGn4LCWiaYDLfuYq3gBi4YgkZFrE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=rZmuNVqDg232EWydYroDZShiQ4Ls12qAyQsOvBOk+/w=; b=YEJk2wv6sBzISoEg/WjCYOiPtkU0z9jmL8fjkvP192sUkNVgqjbVITEdcR1MMvHwtM Ri/56+WStvM+fmer6/35EmVuKG0s3JDW23Pu4WkQspGaeUbBoXnX55mZ0Ul8SEHUPoDs 5FBDbUrxhl1MvhcUf+H1X0h7P/1uRAB4xbf63Tive/HJzxn0yDvu0DAidfsbQahlXlIj +zC6VxGaWnvyPSYspPMdAwi2AzZSDggB6iTEdOQdBygoBj/UWLGJXdlGb+N2FO9x8Hyz xOq09MdZprQFK2q0RiREMph8NLlQbskRiKeXAWs3ypQsoxAmQFd3BY1Nuyz7SVh1LL0B fv4g== X-Gm-Message-State: AE9vXwMeJJyj0+8CzkRfqVcetDg+Ss8Vzn2N6bQH14awN8Ovphf55FV+bDLSjStuK21cAQQs X-Received: by 10.28.54.196 with SMTP id y65mr2033260wmh.73.1473932992045; Thu, 15 Sep 2016 02:49:52 -0700 (PDT) Received: from bivouac.eciton.net (bivouac.eciton.net. [2a00:1098:0:86:1000:23:0:2]) by smtp.gmail.com with ESMTPSA id ya1sm2606050wjb.23.2016.09.15.02.49.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Sep 2016 02:49:51 -0700 (PDT) Date: Thu, 15 Sep 2016 10:49:49 +0100 From: Leif Lindholm To: Andrew Fish Cc: edk2-devel@lists.01.org Message-ID: <20160915094949.GF16080@bivouac.eciton.net> References: <20160907152701.GG16080@bivouac.eciton.net> <16C7C619-A87D-4FCD-AD7C-145E554C91C1@apple.com> MIME-Version: 1.0 In-Reply-To: <16C7C619-A87D-4FCD-AD7C-145E554C91C1@apple.com> User-Agent: Mutt/1.5.23 (2014-03-12) 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: Thu, 15 Sep 2016 09:49:54 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Andrew, list, Just a follow-up. On Wed, Sep 07, 2016 at 08:34:47AM -0700, Andrew Fish wrote: > > 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. > > 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. I had a chat with our toolchain guys, and apparently this bug was fixed over 5 years ago for the BSD platforms (including OS X), but for some reason didn't get carried across to GNU: https://llvm.org/bugs/show_bug.cgi?id=9777 They've now put on their schedule to fix this behaviour for GNU also. Regards, Leif