From owner-freebsd-ports@freebsd.org Sun Apr 5 17:53:40 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 107822BD84D; Sun, 5 Apr 2020 17:53:40 +0000 (UTC) (envelope-from ruslanngaripov@gmail.com) Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) 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 48wLr65D3Bz3CHC; Sun, 5 Apr 2020 17:53:26 +0000 (UTC) (envelope-from ruslanngaripov@gmail.com) Received: by mail-lf1-x136.google.com with SMTP id t11so9903810lfe.4; Sun, 05 Apr 2020 10:53:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=oXWt2V+QR39yh7rbtKVGCpUztDE1AwMqCpkZlm8RH8E=; b=BdcYpLvHUCcZd3VZ3UzmA2QOcDejxiY3z9NFfxHUIlsgi9Q+TvUTjaoeQfUV5PXJLC eLt/f25VPyXgo5NbfXuhcdiljhPOlpkTBHJXEEFLI7XCHUQpVCIWfV0f2D3gf8wwbauJ ZeW8N1t6aXp6C9BGqpB8888hrZ9mpo1jfyHOLZ5fAARcF0CdDUD4FjpuHjeW/XfgzVjZ 8qN0Nr+4PO/IgxLxwAovm/VdiK8XxZoJuK5cOacUdm+iMqSxCQJQEJHMRoPWt0FzT9Eq oHkymiyE8zcSS+J7TqxyLfEqHu8aLlAfJ39tSY5vZCODkfow8Zeb/wilWR3Nv3tymXtN rFtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=oXWt2V+QR39yh7rbtKVGCpUztDE1AwMqCpkZlm8RH8E=; b=QfLEvidQBOan7Lor1prlBrhMcXKK6CKue8qdFt+M4bFvhK3U2ssxGe10olYI/+Co90 l/zkyEGnxzTfxtzIt5w4V1FcLiJV5x6a3yerbYB2nDFQOvub0oEYhwmN0Fv05/vYruwe FWULSMvI4ISSVUd2oFSqXZ9oCpZx7uXDVY3vGmTiCZFG4dXvn/lQGg8nuJ45WTgTRT0F bdEcQaxDiGkSXkRbBzi4xDTpBubRlhdo2TOdMST4H7yoLBQZBAuJo1/61ppMvhJ331B8 gxmI2rr8q+TFNknWAr053dSPSu9iYSkRdkShrzFO0skRD6/aw4/JTIYSEpg9VQKjfHuZ AhBQ== X-Gm-Message-State: AGi0PuYjc8a49KENaKMf69TNxg46SJI+PB35OcyYgmuFbJM6GiGTUeEi TdkbHzDWYLWAlqL6oTUDRie36mjw X-Google-Smtp-Source: APiQypK2cQU8wSjxSQghwyl3s13f0hynDkXgBhBA/yKLb8GOnkAk12pZoFRtA0pu0ZeNahvxghTZ8Q== X-Received: by 2002:a05:6512:2018:: with SMTP id a24mr11137563lfb.204.1586109196208; Sun, 05 Apr 2020 10:53:16 -0700 (PDT) Received: from [192.168.1.3] ([46.48.69.183]) by smtp.gmail.com with ESMTPSA id f28sm10115153lfh.10.2020.04.05.10.53.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 05 Apr 2020 10:53:15 -0700 (PDT) Subject: Re: /usr/src/release/release.sh -> ports -> fetch pkg -> Bad system call (core dumped) To: Tomasz CEDRO Cc: FreeBSD Questions Mailing List , FreeBSD Stable , freebsd-ports References: <281e95ff-a1c2-c759-2918-783cb8edf1b7@gmail.com> From: Ruslan Garipov Message-ID: <67026913-5a6d-4763-a985-e2739de9d147@gmail.com> Date: Sun, 5 Apr 2020 22:53:12 +0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48wLr65D3Bz3CHC X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=BdcYpLvH; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of ruslanngaripov@gmail.com designates 2a00:1450:4864:20::136 as permitted sender) smtp.mailfrom=ruslanngaripov@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.00)[ip: (-9.61), ipnet: 2a00:1450::/32(-2.36), asn: 15169(-0.43), country: US(-0.05)]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[6.3.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; 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)[]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Apr 2020 17:53:40 -0000 On 4/5/2020 10:05 PM, Tomasz CEDRO wrote: > On Sun, Apr 5, 2020 at 4:59 PM Ruslan Garipov wrote: >> I'm sorry, I forgot to ask how do you call /usr/src/release/release.sh? >> Do you pass a configuration file to this script? >> >> By default /usr/src/release/release.sh checks out the source tree for >> the CURRENT branch (svn://svn.FreeBSD.org/base/head@rHEAD). In this >> case (if you doesn't change it) chrooted environment definitely will >> fail to run on STABLE and/or RELEASE. >> >> May be it's easy for you to use `make release` directly. > > Case solved! =) > > I wrongly assumed that release will simply update this svn repo that I > am working on.. but it fetches HEAD.. so I was trying to build > 13/HEAD/CURRENT on 12/STABLE/RELEASE that have different ABI thus bad > syscall.. and I need CURRENT to build CURRENT, right? :-) I believe in order to build the source tree you just need a compatible toolchain. So you can build the source tree for 13.0-CURRENT on 12.1-RELEASE system. But you need CURRENT to **run** userland with ABI from the CURRENT. In order to build, for example, 12.1-RELEASE image with release(7) you should assign the SRCBRANCH variable to "base/release/12.1.0@rHEAD", and for 12.0-STABLE: SRCBRANCH="base/stable/12@rHEAD". Either in your configuration file for release(7) or directly in your shell: env SRCBRANCH="base/release/12.1.0@rHEAD" /usr/src/release/release.sh > > I will provide a release.conf, make.conf, src.conf and maybe KERNCONF > if I need something beyond GENERIC. For now I just need to work with > 12-STABLE. Good hint! :-) Sure. Just as a note, by default (when the caller doesn't provide a configuration file to release(7), or the file provided doesn't exists), release(7) builds GENERIC kernel and uses no make.conf and src.conf. Once again: for native build `make release` may be quite easy and fast. release(7) guarantees "absolutely clean build environment". > > Thank you Ruslan!! :-) > > Tomek > > ps/2: Can I provide a patch that will print out what actually is being > fetched by release.sh? That could save some time for first time users > :-) Why not :-) For me reading /usr/src/release/release.sh and default configs for ARM saved me a lot of time.