From owner-freebsd-ports@FreeBSD.ORG Fri Oct 7 18:14:18 2011 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89968106564A for ; Fri, 7 Oct 2011 18:14:18 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from mx0.deglitch.com (cl-414.sto-01.se.sixxs.net [IPv6:2001:16d8:ff00:19d::2]) by mx1.freebsd.org (Postfix) with ESMTP id 3EF8E8FC19 for ; Fri, 7 Oct 2011 18:14:18 +0000 (UTC) Received: from orion.SpringDaemons.com (207.47.0.2.static.nextweb.net [207.47.0.2]) by mx0.deglitch.com (Postfix) with ESMTPA id E68678FC36; Fri, 7 Oct 2011 22:14:16 +0400 (MSD) Received: from orion (localhost [127.0.0.1]) by orion.SpringDaemons.com (Postfix) with SMTP id 3A2065C36; Fri, 7 Oct 2011 11:13:23 -0700 (PDT) Date: Fri, 7 Oct 2011 11:13:23 -0700 From: Stanislav Sedov To: "Thomas Mueller" Message-Id: <20111007111323.0024ac12.stas@FreeBSD.org> In-Reply-To: <20111006085334.AAEDD1065670@hub.freebsd.org> References: <20111006085334.AAEDD1065670@hub.freebsd.org> Organization: The FreeBSD Project X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org Subject: Re: devel/cross-gcc and cross-binutils: how to set TGTARCH and TGTABI X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Oct 2011 18:14:18 -0000 On Thu, 6 Oct 2011 08:43:31 +0000 (GMT) "Thomas Mueller" mentioned: > > From $PORTSDIR/devel/cross-binutils: > > > GNU binutils for cross-target application development. > > > Prerequisite for the GCC cross-compiling environment. > > > Use TGTARCH switch to select target architecture, and TGTABI to select ABI. > > E.g. the following command will build binutils for rtems on sparc: > > % make TGTARCH=sparc TGTABI=rtems > > > If you encounter any problems building/using/installing this port, please > > make me know. It would help to improve this port in feature. > > -- Stanislav Sedov > > My question is how to set TGTARCH and TGTABI, that is not documented; I looked at the web sites. > > Would TGTARCH be i386 or amd64, if I want to build for those platforms? > > What about TGTABI? I don't know the proper code words, would want to compile for Linux and possibly NetBSD. > > Maybe I need to "make fetch" followed by "make extract" and look inside? > Hi! You cannot use this port to build toolchaing for compiling Linux and NetBSD applications. This port creates toolchain using the newlib libc library, which is used by some embedded operating systems (e.g. rtems, ecos). It can also be used to build bare-metal standalone applications. Linux on the other hand is using glibc and NetBSD their own libc implementation, so this toolchain would not work. -- Stanislav Sedov ST4096-RIPE () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments