From patchwork Sat Aug 27 16:14:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1671160 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MFMH02RxTz1yh1 for ; Sun, 28 Aug 2022 02:14:50 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 321C260D7F; Sat, 27 Aug 2022 16:14:48 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 321C260D7F X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dPHbmCbzTW5S; Sat, 27 Aug 2022 16:14:47 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 4AD7D60D76; Sat, 27 Aug 2022 16:14:46 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 4AD7D60D76 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 975C11BF314 for ; Sat, 27 Aug 2022 16:14:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 73002404BA for ; Sat, 27 Aug 2022 16:14:45 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 73002404BA X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YcgxdrmSU03n for ; Sat, 27 Aug 2022 16:14:44 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 69270401B7 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by smtp2.osuosl.org (Postfix) with ESMTPS id 69270401B7 for ; Sat, 27 Aug 2022 16:14:44 +0000 (UTC) Received: by mail-wr1-x42f.google.com with SMTP id e13so4254385wrm.1 for ; Sat, 27 Aug 2022 09:14:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=L0oK/iMge38zbZ2XGLJRImbOcra4L7I8PgDSRmujYjI=; b=NUWlmjn2lpweX6TjrDNDKQh2STbbzHVDh9zWUXic0JtRwajwz+TiWc9iRtFMdKbs8y 4QkPPbfbGqo1iACTCAkn4QiQwXYK4iWf5kP8hKSasMuRIJALYT54ueWiS8Umes48YGRN /RQVI0IUOWtENm8R1EB+mUDvpXC59VOaOzELvJP9hX3EIV0ttHxLLMGZR5ktovm2BHLa D4zLriN/TCFr0rgD209hswQf+MoZaJB9XwLIUsuXcjAqaJgVYYPgKUF5nzNT6kT5D7hH 1dw77r4nBnWlxla1ouzfki6WgpqlQRCYH39goWt2I21UpuKT8WEa4bY9Y4tcxgcyd5TQ C2lw== X-Gm-Message-State: ACgBeo1xRu1QC2E6WSYDUDiFTEZvywbfxrbjYC9UzZUlReHRhXvZZLf5 173uIevW6Ntu9+XqJNdyBKbUXcc6JWI= X-Google-Smtp-Source: AA6agR6G0CIs1FEXzjxn1I3sPax6Pw5xPUBNI0s9PZAtMaqBAn0x2sUVWmsbF+Woe4w2GifIpbdp4Q== X-Received: by 2002:a5d:6f08:0:b0:225:3bc2:ac94 with SMTP id ay8-20020a5d6f08000000b002253bc2ac94mr2303674wrb.203.1661616882457; Sat, 27 Aug 2022 09:14:42 -0700 (PDT) Received: from atlas.home (2a01cb058f8a18003dbee9eed79eb521.ipv6.abo.wanadoo.fr. [2a01:cb05:8f8a:1800:3dbe:e9ee:d79e:b521]) by smtp.gmail.com with ESMTPSA id p17-20020a5d6391000000b0022511d35d5bsm2696016wru.12.2022.08.27.09.14.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Aug 2022 09:14:41 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Sat, 27 Aug 2022 18:14:30 +0200 Message-Id: <20220827161431.333659-1-romain.naour@gmail.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=L0oK/iMge38zbZ2XGLJRImbOcra4L7I8PgDSRmujYjI=; b=OhFnXVw14XmI3cO2ik4h5UHvGHCCeodLpf33VnEoCtSggmbnd5oR6tX/seWXcFOA0w 7bacspp2jcop3p9ue+wj3yf63tqE2qBhVQKTibS9dXvQQ7g+21U7R97wtGI0kj5vrSBY Oj2x7pGfPHmwPonXOERCoGpRc9R9PlGGNF5ER2LW8aIaetZWr+aXEt5U7uxXHsCe6s4B Lu+2M7Q4xPxdHoD41mbQTfHBwmhknwscIUZQt7AEyu6z9z2nMseTOFlhWHOOk05Xm8La qgRNYl5tHGqS8zqhnAOSx1KJ4Xvz/ljQxVIfcP3GQi9P5KpeQGH/Q5wUhepWngm4BIN/ nSrw== X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=OhFnXVw1 Subject: [Buildroot] [for-master 1/2] package/glibc: glibc on or1k needs a toolchain w/ headers >= 5.4 X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Romain Naour Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Commit [1] enabled glibc on or1k since it's now supported but it requires a toolchain with linux-headers >= 5.4. From [2]: "Here we define the minumum linux kernel version at 5.4.0, as that is the long term support version where 32-bit architectures start to support 64-bit time API's. The OpenRISC kernel had some bugs up until version 5.8 which caused issues with glibc fork/clone, they have been backported to 5.4 but not previous versions." Fixes: checking installed Linux kernel header files... 3.2.0 or later checking for kernel header at least 5.4.0... too old! configure: error: *** The available kernel headers are older than the requested https://gitlab.com/buildroot.org/toolchains-builder/-/jobs/2875256686 [1] 68d0aede597d32816c5b2ff32de0ce33cc14eb93 [2] https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=0c3c62ca7d9ff3bdacdd13e636bc858101e3e288 Signed-off-by: Romain Naour --- package/glibc/Config.in | 1 + toolchain/toolchain-buildroot/Config.in | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/package/glibc/Config.in b/package/glibc/Config.in index 23cbfcd9aa..ba9f691d80 100644 --- a/package/glibc/Config.in +++ b/package/glibc/Config.in @@ -36,6 +36,7 @@ config BR2_PACKAGE_GLIBC_SUPPORTS depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5 || !BR2_MIPS_NAN_2008 depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0 || !BR2_RISCV_64 depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1 || !BR2_arc + depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4 || !BR2_or1k if BR2_TOOLCHAIN_BUILDROOT_GLIBC diff --git a/toolchain/toolchain-buildroot/Config.in b/toolchain/toolchain-buildroot/Config.in index 836af3b22a..154cf69ef1 100644 --- a/toolchain/toolchain-buildroot/Config.in +++ b/toolchain/toolchain-buildroot/Config.in @@ -67,6 +67,10 @@ comment "glibc on ARC needs a toolchain w/ headers >= 5.1" depends on BR2_arc depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1 +comment "glibc on or1k needs a toolchain w/ headers >= 5.4" + depends on BR2_or1k + depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4 + config BR2_TOOLCHAIN_BUILDROOT_MUSL bool "musl" depends on BR2_PACKAGE_MUSL_SUPPORTS From patchwork Sat Aug 27 16:14:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1671161 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MFMHF2QSjz1yhh for ; Sun, 28 Aug 2022 02:15:05 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 72ECF8194A; Sat, 27 Aug 2022 16:15:01 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 72ECF8194A X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6WKG8QC2fgjl; Sat, 27 Aug 2022 16:14:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id A2CC4818AC; Sat, 27 Aug 2022 16:14:58 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org A2CC4818AC X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id AC95F1BF314 for ; Sat, 27 Aug 2022 16:14:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 8825960D78 for ; Sat, 27 Aug 2022 16:14:46 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 8825960D78 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lOeHrONTXsDz for ; Sat, 27 Aug 2022 16:14:45 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 7548D60D4D Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by smtp3.osuosl.org (Postfix) with ESMTPS id 7548D60D4D for ; Sat, 27 Aug 2022 16:14:45 +0000 (UTC) Received: by mail-wr1-x42f.google.com with SMTP id e20so5138755wri.13 for ; Sat, 27 Aug 2022 09:14:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=7a/P4MlUj7CXqj2k3zDG+Wi2yfkkPj6o/SyzONwbdYU=; b=5mOt2saT3F++0NNlRKS92TZzrkTMuTvCTgOm93p4m5U6QpEapIXo/qadiyD2lJVf9c cAJhXVB3No0wIant4FziXGyvobGmD9Iasz2p1ao85um2EZFPUSC1Hs/EpHcieVNgoBUx WDqX/szwy5HU/E468gIxZx3S4LkxFfqPWFj6mqBnwGiB2QX0v3U9ZMlcv9ovD1K8W8UC drp6BvdrCGESLZpPNCRNn8kR49iMXtqox5lLg3unRlFbQhSH+4jQuKSD1zgDkRL/+pAi 6zo/tRCunJ6LwhEV2fVKkdf6DwpNYeR27AqoBeHXS/LBFmLDOCMh5tKG2p04vtHJ1OTp Ft8Q== X-Gm-Message-State: ACgBeo2SxuZtc9n/C7Q14TWMzLQpr/Zjjd7tH/f6T5OZcMBdQcRvP49e KZneth9ZkG1OWLMwzdhZNXq7c/ZDJKw= X-Google-Smtp-Source: AA6agR74tLKDdiCxRNxAaOr/KGPo7yGJSR5n/1UKm3N2WI7uThJcc9bUQuQ3Ffy9ikpf0jKman1UzA== X-Received: by 2002:a5d:5941:0:b0:225:3fc3:d923 with SMTP id e1-20020a5d5941000000b002253fc3d923mr2444802wri.522.1661616883632; Sat, 27 Aug 2022 09:14:43 -0700 (PDT) Received: from atlas.home (2a01cb058f8a18003dbee9eed79eb521.ipv6.abo.wanadoo.fr. [2a01:cb05:8f8a:1800:3dbe:e9ee:d79e:b521]) by smtp.gmail.com with ESMTPSA id p17-20020a5d6391000000b0022511d35d5bsm2696016wru.12.2022.08.27.09.14.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Aug 2022 09:14:43 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Sat, 27 Aug 2022 18:14:31 +0200 Message-Id: <20220827161431.333659-2-romain.naour@gmail.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220827161431.333659-1-romain.naour@gmail.com> References: <20220827161431.333659-1-romain.naour@gmail.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=7a/P4MlUj7CXqj2k3zDG+Wi2yfkkPj6o/SyzONwbdYU=; b=S0jmyB3YbbA9/KUos7pMx+cGr0W7eq4sTB7bWOFLK2IrDVa1gUtbCbFSStax2hEX/x 6zraH3h8dmdnYGnZzB/Me4YGJfVFo22P2yRZRUCmVxRfAmM8VMwI1pCtaLdA6xv7YUbm JhWfpC/fHHOYp8SX0YRGEoEThBhXpBquDHynRd0ABW5QR0sH8nb9C3YhRS8vcSweQ4CJ 0+nGO0XiYZJfZuFj10O+3H/DXcNIAkEILG9sTeBVxUjpOOHpkwvCDNfOYxjpk/NSj/ou ynehdy3mxJaBiOtZ1K6EU+v9GMLCcaGeh2Pzj/Qb8dsk9aLJ1s3Xccb/4vOwYV3uTgki Nsqg== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=S0jmyB3Y Subject: [Buildroot] [for-master 2/2] package/gdb: prevent gdbserver being selected for or1k builds X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Romain Naour , Stafford Horne Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" There is currently no version of gdbserver for or1k. Until this is implemented we will prevent both the direct and indirect selection of gdbserver for or1k builds. In practice this means that 'cross gdb for the host' cannot be selected and that 'full debugger' must be automatically selected for the gdb target package Signed-off-by: Romain Naour Cc: Stafford Horne --- gdbserver for or1k requires gdb 12.1 [1] but this version is not available in Buildroot 2022.08 and only in the next branch (upcoming 2022.011). [1] https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=4933265c3f71b9134363d0c05f09542d5cc677f4 --- package/gdb/Config.in | 3 +++ package/gdb/Config.in.host | 1 + 2 files changed, 4 insertions(+) diff --git a/package/gdb/Config.in b/package/gdb/Config.in index 71fa6f6064..8fd5eb9fbc 100644 --- a/package/gdb/Config.in +++ b/package/gdb/Config.in @@ -17,6 +17,8 @@ config BR2_PACKAGE_GDB depends on BR2_PACKAGE_GDB_ARCH_SUPPORTS depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 depends on BR2_INSTALL_LIBSTDCPP + # no gdbserver on or1k + select BR2_PACKAGE_GDB_DEBUGGER if BR2_or1k # When the external toolchain gdbserver is copied to the # target, we don't allow building a separate gdbserver. The # one from the external toolchain should be used. @@ -43,6 +45,7 @@ if BR2_PACKAGE_GDB config BR2_PACKAGE_GDB_SERVER bool "gdbserver" depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY + depends on !BR2_or1k help Build the gdbserver stub to run on the target. A full gdb is needed to debug the progam. diff --git a/package/gdb/Config.in.host b/package/gdb/Config.in.host index a294103ca3..15d5f52a36 100644 --- a/package/gdb/Config.in.host +++ b/package/gdb/Config.in.host @@ -3,6 +3,7 @@ config BR2_PACKAGE_HOST_GDB_ARCH_SUPPORTS default y depends on !((BR2_arm || BR2_armeb) && BR2_BINFMT_FLAT) depends on !BR2_microblaze + depends on !BR2_or1k comment "Host GDB Options" depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY