From nobody Mon May 23 23:52:23 2022 X-Original-To: bugs@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 24F071B46CB9 for ; Mon, 23 May 2022 23:52:25 +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 4L6YzD1p7sz4yCT for ; Mon, 23 May 2022 23:52:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 1F6B019BB1 for ; Mon, 23 May 2022 23:52:24 +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 24NNqOKG044228 for ; Mon, 23 May 2022 23:52:24 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24NNqOxA044227 for bugs@FreeBSD.org; Mon, 23 May 2022 23:52:24 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 264195] [cross] Cross-building from macOS improvements for newversh.sh and SDK identification Date: Mon, 23 May 2022 23:52:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: shantonusen@me.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653349944; 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=brndEjD19kyFbGwM8a8w6Pj+Wcj9RQngd/nmA0pFdNs=; b=jtXYkmwJFxxf+NFFjOGr/owGHm6VUy5cpYnveQM28htesE6xFmJk4pLIH/9tuKChG38S2g UN4kFWrf8v1Oiip5o7f5tdDeVDKnpNuMeP1fG4fam5ipkO7IU8mD7dUG45EMTc0XF0rPiM e39PZsWZSJ4nn0w2TFzx1sEatn7hazK9k0YGUmpLjwVyyh5nyY/IoDiCURm25ak8RpSJVj g1mja/Xq8phJM+sVt1M7Bdfy0uWVCYXkLwIGbKm/YuPyy9dHI8nk1TqktDVYBp9fkACPP1 9saR3LxlhoDT2qTKlgTj2+sHaq/jjyG512YQFw0dtzDrQGZgAvBtd/xbC/15hQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653349944; a=rsa-sha256; cv=none; b=E2BqrRcdZcLbGCDd+kaymk656lJDAprqRkRkp+aV7QJ9tEsIkzbtqS5HbRqxVMnNXRgWI9 4+Str8qhPNDZ2Zx7I6s/a11dYu2jx2LpFqM9fwJvq4n2Gn25pTDkVNPtNqbjCfrdU7wsyL s8MPCIbRLtlljKavKkiO4c2FrhAZJa5w+Up2lGdPmSYnS8pG9KJkD/1rjozBy8ys42j20w wz9iTq84E+ICKV0GYtnvb5nib30oJY6i0Dq3BlF1rck7SqA2aZk6Rk+LedRYNIE9SY/vsa nZyR50T3VSrbcZucCdYB2c5msLNegpaAOL7B1SKJbB5q2nqssFcAc2cAZJL1Yw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264195 Bug ID: 264195 Summary: [cross] Cross-building from macOS improvements for newversh.sh and SDK identification Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: shantonusen@me.com Created attachment 234167 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D234167&action= =3Dedit macOS cross build improvements I'm trying to follow the directions at With $ MAKEOBJDIRPREFIX=3D$HOME/Documents/freebsd/obj tools/build/make.py --debug TARGET=3Damd64 TARGET_ARCH=3Damd64 --bootstrap-toolchain buildworld On my particular setup, I noticed two things: /Users/shantonu/Documents/freebsd/src/sys/conf/newvers.sh: line 138: return: can only `return' from a function or sourced script /Applications/Xcode.app/Contents/Developer/usr/bin/make: invalid option -- V Usage: make [options] [target] ... Options: ... bmake[2]: "/Users/shantonu/Documents/freebsd/src/tools/build/Makefile" line= 37: You must install the macOS SDK (try xcode-select --install) bmake[2]: stopped in /Users/shantonu/Documents/freebsd/src/tools/build *** Error code 1 The first issue looks like non-POSIX shell usage which adds a bunch of nois= e at the top of the build log. The second issue might be a me-specific issue that can be improved through the use of "xcrun -sdk macosx -show-sdk-path" to f= ind the macOS SDK, instead of having to hardcode paths for the command-line too= ls install vs. Xcode from the Mac App Store. I've attached a diff that fixes both these issues. --=20 You are receiving this mail because: You are the assignee for the bug.=