From nobody Wed Oct 06 10:23:04 2021 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C320312BD7D2 for ; Wed, 6 Oct 2021 10:23:08 +0000 (UTC) (envelope-from gardask@gmail.com) Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HPVs80GXMz4mNq for ; Wed, 6 Oct 2021 10:23:08 +0000 (UTC) (envelope-from gardask@gmail.com) Received: by mail-wr1-x42c.google.com with SMTP id u18so7293359wrg.5 for ; Wed, 06 Oct 2021 03:23:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=TmU4olCF6TJne9sSsPJCKTyFkN1EaN1RcReAqnLJOmU=; b=huemcTG4R32K6w4uLp5/B7HDhjJK5BcO7lzwm/XnqsQdjUIx6Evmjyzebcmekk0LjF xrjgSgy4crxMsufE/4U37T3tsmrrr5THi/fPw11KozEoAF3aTsI/Q4imAUNQGBg4ERYj eGBjCn0stH1pN8yEyCMw7i387A0DPm5N8gPVRfOaxp+GjSAJ1HRxc6qJQdkK8YfvqTzW X28gl5bl+j9jY+RWRZuqrDigCUNfl7yxXfMhOJgnDN+1iPb/9GNaYBGKJjuKnMGD5mT/ N/ofA4dcr/9E/9DX/pICktMj++Q6E450E6pgteGC2lsvk9irAyLf2gR3J9wh5oBNna8F MN2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=TmU4olCF6TJne9sSsPJCKTyFkN1EaN1RcReAqnLJOmU=; b=GABLpJK5EBA8OFvqlHUqknkXIA3oWW0QTswLHCZmyU0eq0EprU3bWM1uObD5yVssgv PD8IWTH0WoL3a3sdS28i5zShCuxtOP09QS8E3P0w5/dg7dm3T8yrEoeEb/1T174XxJkh bfzBTs4NXxXyJ/LjrZ3uVFNHAiaPYgXtNyHirdn08Xsqg5Lczfb4a+7foIaq4FQaHoik D1E2Q8UErptFBmgCc5YSsXqTEI5r0A/lz2oVxIzkLH7ROV7s4ZImVmkM+Rrf9BNaD6jj Xn5GtOK00fPninjV80rjfYDI3rOU0lELgdtuKy645FaHFyVDnElmwqQ+sci0Y6D/+do2 jg8Q== X-Gm-Message-State: AOAM533luoKMFsKJw8VYUuNEqFyqxYAZKpxGDwQVZX4rZuQSkOEav+F0 n+uU8a947UySQHPEQaw5XM/7kAwNSA8= X-Google-Smtp-Source: ABdhPJwSZqT2eyt11sAcaxcaFSaPoyYEjmXkOfWnn45qZjCJAntzhDMjgBSZX0WcVXgssppQ+GoZCg== X-Received: by 2002:adf:a411:: with SMTP id d17mr24001618wra.393.1633515786640; Wed, 06 Oct 2021 03:23:06 -0700 (PDT) Received: from [10.0.30.5] ([31.47.99.1]) by smtp.gmail.com with ESMTPSA id h3sm13339527wro.42.2021.10.06.03.23.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Oct 2021 03:23:06 -0700 (PDT) To: freebsd-current@freebsd.org From: Karel Gardas Subject: make buildworld broken on RISC-V. Message-ID: <58e693bc-93ea-866e-2bd2-98b6b7228530@gmail.com> Date: Wed, 6 Oct 2021 12:23:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4HPVs80GXMz4mNq X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=huemcTG4; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gardask@gmail.com designates 2a00:1450:4864:20::42c as permitted sender) smtp.mailfrom=gardask@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; SH_EMAIL_DBL_DONT_QUERY_IPS(0.00)[0.0.0.8:email]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; DBL_PROHIBIT(0.00)[0.0.0.8:email]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::42c:from]; NEURAL_SPAM_SHORT(1.00)[1.000]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Hello, I'm using 14-CURRENT oprovided qcow2 image from September 30 in qemu-system-risc64. It runs fine so I'm testing it with attempting make buildworld. This unfortunately fails with: ===> lib/clang/headers (includes) [Creating objdir /usr/obj/usr/src/riscv.riscv64/lib/clang/headers...] clang-tblgen -gen-arm-bf16 -I /usr/src/contrib/llvm-project/clang/include/clang/Basic -d arm_bf16.h.d -o arm_bf16.h /usr/src/contrib/llvm-project/clang/include/clang/Basic/arm_bf16.td ELF binary type "0" not known. /usr/obj/usr/src/riscv.riscv64/tmp/legacy/usr/sbin/clang-tblgen: ELF�Т: not found /usr/obj/usr/src/riscv.riscv64/tmp/legacy/usr/sbin/clang-tblgen: @h�a@8: not found /usr/obj/usr/src/riscv.riscv64/tmp/legacy/usr/sbin/clang-tblgen: @@@0�: not found /usr/obj/usr/src/riscv.riscv64/tmp/legacy/usr/sbin/clang-tblgen: �: not found /usr/obj/usr/src/riscv.riscv64/tmp/legacy/usr/sbin/clang-tblgen: 1: Syntax error: "(" unexpected /usr/obj/usr/src/riscv.riscv64/tmp/legacy/usr/sbin/clang-tblgen: 5: Syntax error: Error in command substitution *** Error code 2 Stop. make[5]: stopped in /usr/src/lib/clang/headers *** Error code 1 Stop. make[4]: stopped in /usr/src/lib/clang *** Error code 1 Stop. make[3]: stopped in /usr/src/lib *** Error code 1 Stop. make[2]: stopped in /usr/src 370.58 real 114.97 user 258.16 sys *** Error code 1 Stop. make[1]: stopped in /usr/src *** Error code 1 Stop. make: stopped in /usr/src I'm not sure which from available clang-tblgen is invoked: # find / -type f -name 'clang-tblgen'/usr/obj/usr/src/riscv.riscv64/tmp/legacy/bin/clang-tblgen /usr/obj/usr/src/riscv.riscv64/tmp/obj-tools/usr.bin/clang/clang-tblgen/clang-tblgen but both seems to be reasonable file types: root@freebsd:/usr/src/lib/clang/headers # file /usr/obj/usr/src/riscv.riscv64/tmp/legacy/bin/clang-tblgen /usr/obj/usr/src/riscv.riscv64/tmp/legacy/bin/clang-tblgen: ELF 64-bit LSB executable, UCB RISC-V, version 1 (SYSV), statically linked, FreeBSD-style, not stripped root@freebsd:/usr/src/lib/clang/headers # file /usr/obj/usr/src/riscv.riscv64/tmp/obj-tools/usr.bin/clang/clang-tblgen/clang-tblgen /usr/obj/usr/src/riscv.riscv64/tmp/obj-tools/usr.bin/clang/clang-tblgen/clang-tblgen: ELF 64-bit LSB executable, UCB RISC-V, version 1 (SYSV), statically linked, FreeBSD-style, not stripped Is there any trick how to solve this issue? Thanks, Karel