From nobody Wed May 10 11:44:12 2023 X-Original-To: freebsd-toolchain@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 4QGY8b6WMvz49nDB for ; Wed, 10 May 2023 11:44:15 +0000 (UTC) (envelope-from vegeta@tuxpowered.net) Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) (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 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QGY8Z5kpcz3GbQ for ; Wed, 10 May 2023 11:44:14 +0000 (UTC) (envelope-from vegeta@tuxpowered.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=tuxpowered-net.20221208.gappssmtp.com header.s=20221208 header.b=1mLqs4az; spf=pass (mx1.freebsd.org: domain of vegeta@tuxpowered.net designates 2a00:1450:4864:20::531 as permitted sender) smtp.mailfrom=vegeta@tuxpowered.net; dmarc=none Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-50bd2d7ba74so67981871a12.1 for ; Wed, 10 May 2023 04:44:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxpowered-net.20221208.gappssmtp.com; s=20221208; t=1683719053; x=1686311053; h=content-transfer-encoding:subject:from:to:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=lMpOfudguZy1z5emCoPbhyM3Fai5tnEvnSP6dWc0oDc=; b=1mLqs4azdLuP6kdqx/Rx3PiENFt7AisjrLpAqw06CXeZmhqBEdddTOjc/m7cT9GVuQ BUX0VUp6QiwHk7VtG6NF0/yKYG50q6soz8NhsmzWVT3QT3d/aJtfqfzT4oRRORud3lr+ yETP7YlPdG+vcGYYMcPz9xeH3s6NDpk6+J4vpjIQzp+Z8MbRhP+Cwx9l+3BNcK9Z5PYi e6gMRPEcss2nLtUXjApWwTmvSEvm9i7W0IqzBK5jFPLuSrIdwvdiI1+UTG7OfH4CAV5e 4FJNkVUP9I+0y7mM1JRcskQQcDPMA6qpSi6kC6Oip3nk1s9+0DEC4uUPIsmRpr2YgXUS pdpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683719053; x=1686311053; h=content-transfer-encoding:subject:from:to:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=lMpOfudguZy1z5emCoPbhyM3Fai5tnEvnSP6dWc0oDc=; b=HkFn4WRCzZVV8R5ezwWjYn3hAmHYi4LBXdg4xxfX/S66SJjBi/TCK+FgDJ+bBWR0R/ SWlXXBBVT/IgZHkB9ec5w03aifrNoXWnwb9R7QrwQyuNwRKFsi9Gqvf7aynSEPwCIXyK WCqIXUiMpqn5FbEs5CFH6CDUyK3esA4V8PMka6YRsNfU9fZl7aHMUA3Y+wHEelx0/hpE gaMrgqgT831b2B+WgoQXcJnR8jydObmvGp42dFgNiRBY6b6TvW0zzOu6S1p+5naQmDbb sGcAgTjRBzFlpM3fvHDAqDASXRJh+KQaCZAsSBDym73cSgr/mDed+RVvQEGzaOdIHHJV NCyQ== X-Gm-Message-State: AC+VfDxfL2CcLGcSOxnjoTltmyQ5VZM04NnFuwe36N6OywU00KvnJnQr lrDB9aX4sBPYtUAP/k8Hq7D4r0HwlfjM7QUoPhEMyw== X-Google-Smtp-Source: ACHHUZ7HsjBwl1uVd/60/+E4I9O1eR4hU5r/u8x8cVygjh8VYQ1xdaJDlx3DKFrdJdIYQzvxb9c5OQ== X-Received: by 2002:a17:907:3d89:b0:94e:4285:390c with SMTP id he9-20020a1709073d8900b0094e4285390cmr15956990ejc.10.1683719053024; Wed, 10 May 2023 04:44:13 -0700 (PDT) Received: from [172.17.100.88] ([212.48.107.10]) by smtp.gmail.com with ESMTPSA id fr30-20020a170906891e00b009663115c8f8sm2605193ejc.152.2023.05.10.04.44.12 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 May 2023 04:44:12 -0700 (PDT) Message-ID: <0d4c3381-c204-dba9-a973-b84c5987fff8@tuxpowered.net> Date: Wed, 10 May 2023 13:44:12 +0200 List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 To: freebsd-toolchain@FreeBSD.org From: Kajetan Staszkiewicz Subject: Building the kernel on MacOS Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.997]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; R_DKIM_ALLOW(-0.20)[tuxpowered-net.20221208.gappssmtp.com:s=20221208]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::531:from]; MLMMJ_DEST(0.00)[freebsd-toolchain@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; DKIM_TRACE(0.00)[tuxpowered-net.20221208.gappssmtp.com:+]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[tuxpowered.net]; ARC_NA(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-toolchain@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4QGY8Z5kpcz3GbQ X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N Hello Group, I'm trying to build the FreeBSD kernel on my MacOS laptop. Following the documentation at https://wiki.freebsd.org/BuildingOnNonFreeBSD and in src/.github/workflows/cross-bootstrap-tools.yml I'm lead to believe that MAKEOBJDIRPREFIX=~/InnoGames/projects/freebsd-makeobjkdir-14 \ tools/build/make.py \ --host-bindir /opt/homebrew/Cellar/llvm/16.0.3/bin \ --host-compiler-type=clang \ TARGET=arm64 TARGET_ARCH=aarch64 kernel-toolchain is the right step towards getting the proper environment. Also I understand that using bmake from brew should work too. Unfortunately this command fails due to the build procedure including MacOS headers: --- _bootstrap-tools-sbin/md5 --- /Users/vegeta/InnoGames/projects/freebsd-src/sbin/md5/md5.c:606:9: error: use of undeclared identifier 'errno' if (errno != ENOENT || !(cflag && ignoreMissing)) { ^ /Users/vegeta/InnoGames/projects/freebsd-src/sbin/md5/md5.c:606:18: error: use of undeclared identifier 'ENOENT' if (errno != ENOENT || !(cflag && ignoreMissing)) { ^ --- _bootstrap-tools-lib/libelf --- [Creating objdir /Users/vegeta/InnoGames/projects/freebsd-makeobjkdir-14/Users/vegeta/InnoGames/projects/freebsd-src/arm64.aarch64/tmp/obj-tools/lib/libelf...] --- _bootstrap-tools-sbin/md5 --- /Users/vegeta/InnoGames/projects/freebsd-src/sbin/md5/md5.c:1033:7: error: use of undeclared identifier '__FreeBSD_version' (__FreeBSD_version / 1000) % 100); ^ /Users/vegeta/InnoGames/projects/freebsd-src/sbin/md5/md5.c:1032:6: error: use of undeclared identifier '__FreeBSD_version' __FreeBSD_version / 100000, The error I'm getting is the same as in FreeBSD GitHub builds, e.g. https://github.com/freebsd/freebsd-src/actions/runs/4932067780/jobs/8814737228#step:7:1317 . The GitHub builds seem to be failing for a few days. Adding --bootstrap-toolchain does not solve the issue. -- | pozdrawiam / greetings | Powered by macOS, Debian and FreeBSD | | Kajetan Staszkiewicz | www: http://vegeta.tuxpowered.net | `------------------------^--------------------------------------'