From owner-freebsd-toolchain@freebsd.org Wed Jun 21 00:15:36 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 17AD7DA5527; Wed, 21 Jun 2017 00:15:36 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-io0-x232.google.com (mail-io0-x232.google.com [IPv6:2607:f8b0:4001:c06::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C551D79145; Wed, 21 Jun 2017 00:15:35 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: by mail-io0-x232.google.com with SMTP id y77so1247008ioe.3; Tue, 20 Jun 2017 17:15:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=GIAcVvb8lEgSMOpQ/ByZ2xz9l0JMsudb/uBWXXkl8TQ=; b=hFLFDBxlTF2iLYWsE28HX0LblQ1DgZAh+zhJ8RESQsl8zJCzeFyBvCiDcJ8L4lTTL5 usInDa2qCsk9tIRjHF0c88vj+zeLUGk8r7gC90T3KAk0/0sXbUJoBYmH/1UiRj3fnl0X +sJWidQOD+xCI+hROv8J3sQIo4Uv1wNIvdV9pZH3/Q9P67QTMmBQCG7fnu/EqJWKAhC1 pYGd2WicKC59L/h3saZ5AiMn4OeV04uoff2SeeQwkRtc+qxM5UfRQs2Mgxb/j24ame45 tZfgp9GKduo4IxUwZ7ziSiPyS9eFEP95/f6w2cmqWcjGdtwMTrwThNKPr6H5lZx8YHMl dFyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=GIAcVvb8lEgSMOpQ/ByZ2xz9l0JMsudb/uBWXXkl8TQ=; b=C91vvckj/bQltb93YZA+0Fe9VcVCEjVC4Ke0vy8k2j9DzfXo+Rot0V9g3C45n07123 aXqFITukNK+f+lp7rNNIpGmIhLfSDfbSFxCgclPvbZo+IvIILpPJkIO6LSTsUEMq1Ywg Cw4AlDbsUFbW+23X6SbZgMy5Sw0dqSaq4jZYXHa4ILlJbFLE7JtllbpCsdbdWzXbEvTA Krmp/jhE/8xq63sOmkhqmD1u/hYMCoLfg08gkj3si2OBTbcq78X2AQ5kajDUsSYZl4xJ CLSf/ldrT8wavhsxub+lY9o+vRHXEtPhXlDPsV8aDdfAS6cJO0HenNbtKqcDVnl3Xa92 2a7w== X-Gm-Message-State: AKS2vOy7GI2S4n4DDolTFF0oXll1SKUqWUkMHIDSPyMrIVfWce0AQ3la xHHJeaHanOU5rpj30aBsdX2AN73JyQ== X-Received: by 10.107.195.15 with SMTP id t15mr28276828iof.182.1498004134791; Tue, 20 Jun 2017 17:15:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.8.208 with HTTP; Tue, 20 Jun 2017 17:15:34 -0700 (PDT) In-Reply-To: References: <9B6857F6-FD8E-43B7-B142-050E51EE68AB@dsl-only.net> From: Ryan Stone Date: Tue, 20 Jun 2017 20:15:34 -0400 Message-ID: Subject: Re: arm64 on head -r320059 (e.g.) fails buildkernel with only kernel-toolchain first (not buildworld) [Bugzilla 220125] To: Dimitry Andric Cc: Mark Millard , freebsd-arm , FreeBSD Toolchain Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2017 00:15:36 -0000 On Mon, Jun 19, 2017 at 2:57 AM, Dimitry Andric wrote: > Solution B is problematic because arm_neon.h uses stdint.h types > extensively. > If I manually modify the arm_neon.h file to instead say this, the problem is avoided and the kernel builds: #ifdef _KERNEL #include #else #include #endif Do you think that the llvm devs would be willing to take a change to NeonEmitter that does this on FreeBSD? This may not be a complete solution, though, as googling seems to indicate that gcc also provides a arm_neon.h and it also #includes