Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Dec 2014 15:42:30 +0100
From:      Julien Cigar <jcigar@ulb.ac.be>
To:        Odhiambo Washington <odhiambo@gmail.com>
Cc:        questions <questions@freebsd.org>, User Questions <freebsd-questions@freebsd.org>
Subject:   Re: How to manually compile on FreeBSD 10.x
Message-ID:  <20141203144230.GE23042@mordor.lan>
In-Reply-To: <CAAdA2WM8s9CGN6HSe3oV=W%2BRriTLmX6X1WtsAvsGkKKnGxB3AQ@mail.gmail.com>
References:  <CAAdA2WO2g7e48kJc8=oQ=pKYUDNwX2obV5WnzupC8gmT5xiPFQ@mail.gmail.com> <CAOgwaMtPFsNNM9reg5iRSjO5At09dbU7V-Kg=D9hcHxtEi3znw@mail.gmail.com> <CAAdA2WMFi2p_sOraRTM1HSMt_bfUj3ragaGtm7NrZnPgwaMtMg@mail.gmail.com> <CAOgwaMtmVixcEXHq1Y2wat1p2XWY5JE1ytaFzBnew8198cK%2Btg@mail.gmail.com> <CAAdA2WOJpqHkVe9dea-8_AXEWOYKwNRtr9ZQ6hei7X1pvZbD7g@mail.gmail.com> <20141203140927.GC23042@mordor.lan> <CAAdA2WM8s9CGN6HSe3oV=W%2BRriTLmX6X1WtsAvsGkKKnGxB3AQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--lteA1dqeVaWQ9QQl
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Dec 03, 2014 at 05:21:05PM +0300, Odhiambo Washington wrote:
> On 3 December 2014 at 17:09, Julien Cigar <jcigar@ulb.ac.be> wrote:
>=20
> > On Wed, Dec 03, 2014 at 04:57:58PM +0300, Odhiambo Washington wrote:
> > > Hi Mehmet,
> > >
> > > You perhaps did not understand my question or I wasn't clear.
> > >
> > > On previous versions of FreeBSD, issues with compilers have never bee=
n an
> > > issue. However from FreeBSD 10, a lot has changed and it appears some=
one
> > > needs to manually install a compiler.
> >
> > GCC has been removed from BASE in FreeBSD 10+ (and replaced by CLANG)
> >
> > >
> > > I went around my problem by:
> > >
> > > cd /usr/bin
> > > ln -s clang++ gcc
> >
> > that's a very bad idea.. You should install gcc from ports or force
> > CXX=3Dclang++ in the Makefile (or in the env).
> >
> > also I don't understand why you're not using the port (mail/exim) ?
> >
>=20
>=20
>=20
> Hi Julien,
>=20
> That very bad idea came from
> http://stackoverflow.com/questions/23180725/how-to-install-g-on-freebsd :=
-)
> There is also the option to install gcc from the ports, but I went for the
> shortcut of symlink because of obvious reasons - not knowing what is the
> best.
>=20

beware of stackoverflow.com, it's full of mistakes, don't trust it

the answer that says "It was renamed in FreeBSD 10. Fixed by creating
symlink in /usr/bin:" is just plain wrong.. GCC is not CLANG

>=20
> So I have done away with the symlink.
>=20
> [root@admin ~/Exim/exim-4.85_RC2]# export CXX=3Dclang++ (I even added it =
to
> /etc/make.conf)
> [root@admin ~/Exim/exim-4.85_RC2]# make
> /bin/sh scripts/source_checks
> `Makefile' is up to date.
>=20
> gcc buildconfig.c
> make[1]: exec(gcc) failed (No such file or directory)
> *** Error code 1
>=20
> Stop.
> make[1]: stopped in /root/Exim/exim-4.85_RC2/build-FreeBSD-i386
> *** Error code 1
>=20
> Stop.
> make: stopped in /root/Exim/exim-4.85_RC2
> [root@admin ~/Exim/exim-4.85_RC2]#
>=20

you should install GCC from ports, for example lang/gcc (which install
gcc 4.8) and do an $> export CC=3Dgcc48

> The reason I am not using the port is because I want to test the current
> version of Exim.
>=20
> What is the best way to handle this? Step-by-step please.
>=20
>=20
>=20
>=20
>=20
>=20
> --=20
> Best regards,
> Odhiambo WASHINGTON,
> Nairobi,KE
> +254733744121/+254722743223
> "I can't hear you -- I'm using the scrambler."

--=20
Julien Cigar
Belgian Biodiversity Platform (http://www.biodiversity.be)
PGP fingerprint: EEF9 F697 4B68 D275 7B11  6A25 B2BB 3710 A204 23C0
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.

--lteA1dqeVaWQ9QQl
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAABCgAGBQJUfyFVAAoJEAi2KiTKQR5pURkP/1HJDxGWhk3/StRP/0KmWSH4
FDbzQwf8hwgQ9bDI5Dt2HRxzSu3eBWloTWOcnegOabc0luRy7GfLDSgQDUwlH2Ta
wCYmrrPGcSrM9yZR5J8iU7oNblmlI4B8yUrINEROKCZ3Eewu8oD03GbQRcgYQTIM
bJNf6D9INaOt6dPGGqR9ouEH+TQXOTDTLnC4haqE/B6UPrPtWP5tCQtXjn6nrKZE
ry374saOswk0MuOjQTgHDEF2naHDZp6mChxQFng+DqpCwBvN2gMnhAk1YtkRTypw
pAhrj15na4zq8fQk1UHSXwBZkd8zAyj42uv/otgd75FVGPiiG8NQ5oZHa5yYpeWf
Xwhul5Z2YnaT5PZ0xs+7zFL8a/ppgwcO/f9BXONn4z0jQrJ8/RParBOEnDrKAim5
vVc34w0b7Dj7T05FkqS7U89zQZV/uLwdGVlgTHFWtV/clrz6VMQfINzC+7RQa4qC
DDo9WU5hJtpiyobD7LySPGBl5PDVnpv+9kOlYCsYFsN1paizG8+WPr0s68JzShLa
6e5wcwOdw2Gt7b8Aa3/eyFfcPqiyZZuL2eDMX/2nMi3Q9ikgSNB1qI3tf8jt6fJ4
K1Hqg9Vc5oAKgNz3dgNmbk0dnb+SiHY/b/j+dczIjrYVqcdSrJVYIVodVzkr3bS9
w6mSu95nyuneB4cd/06S
=Qm2g
-----END PGP SIGNATURE-----

--lteA1dqeVaWQ9QQl--



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