From nobody Mon Apr 11 17:23:16 2022 X-Original-To: ports@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 10BE75D51E9 for ; Mon, 11 Apr 2022 17:23:33 +0000 (UTC) (envelope-from jbo@insane.engineer) Received: from mail-4323.proton.ch (mail-4323.proton.ch [185.70.43.23]) (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 "protonmail.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KcbKw1ycYz4kGY for ; Mon, 11 Apr 2022 17:23:32 +0000 (UTC) (envelope-from jbo@insane.engineer) Date: Mon, 11 Apr 2022 17:23:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=insane.engineer; s=protonmail2; t=1649697804; bh=tEb2p6VNdCU9O3F+YLrorXzNq243BQ2poFMCfJMEzkw=; h=Date:To:From:Reply-To:Subject:Message-ID:In-Reply-To:References: From:To:Cc:Date:Subject:Reply-To:Feedback-ID:Message-ID; b=naM+WXCJo75J0hidIiKByLzL+FYVGS6wnvcepvo747xLP+1ncVkDGT56a1tznMRJc rFrp4bB6hBC+DPkAcg5fi50NLK2Vf3IyQt+63nvlRjLYzBZutdIrMN+GJqafE7xjvq KoQNL9RBy/Se2c0kLP5Hhk2138Au5JBEeHBbb5F3loDafFbx2n/nm4ev/oEmFpyGQP etutyHtACHIdmczvhoxRSbkv2oLP5pOrchfAch+tNtgH/zfEnFCD6/60hNFw64GDPh 84kwtOHIOc1qPyymZBDhOKFm21A1LVypDakAGJ3dO4YxlWyysNbUfwLkw40VfdNCit 8p/skYpWhaXdg== To: "ports@freebsd.org" From: jbo@insane.engineer Reply-To: jbo@insane.engineer Subject: Build issue with i386 port Message-ID: In-Reply-To: References: List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4KcbKw1ycYz4kGY X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=insane.engineer header.s=protonmail2 header.b=naM+WXCJ; dmarc=pass (policy=none) header.from=insane.engineer; spf=pass (mx1.freebsd.org: domain of jbo@insane.engineer designates 185.70.43.23 as permitted sender) smtp.mailfrom=jbo@insane.engineer X-Spamd-Result: default: False [-3.51 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[jbo@insane.engineer]; R_DKIM_ALLOW(-0.20)[insane.engineer:s=protonmail2]; REPLYTO_EQ_FROM(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:185.70.43.0/24:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DKIM_TRACE(0.00)[insane.engineer:+]; DMARC_POLICY_ALLOW(-0.50)[insane.engineer,none]; FROM_NO_DN(0.00)[]; NEURAL_HAM_SHORT(-0.51)[-0.514]; TO_DN_EQ_ADDR_ALL(0.00)[]; MLMMJ_DEST(0.00)[ports]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RWL_MAILSPIKE_VERYGOOD(0.00)[185.70.43.23:from]; ASN(0.00)[asn:62371, ipnet:185.70.43.0/24, country:CH]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Hello folks, I'm fairly new to the porting game so please bear with me. A few months ago, I created my first port: sysutils/cpufetch Back then, I was only testing this on amd64 so ONLY_FOR_ARCHS was set to am= d64. In the meantime, I've spun up some i386 VMs (both FreeBSD 13 and 14) as ups= tream advertises to also support 32-bit FreeBSD. In the VMs, if I just clone the upstream repository [1] and run gmake, the = software compiles & runs fine. After those successful tests I've updated the port's Makefile to also inclu= de i386 in ONLY_FOR_ARCHS. Not long after, I was receiving my first pkg fallout message informing me t= hat the official pkg builds are failing: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D> Building for cpufetch-1.00_1 gmake[1]: Entering directory '/wrkdirs/usr/ports/sysutils/cpufetch/work/cpu= fetch-1.00' Makefile:38: Unsupported arch detected: i386. See https://github.com/Dr-Noo= b/cpufetch#1-support Makefile:39: If your architecture is supported but the compilation fails, p= lease open an issue in https://github.com/Dr-Noob/cpufetch/issues Makefile:40: *** Aborting compilation. Stop. gmake[1]: Leaving directory '/wrkdirs/usr/ports/sysutils/cpufetch/work/cpuf= etch-1.00' =3D=3D=3D> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failure = to the maintainer. *** Error code 1 Upstream's Makefile uses $(shell uname -m) to determine the architecture [2= ]. My VMs are successfully reporting this as i386 which upstream's Makefile appears to support explicitly. After all, I'= m also able to build this software on those VMs if just cloning & running gmake manually. I'm not really sure where to go from here. As I can build the software in F= reeBSD i386 VMs I think that the issue is related to my port and not upstream. But then again, the = build fails "within" upstream's Makefile. Could somebody help me out here? [1] https://github.com/dr-noob/cpufetch [2] https://github.com/Dr-Noob/cpufetch/blob/master/Makefile#L14 Best regards, ~ Joel Bodenmann