Date: Fri, 24 Aug 2007 14:05:26 +0200 From: Alexander Leidinger <Alexander@Leidinger.net> To: Nikola Lecic <nlecic@EUnet.yu> Cc: freebsd-emulation@freebsd.org, freebsd-ports@freebsd.org Subject: Re: /compat/linux/usr/bin/ld -- old devel/linux_devel port? Message-ID: <20070824140526.vcufi2ctcgk4kwsw@webmail.leidinger.net> In-Reply-To: <200708241130.l7OBUgQf008748@smtpclu-6.eunet.yu> References: <200708231602.l7NG25Gl012495@smtpclu-3.eunet.yu> <20070824104445.rmwx59hgw8s0wg0g@webmail.leidinger.net> <200708241130.l7OBUgQf008748@smtpclu-6.eunet.yu>
next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Nikola Lecic <nlecic@EUnet.yu> (from Fri, 24 Aug 2007 13:25:47 +0200= ): > On Fri, 24 Aug 2007 10:44:45 +0200 > Alexander Leidinger <Alexander@Leidinger.net> wrote: > >> Quoting Nikola Lecic <nlecic@EUnet.yu> (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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070824140526.vcufi2ctcgk4kwsw>