From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Sun, 02 Feb 2025 12:42:50 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1teYNF-007YAd-1k for lore@lore.pengutronix.de; Sun, 02 Feb 2025 12:42:50 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1teYNF-0004Pv-PP; Sun, 02 Feb 2025 12:42:49 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1teYMy-0004PT-TY; Sun, 02 Feb 2025 12:42:32 +0100 Received: from pty.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::c5]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1teYMy-0037QP-0P; Sun, 02 Feb 2025 12:42:32 +0100 Received: from mol by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1teYMy-00A0st-05; Sun, 02 Feb 2025 12:42:32 +0100 Date: Sun, 2 Feb 2025 12:42:32 +0100 From: Michael Olbrich To: John Graham Message-ID: Mail-Followup-To: John Graham , ptxdist@pengutronix.de References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-IRC: #ptxdist @freenode Subject: Re: [ptxdist] Building x86_64 without host libs (e.g. zlib) X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: ptxdist@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false On Fri, Jan 31, 2025 at 03:41:05PM +0000, John Graham wrote: > I'm trying to build an x86_64 toolchain that's independent of the host. By > default in the ptxconfigs/x86_64-unknown-linux-gnu_gcc config, it has e.g. > `PTXCONF_HOST_SYSTEM_ZLIB=y`. I expected I could set this to `=n`, but when > I do that, `ptxdist go` fails with: > > ``` > > ptxdist: error: 'host-system-zlib' is not selected. > ptxdist: error: This can happen if the ptxconfig is outdated or > ptxdist: error: the package is disabled for the current architecture > > ``` > > Can anyone tell me if this is the proper approach to disabling use of the > host libraries, and/or what I'm doing wrong? Any help appreciated! There are issues on multiple levels: 1. just changing the config file will not make the dependency go away. If you look at the package rules in rules/ you'll see multiple ones that have 'select HOST_SYSTEM_ZLIB'. That's what is causing the error you're seeing. 2. Even if you remove those, building will probably fail. The dependency is there for a reason. You would definitely need to remove the --with-system-zlib that's there in several places. But I'm not sure, if that's enough. It's quite possible that for some of the packages, zlib is a hard requirement. Why would you want to build without zlib anyways? It's not the only requirement and removing just that seem odd. Michael -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |