From owner-freebsd-ppc@freebsd.org Thu Oct 10 16:33:49 2019 Return-Path: Delivered-To: freebsd-ppc@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 D84BF143596 for ; Thu, 10 Oct 2019 16:33:49 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) (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 46pxVN64fsz4JnN for ; Thu, 10 Oct 2019 16:33:48 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: by mail-io1-xd29.google.com with SMTP id b19so15158913iob.4 for ; Thu, 10 Oct 2019 09:33:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=Bg0n8688pR2o+Oceuan8jhigCZz0BSibAWwvw/xLNms=; b=m0QcONH13kAqYgb2wI6PZ03QjZqOvYzzo5AQGvVLJqEvXTlctPeCSiYG4E8HzoLKl7 V+Z87i/ejHrePEpaovaLJyVksE8X7yzbBE2e1hLAemvHHF/gnbOZ/jfSum3/0O+No3pH hhlb1OHoAFCT4YF/LU6MlnToYqTrA5EjVhfsnwr93uzYg65Xccsxfo0IkEqUZm9nvTac Wpyl4O3BjLib2ttEvoIaEfTsZbPeFn7o/pzgoJavNee+PKF+VnghdFcKGNAPn5K08+Rv j5ZSn0U2/aY32Lc1/EUTqDYOhoHGsHxf1aFhOAzPWpnI2zlrUcRf6MXTatEIhHYu7ZYn nT5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Bg0n8688pR2o+Oceuan8jhigCZz0BSibAWwvw/xLNms=; b=R9Ruzi8HJ3JbRdKKUt48rzHdnZT9FanysNicg420UhIEB10J6SxeqxKS2sbbVXcINz cJo82z6IM8HiFCXy+YcICl+X7du5A1xrYMIjl0h7p4hcyFtxuHA/wiX/lK2GICDO1lqQ ljKp9sg0A6UPKRIG0ShyFDG+N3p+oW0Te4vUg2t98M2rj0MeCnuYxs0tkBEPLHHWjIvQ aIuaNa13jpJ3SWHZsaciE9NGpWiPxu6ala65BNGBrOo4IpZxgDFtb9HqGkAaHHIuTWRG /AdZe8rUZCQRWG/8R7KU8Qe+HY68/xPPX7jMahE6hSjWyGTkR0Tg1uNkcJVTqQ3ZUOk1 poMA== X-Gm-Message-State: APjAAAW+4cxQbCX/ajKBEZfS0akfjpGF0gXyoy4V8mmKr+PWDjWVTfZf +/bbypDlhUGSpQrzMuksffbj06zC X-Google-Smtp-Source: APXvYqwG1pC5MyjYm9rBoZvoJca4OanwxI2XCavWGHUInHBIGzk39PCZHlS5u7yQC7e/VMrqIHJZ/A== X-Received: by 2002:a6b:b54c:: with SMTP id e73mr4792329iof.259.1570725226924; Thu, 10 Oct 2019 09:33:46 -0700 (PDT) Received: from ralga.knownspace (173-25-245-129.client.mchsi.com. [173.25.245.129]) by smtp.gmail.com with ESMTPSA id y26sm3404312ion.1.2019.10.10.09.33.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2019 09:33:46 -0700 (PDT) Date: Thu, 10 Oct 2019 11:33:42 -0500 From: Justin Hibbits To: freebsd-ppc@freebsd.org Subject: Re: build 32-bit binary on powerpc64 Message-ID: <20191010113342.1e29a2fb@ralga.knownspace> In-Reply-To: References: X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; powerpc64-portbld-freebsd13.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 46pxVN64fsz4JnN X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=m0QcONH1; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of chmeeedalf@gmail.com designates 2607:f8b0:4864:20::d29 as permitted sender) smtp.mailfrom=chmeeedalf@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[129.245.25.173.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ppc@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(0.00)[ip: (-5.45), ipnet: 2607:f8b0::/32(-2.53), asn: 15169(-2.13), country: US(-0.05)]; RCVD_IN_DNSWL_NONE(0.00)[9.2.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Oct 2019 16:33:49 -0000 On Thu, 10 Oct 2019 15:05:01 +0100 Kevin Smallman wrote: > Hi, > There's one package I'd like to build in the ports tree that is 32-bit > only, but I'm running the 64-bit version of FreeBSD powerpc on my old > imac g5. If I go to the port's directory and just do 'make install' > it naturally comes up with the error - 'This package is for i386 only, > you are running powerpc64'. > Interestingly, this program and it's dependencies - OLVWM/Xview, etc - > definitely are available for PowerPC 32 elsewhere, so I'm not sure > about the 'i386' part of that message. > I assume I could run a 32-bit powerpc binary because the 'choosing 32 > or 64-bit powerpc' part of the wiki says so. > Is there some way I could tell the ports system to build this for > powerpc32 this one time? Or, failing that, grab a binary from > elsewhere and install it with pkg_add or similar? > I think I could find a NetBSD .tgz package for it, but would that > work? > > Kevin. > _______________________________________________ > freebsd-ppc@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ppc > To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" You can build a powerpc (32-bit) binary on FreeBSD/powerpc64 by passing '-m32' to the compiler. I can't say how to do it in the ports build environment, but you can do it manually. You could also create a 32-bit poudriere jail and build in there. - Justin