From owner-freebsd-ports@FreeBSD.ORG Fri Aug 24 12:05:37 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88BEC16A41A; Fri, 24 Aug 2007 12:05:37 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 1828813C457; Fri, 24 Aug 2007 12:05:34 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A54D5A.dip.t-dialin.net [84.165.77.90]) by redbull.bpaserver.net (Postfix) with ESMTP id 56F582E138; Fri, 24 Aug 2007 14:05:29 +0200 (CEST) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id C54C25B4D80; Fri, 24 Aug 2007 14:05:26 +0200 (CEST) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l7OC5Qot076795; Fri, 24 Aug 2007 14:05:26 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Fri, 24 Aug 2007 14:05:26 +0200 Message-ID: <20070824140526.vcufi2ctcgk4kwsw@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Fri, 24 Aug 2007 14:05:26 +0200 From: Alexander Leidinger To: Nikola Lecic References: <200708231602.l7NG25Gl012495@smtpclu-3.eunet.yu> <20070824104445.rmwx59hgw8s0wg0g@webmail.leidinger.net> <200708241130.l7OBUgQf008748@smtpclu-6.eunet.yu> In-Reply-To: <200708241130.l7OBUgQf008748@smtpclu-6.eunet.yu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-13.504, required 8, BAYES_00 -15.00, MIME_QP_LONG_LINE 1.40, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: freebsd-emulation@freebsd.org, freebsd-ports@freebsd.org Subject: Re: /compat/linux/usr/bin/ld -- old devel/linux_devel port? 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, 24 Aug 2007 12:05:37 -0000 Quoting Nikola Lecic (from Fri, 24 Aug 2007 13:25:47 +0200= ): > On Fri, 24 Aug 2007 10:44:45 +0200 > Alexander Leidinger wrote: > >> Quoting Nikola Lecic (from Thu, 23 Aug 2007 >> 17:57:02 +0200): >> >> > [I sent this to freebsd-questions@ three days ago but got no >> > answers. I hope these two lists are more appropriate places for >> > this question.] >> > >> > Hello, >> > >> > What is the recommended way for obtaining linux ld binary >> > (/compat/linux/usr/bin/ld)? >> > >> > I found in the archives that devel/linux_devel port used to provide >> > it, but it seems that there is no such port now, except >> > emulators/linux*-gentoo*. >> >> The linux_base ports are not designed to do linux development. They >> are designed to run Linux programs on FreeBSD. As such some files >> are missing to give a fallthrough to the FreeBSD versions of it. >> >> If you want to do Linux development on FreeBSD you need to install a >> linux_dist port (contains a compiler toolchain) and chroot into the >> corresponding directory (it's in /usr/local/...). > > Alexander, many thanks for the explanation. My question was related to > > (1) an old freebsd-ports@ post (written by you): > > =20 > http://lists.freebsd.org/pipermail/freebsd-ports/2004-March/009943.html Ugh... be careful if you try to do something which is described here. =20 You really need to know what you are doing, else you open up pandoras =20 box... > (2) the recent user question regarding running Linux versions of GHDL > and/or GNAT compilers on FreeBSD-amd64: > > =20 > http://lists.freebsd.org/pipermail/freebsd-questions/2007-August/155758.ht= ml > > So your explanation answers the question from (2) (correct?) as well as > why linux_devel and linux_devtools ports were erased. linux_dev* where: - outdated - broken / dangerous / not suitable for RH8 or FCx - not maintained You will not be able to run ld from linux_dist without a chroot. With =20 a chroot, you will not be able to really use it from a FreeBSD Port =20 (even if you manage to get it running without the chroot). When you =20 run with a chroot, you will generate linux binaries, not FreeBSD =20 binaries. The right thing to do for (2) is to port GNAT to amd64, and I doubt =20 the easy way is to take the linux compiler and play some tricks with it. Bye, Alexander. --=20 My own business always bores me to death; I prefer other people's. =09=09-- Oscar Wilde http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137