From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C7149C43334 for ; Fri, 8 Jul 2022 17:01:40 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3841E83E60; Fri, 8 Jul 2022 19:01:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="aUwmJ1xU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AAEF88433F; Fri, 8 Jul 2022 19:01:37 +0200 (CEST) Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 40B3E83A07 for ; Fri, 8 Jul 2022 19:01:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ralph.siemsen@linaro.org Received: by mail-pl1-x62c.google.com with SMTP id d5so16786963plo.12 for ; Fri, 08 Jul 2022 10:01:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2y3Ygcs+U1xC86zGJUXcnnWYhdruFw9jj0J+zi08TAI=; b=aUwmJ1xUSd0N6xfOvXEiJBJeqmvvNBwlok6HzBug20wZW2oqzHJ/TUaQKMODxhQr7z 1UJuEiBe97GDb40BqVFQ1jT3yMId8TpDeZH0vhD2onVo9YFUW05yVwVbPnCyCyzimyRj sVdPFS1qHpUUkx8R4aYsjJDrS/cGiTf3a7RDD2TlebbFh2TXhpW0SU7/kOFfdoPBftpm EytDetb84QCAllJsS/CibFbJhAs3GbmGXAb3XWPDv556Xi4u0nDyaSGKdqVT8yIOi+fo D+qXRyLelbMWLgeJ9Qcc/WLoCEHeJSUGZsorQHkxCwi6971sk49/wb2oU0Y9s5osAaQV dpaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2y3Ygcs+U1xC86zGJUXcnnWYhdruFw9jj0J+zi08TAI=; b=hzu8mqalvfKhKIy15YgQlWr4FQWiOBO7eXeFvcHcVyJXRCADXiaU8L7WzUxVPMwqyh StzBT5XW9B1xdUQ6uZeadVPz6m19EcDp1Zx+jxIl0xh4HYIl2fZq7U8HgsFtsWoffILi ctGbS63IBIZTdgR9A1v/KM988Bk/Mo5uMtg+zo0BTxAZh+GmMaLf+9EKzSKdCNI8/6qZ zqUjTn/IGbWI6s13mhTV1o76x8Mc1Fgy7zteVBz/OsLFvTEQJ7Ta6XQEN+lc0FSo3Rfl ixqHns3rP3nnAgWk5y8uERNz7Cd6j0kQsopmwtceZ+nlW5o/X/O5w9bYmZzu25T5IyYN 85Bg== X-Gm-Message-State: AJIora85TEENKozzogjyOsxF9kh6XBpgDFvD2MUsUYt3VflsSA1KrhPJ tahrHa+tlLKIjXRScrztjvUZBiwgCsP55+lTvOR2qQ== X-Google-Smtp-Source: AGRyM1v4+lMWTP1VStOpX46G4QrKE4fFQYXKPg/nufDRxDStS/+dFOXMuQ5O3xndoOeY52xbiKOAlxxXp6ew2A8+Cao= X-Received: by 2002:a17:90a:2bcc:b0:1ed:38d8:1413 with SMTP id n12-20020a17090a2bcc00b001ed38d81413mr865630pje.75.1657299693502; Fri, 08 Jul 2022 10:01:33 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ralph Siemsen Date: Fri, 8 Jul 2022 13:01:22 -0400 Message-ID: Subject: Re: Error: cmd/libkiosk_crypto.c:5:10: fatal error: unistd.h: No such file or directory To: Thu Ra Cc: u-boot@lists.denx.de Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On Thu, Jul 7, 2022 at 7:07 AM Thu Ra wrote: > > Error: cmd/libkiosk_crypto.c:5:10: fatal error: unistd.h: No such file or directory This file (libkiosk_crypto.c) is not part of u-boot. In the build log, we can see that it is copied into the u-boot tree: cp ../common/src/libkiosk_crypto.c u-boot-2022.04/cmd/libkiosk_crypto.c You will likely need to find out where this code comes from, and contact the author(s). U-boot executes before Linux kernel and normal userspace programs, so the regular C runtime library (glibc) is not available to u-boot. The header "unistd.h" defines prototypes for the C runtime library. It does not make sense to use this within u-boot source code. Good luck! R