Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Aug 2007 15:47:12 +0200
From:      Nikola Lecic <nlecic@EUnet.yu>
To:        Alexander Leidinger <Alexander@Leidinger.net>
Cc:        freebsd-emulation@freebsd.org, freebsd-ports@freebsd.org
Subject:   Re: /compat/linux/usr/bin/ld -- old devel/linux_devel port?
Message-ID:  <200708241352.l7ODq6kZ004409@eunet.yu>
In-Reply-To: <20070824140526.vcufi2ctcgk4kwsw@webmail.leidinger.net>
References:  <200708231602.l7NG25Gl012495@smtpclu-3.eunet.yu> <20070824104445.rmwx59hgw8s0wg0g@webmail.leidinger.net> <200708241130.l7OBUgQf008748@smtpclu-6.eunet.yu> <20070824140526.vcufi2ctcgk4kwsw@webmail.leidinger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 24 Aug 2007 14:05:26 +0200
Alexander Leidinger <Alexander@Leidinger.net> wrote:

[...]
> >> 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
>=20
> Ugh... be careful if you try to do something which is described
> here. You really need to know what you are doing, else you open up
> pandoras box...

Understood. :)
=20
> >   (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=
.html
> >
> > So your explanation answers the question from (2) (correct?) as
> > well as why linux_devel and linux_devtools ports were erased.
>=20
> linux_dev* where:
>   - outdated
>   - broken / dangerous / not suitable for RH8 or FCx
>   - not maintained
>=20
> You will not be able to run ld from linux_dist without a chroot.
> With a chroot, you will not be able to really use it from a FreeBSD
> Port (even if you manage to get it running without the chroot). When
> you run with a chroot, you will generate linux binaries, not FreeBSD =20
> binaries.

Ok, so such a mixing is out of question...
=20
> 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.

... I thought that skipping GNAT and using linux binaries of GHDL
compiler directly could be useful in meantime for that user. And again,
my thoughts about it were inspired by the existence of lang/ifc port.

I mean, despite the fact that linux-ghdl compiler (which needs linux-ld)
produces linux binaries, it still can be useful for someone who wants
to switch to FreeBSD. In fact, I obviously lack the knowledge on how
IFC produces FreeBSD binaries and if it's possible in other cases. But
that's another story.

Nikola Le=C4=8Di=C4=87



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708241352.l7ODq6kZ004409>