From nobody Thu May 11 16:08:52 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 4QHGzk2qCbz49QQW for ; Thu, 11 May 2023 16:09:06 +0000 (UTC) (envelope-from arichardson.kde@gmail.com) Received: from mail-io1-f49.google.com (mail-io1-f49.google.com [209.85.166.49]) (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 4QHGzj3gcbz4lHC for ; Thu, 11 May 2023 16:09:05 +0000 (UTC) (envelope-from arichardson.kde@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of arichardson.kde@gmail.com designates 209.85.166.49 as permitted sender) smtp.mailfrom=arichardson.kde@gmail.com; dmarc=none Received: by mail-io1-f49.google.com with SMTP id ca18e2360f4ac-7665e607d1bso206451839f.3 for ; Thu, 11 May 2023 09:09:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683821344; x=1686413344; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FwbTb/v5EQvYKSHcd3Bu4cXKrNnjR8pHDehJjDRrOy8=; b=IqawKFwyNX9m0BgvAtZbro4oMprVAvZakq4CHTo0VSKR8PpVyEk/+NuPYjuAFWwen1 bUdS0M16x5RjZk+MfA//RxQxNCr/gZoYUTP/bOgpLFsDK8cbMygf/49RVsFB5cTzyIu9 h2lSV/11w+RiucqXw41Q4wU0d7DXNHWRWbitZWRQZIlaMf4X3P6aIw4dcKwU4Ftx3UB8 V35YyOEhMFUiOHfk+nUGS5WElGpz8DONt51EP8GNWxYePR2RK7QFUBKegG1DzNE+M3Vt uFNWaKk4GNlevLyj12MhomYKq5nR5GSXofC9j0xZtHr7/rNWaNaTQDjUD0CV6O6AzfP6 tdmw== X-Gm-Message-State: AC+VfDxrPSwIhvFkQ8NIBOUDNimbifewmi9dEzGH+UQ77a3/l37rkMCd p2NUVIOayYsYbOCzhPY++LrJ+Rqguyw= X-Google-Smtp-Source: ACHHUZ6QJGvK8kX5STzxrjl9UyBZOaMHehX2jeRBaJkmWCr5isyJQ3EHzPoRPogijPMn9eq+xndDlg== X-Received: by 2002:a5d:9499:0:b0:763:5453:c394 with SMTP id v25-20020a5d9499000000b007635453c394mr13652208ioj.2.1683821343774; Thu, 11 May 2023 09:09:03 -0700 (PDT) Received: from mail-io1-f43.google.com (mail-io1-f43.google.com. [209.85.166.43]) by smtp.gmail.com with ESMTPSA id v15-20020a056638358f00b004186c219eecsm210773jal.93.2023.05.11.09.09.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 May 2023 09:09:03 -0700 (PDT) Received: by mail-io1-f43.google.com with SMTP id ca18e2360f4ac-7606d460da7so206248239f.1 for ; Thu, 11 May 2023 09:09:03 -0700 (PDT) X-Received: by 2002:a92:d245:0:b0:32b:190f:5daa with SMTP id v5-20020a92d245000000b0032b190f5daamr14177834ilg.10.1683821342631; Thu, 11 May 2023 09:09:02 -0700 (PDT) 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 References: <0d4c3381-c204-dba9-a973-b84c5987fff8@tuxpowered.net> In-Reply-To: <0d4c3381-c204-dba9-a973-b84c5987fff8@tuxpowered.net> From: Alexander Richardson Date: Thu, 11 May 2023 09:08:52 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Building the kernel on MacOS To: Kajetan Staszkiewicz Cc: "freebsd-toolchain@FreeBSD.org" Content-Type: multipart/alternative; boundary="000000000000fe323a05fb6d34bd" X-Spamd-Result: default: False [-2.83 / 15.00]; NEURAL_HAM_SHORT(-0.98)[-0.979]; NEURAL_HAM_MEDIUM(-0.96)[-0.961]; NEURAL_HAM_LONG(-0.89)[-0.895]; FORGED_SENDER(0.30)[arichardson@freebsd.org,arichardsonkde@gmail.com]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_EQ_ADDR_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_TLS_LAST(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-toolchain@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_NA(0.00)[freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[209.85.166.49:from,209.85.166.43:received]; ARC_NA(0.00)[]; TAGGED_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-toolchain@freebsd.org]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_ENVFROM(0.00)[gmail.com]; R_DKIM_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[arichardson@freebsd.org,arichardsonkde@gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.166.49:from] X-Rspamd-Queue-Id: 4QHGzj3gcbz4lHC X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N --000000000000fe323a05fb6d34bd Content-Type: text/plain; charset="UTF-8" Looking at the GitHub actions results the bootstrap breakage should be fixed since https://github.com/freebsd/freebsd-src/commit/27e74c8fff358c113b1afdd3abfc58dca902180c . In general this should work, you just got unlucky and tried it at a point in time where it was broken due to recent changes. Alex On Wed, 10 May 2023, 04:44 Kajetan Staszkiewicz, wrote: > 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 | > `------------------------^--------------------------------------' > > --000000000000fe323a05fb6d34bd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Looking at the GitHub actions results the bootstrap = breakage should be fixed since https://github.com/f= reebsd/freebsd-src/commit/27e74c8fff358c113b1afdd3abfc58dca902180c.

In general this should work= , you just got unlucky and tried it at a point in time where it was broken = due to recent changes.

A= lex=C2=A0

On Wed, 10 May 2023, 04:44 Kajetan Staszkiewicz, <vegeta@tuxpowered.net> wrote:=
Hello Group,

I'm trying to build the FreeBSD kernel on my MacOS laptop. Following th= e
documentation at https://wiki.freebsd.org/Bu= ildingOnNonFreeBSD and in
src/.github/workflows/cross-bootstrap-tools.yml I'm lead to believe tha= t

MAKEOBJDIRPREFIX=3D~/InnoGames/projects/freebsd-makeobjkdir-14 \
tools/build/make.py \
--host-bindir /opt/homebrew/Cellar/llvm/16.0.3/bin \
--host-compiler-type=3Dclang \
TARGET=3Darm64 TARGET_ARCH=3Daarch64 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'
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if (errno !=3D ENOENT || !(cfl= ag &&
ignoreMissing)) {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^
/Users/vegeta/InnoGames/projects/freebsd-src/sbin/md5/md5.c:606:18:
error: use of undeclared identifier 'ENOENT'
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if (errno !=3D ENOENT || !(cfl= ag &&
ignoreMissing)) {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 ^
--- _bootstrap-tools-lib/libelf ---
[Creating objdir
/Users/vegeta/InnoGames/projects/freebsd-makeobjkdir-14/Users/vegeta/InnoGa= mes/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'
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(__FreeBSD_version / 1000) = % 100);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^
/Users/vegeta/InnoGames/projects/freebsd-src/sbin/md5/md5.c:1032:6:
error: use of undeclared identifier '__FreeBSD_version'
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0__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/881473= 7228#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 |
|=C2=A0 Kajetan Staszkiewicz=C2=A0 |=C2=A0 www: http://vegeta= .tuxpowered.net=C2=A0 =C2=A0|
`------------------------^--------------------------------------'

--000000000000fe323a05fb6d34bd-- From nobody Sun May 14 21:01:06 2023 X-Original-To: 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 4QKFKH57qdz4C6tL for ; Sun, 14 May 2023 21:01:07 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QKFKH1DKYz3rgt for ; Sun, 14 May 2023 21:01:07 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684098067; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lyjV1j/gUhCy2d5rUQ1fg7I7MEcgV49LiR3nH8orqG0=; b=RkZbv7XnIwa6FU2/Qd3m6aebNThrM9MAds4EJci9MHDvFwgh0HkixEVq2PlTTMtZsPNSmG tEFxY4mLocZPn2p7czvoc8ppvRGH1u+Jf9y547WPFPSIskyXR+EmE4koNh68sxeOY4fEsk qmwToMiK7K2Z15xGrbOUX40OOnqvEoxRkxzmudcLPTKd+tPDDu+qbbovpzi2QMHiEG8soJ XWbp08MCz77v+oasdocbmoD+KspDHRN8KGIKrWNKbxoqgYDjAFPEFmrZvRtYolEQfkzje1 PZkDB4uJvQXCwctSX1Bd4P5LV9kmGk8RqNYQLdO552dnrqGIsdOP2uj7CshMeQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684098067; a=rsa-sha256; cv=none; b=O6Op2etLpNhZZTPGpMr5VT7ELfBZD8qu9coCQTrAGmGetJfxZt2WLHJwbvokIyKRoKnOOu xdGWWBUxEud4dAmDo5gLfIOkydUTfCOq+BhS4cIGno5HQqKwTBHQwRTAM3B7RjSq5Xmncx 35mSUA2NM54L/6Mv7q3D/lql6MKL+7O2IiWh4KVinNeIh6dK+TzrGdmblPPgOf69Mse3WG vuKGavgPSajIaV6DFTGkIqqTRvPQnTXc0mnOC91iu6D5TojA5hVy4ZbQtjQ+fnIGimi95g RIwpxc03XQDiduzpM+8/5cH3f54NV7/bOJ7LM7bC1GIBxaooCZQJH5zyDALtKg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QKFKH0BWdzDdZ for ; Sun, 14 May 2023 21:01:07 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 34EL16ds091205 for ; Sun, 14 May 2023 21:01:06 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34EL16Ck091204 for toolchain@FreeBSD.org; Sun, 14 May 2023 21:01:06 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202305142101.34EL16Ck091204@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: toolchain@FreeBSD.org Subject: Problem reports for toolchain@FreeBSD.org that need special attention Date: Sun, 14 May 2023 21:01:06 +0000 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 Content-Type: multipart/alternative; boundary="16840980665.B89a496B6.85873" Content-Transfer-Encoding: 7bit X-ThisMailContainsUnwantedMimeParts: N --16840980665.B89a496B6.85873 Date: Sun, 14 May 2023 21:01:06 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- Open | 234232 | clang Assertion failed when building the port dev Open | 192686 | Segfaults using combinations of -pie -pthread -lm 2 problems total for which you should take action. --16840980665.B89a496B6.85873 Date: Sun, 14 May 2023 21:01:06 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
The following is a listing of current problems submitted by FreeBSD users,
which need special attention. These represent problem reports covering
all versions including experimental development code and obsolete releases.

Status      |    Bug Id | Description
------------+-----------+---------------------------------------------------
Open        |    234232 | clang Assertion failed when building the port dev
Open        |    192686 | Segfaults using combinations of -pie -pthread -lm

2 problems total for which you should take action.
--16840980665.B89a496B6.85873--