Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp404798rwd; Thu, 8 Jun 2023 02:20:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4qyo+FS+0GNz57wlW1fVEaFejbKorxKQilR0IdKqxJGVcl8XrJFaIsGh4l+fMKrcVDaOKf X-Received: by 2002:a05:6808:8eb:b0:398:5929:fab2 with SMTP id d11-20020a05680808eb00b003985929fab2mr8018570oic.14.1686216040650; Thu, 08 Jun 2023 02:20:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686216040; cv=none; d=google.com; s=arc-20160816; b=DhWYUyl9SXffLUCodZAucRGXka7bBOg7cd6axyUguY/N9+VKO2oN4OXM0XChKjesj0 xbz55sqfsjSsba5uNva1gNH0qJZWG7H3LdMF2MjfrftJ2shnexWKSOeC+K6GYCTuAAo6 PzsNQLhy3KzYYSs7kmrmGHMKXpHWBfmuxXkrg5DdHEKGa7k9ANkCC+JW46FfC34gOX6o zjpjS0FeQf5LFDrnysAD0Mn+NK9ozOrSHvHIep4Qp3lG9Buw2XC+SQQmdEooN3hYkIPz QIwSLZWGSnEtjfo0MkcRBHiUDKBbczttBAUxxgd8EhoovF68qteswMScL9fRmMKbKHHK MzaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=csuabZhR/fVoMKBedCTUlYJjbjNklGLfMGm8wrbspAc=; b=xcCKPivX+q7LHrsAwfmq8tvH3vmUA+nHv8JVrdFzU6WDe67ZrkM+7EPY+nkUgqJqTA wXf+nPGDXEn5DMoEdBof6QrtT4z7+/OzBgL7dcewSyjbW+LaeG8Bw/84yL72dzNxahBV +dWDeYvTRHsgIrPhUsuYzkAPOFxYK+XxA26YAguHqa551NeRklG9FPcXjuu0JmksK85c +LiLnsQTSUu7c79vGnUBP/gsc4xm9sgYJovTW4lCPHWgRQq87a314am4QIM7UUAotAda gm9d0ePJRDw1FpnwYTErr55m4xgC43ivOQzLTqzpavBS3eePiVq6TgZ6aJv+znqUOUTn C5jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=knWIgt8G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c16-20020a17090a8d1000b002533b5dc672si763952pjo.146.2023.06.08.02.20.28; Thu, 08 Jun 2023 02:20:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=knWIgt8G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235487AbjFHIjY (ORCPT + 99 others); Thu, 8 Jun 2023 04:39:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233839AbjFHIjW (ORCPT ); Thu, 8 Jun 2023 04:39:22 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D23F926B8; Thu, 8 Jun 2023 01:39:20 -0700 (PDT) Received: from [192.168.10.48] (unknown [119.152.150.198]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: usama.anjum) by madras.collabora.co.uk (Postfix) with ESMTPSA id 1F54F6605733; Thu, 8 Jun 2023 09:39:15 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1686213559; bh=PRBO+SGpGVNVyEZwkfuIfWdn28x8QrprhmLGoj83lEI=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=knWIgt8GxFoafW6fQ7Gl2m9yA19hEzmpTCohAkDxUxO3y4WLgFJok0+mq5Vj5hpkT Zz2M5hRNHViLxADau0oS5yIiFUtDREYVj+w6KTHJMWyPw6sB2KG4c0gWpi+551QzWU /fh5Zlgpkak976cefjfBisBG84cXboeSJtp32WppNWYfBBRMy7irzJsZfb521evnl4 5655kYkjZBu2Mh9X2GhtxItA8AsB6QLA9uoMqjkaxT44XKsLvXqZd8U2qUflTw7nQo vbh7hEzc1vjwnccGviigLcrl0aczTRwpKqBTYGckmZqzf3hREvD7SrjWr9KejJpitc g7mZOGyHDvM4w== Message-ID: <11b94ce7-d7e3-1935-307b-5a0a0f32739f@collabora.com> Date: Thu, 8 Jun 2023 13:39:11 +0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Cc: Muhammad Usama Anjum , Shuah Khan , Nathan Chancellor , John Hubbard , David Hildenbrand , Jonathan Corbet , Peter Xu , Andrew Morton , Anders Roxell Subject: Re: selftests: -e error: missing kernel header files. Please run this and try again Content-Language: en-US To: Naresh Kamboju , Linux-Next Mailing List , open list , "open list:KERNEL SELFTEST FRAMEWORK" , lkft-triage@lists.linaro.org References: From: Muhammad Usama Anjum In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/8/23 1:21 PM, Naresh Kamboju wrote: > The make kselftest-install failed on Linux next 20230608. > > make --silent --keep-going --jobs=8 > O=/home/tuxbuild/.cache/tuxmake/builds/1/build > INSTALL_PATH=/home/tuxbuild/.cache/tuxmake/builds/1/build/kselftest_install > ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- 'HOSTCC=sccache clang' > 'CC=sccache clang' LLVM=1 LLVM_IAS=1 kselftest-install Around 6-8 months ago, selftests used to build kernel headers from the source tree automatically and were using those to build all applications. But this behavior got changed where user need to build header manually first before building kselftest because auto header build was in-consistent in some cases. So from several months people, who were unaware of this are building kselftests with installed kernel headers in their distro. This was creating failure for some newer tests for people. They didn't know that selftests are supposed to build with kernel headers from source instead from locally installed headers in distro. So a patch has been introduced which spits error if kernel headers aren't built already: https://lore.kernel.org/all/20230606071637.267103-12-jhubbard@nvidia.com To fix things for your case, please build kernel headers by `make headers ...` and then build kselftests. The error is trying to say the same thing. > > make[3]: Entering directory '/builds/linux/tools/testing/selftests/alsa' > > -e error: missing kernel header files. > Please run this and try again: > > cd /builds/linux/tools/testing/selftests/../../.. > make headers > > make[3]: Leaving directory '/builds/linux/tools/testing/selftests/alsa' > make[3]: *** [../lib.mk:77: kernel_header_files] Error 1 > > Reported-by: Linux Kernel Functional Testing > > Links, > === > https://storage.tuxsuite.com/public/linaro/lkft/builds/2QsWmEgSFF9iwodTUrWsdopV4Qp/ > > -- > Linaro LKFT > https://lkft.linaro.org -- BR, Muhammad Usama Anjum