How to manually compile on FreeBSD 10.x

Julien Cigar jcigar at ulb.ac.be
Wed Dec 3 14:09:37 UTC 2014


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 been an
> issue. However from FreeBSD 10, a lot has changed and it appears someone
> 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=clang++ in the Makefile (or in the env).

also I don't understand why you're not using the port (mail/exim) ?

> 
> Then I went into my tarball and did the configure/make/make install but the
> compiler made so much noise that I am not even sure the application will
> run as expected.
> This is what i am trying to grasp from the people familiar with and using
> FreeBSD 10.x. I did not need all those wikipedia entries:)
> 
> 
> 
> 
> On 3 December 2014 at 16:52, Mehmet Erol Sanliturk <m.e.sanliturk at gmail.com>
> wrote:
> 
> >
> >
> > On Wed, Dec 3, 2014 at 5:37 AM, Odhiambo Washington <odhiambo at gmail.com>
> > wrote:
> >
> >>
> >> On 3 December 2014 at 16:33, Mehmet Erol Sanliturk <
> >> m.e.sanliturk at gmail.com> wrote:
> >>
> >>> On Wed, Dec 3, 2014 at 3:09 AM, Odhiambo Washington <odhiambo at gmail.com>
> >>> wrote:
> >>>
> >>> > Hi guys,
> >>> >
> >>> > What do I need to install on FreeBSD 10 to enable me compile stuff by
> >>> hand?
> >>> >
> >>> > [root at admin ~/Exim/exim-4.85_RC2]# uname -a
> >>> > FreeBSD admin.cnet.co.za 10.0-RELEASE-p12 FreeBSD 10.0-RELEASE-p12
> >>> #0: Tue
> >>> > Nov  4 04:15:03 UTC 2014
> >>> > root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC
> >>> >  i386
> >>> >
> >>> >
> >>> >
> >>> > [root at admin ~/Exim]# cp Makefile-Exim-4.85x.txt exim-4.85_RC2/L
> >>> > LICENCE            LICENSE.opendmarc  Local/
> >>> > [root at admin ~/Exim]# cp Makefile-Exim-4.85x.txt
> >>> > exim-4.85_RC2/Local/Makefile
> >>> > [root at admin ~/Exim]# cd exim-4.85_RC2
> >>> > [root at admin ~/Exim/exim-4.85_RC2]# make
> >>> > /bin/sh scripts/source_checks
> >>> >
> >>> > >>> Creating links to source files...
> >>> > >>> Creating lookups/Makefile for building dynamic modules
> >>> > >>> New Makefile & lookups/Makefile installed
> >>> > >>> Use "make makefile" if you need to force rebuilding of the makefile
> >>> >
> >>> > */bin/sh ../scripts/Configure-os.h*
> >>> > */bin/sh ../scripts/Configure-os.c*
> >>> > *gcc buildconfig.c*
> >>> > *make[1]: exec(gcc) failed (No such file or directory)*
> >>> > **** Error code 1*
> >>> >
> >>> > Stop.
> >>> > make[1]: stopped in /root/Exim/exim-4.85_RC2/build-FreeBSD-i386
> >>> > *** Error code 1
> >>> >
> >>> > Stop.
> >>> > make: stopped in /root/Exim/exim-4.85_RC2
> >>> >
> >>> >
> >>> >
> >>> > --
> >>> > Best regards,
> >>> > Odhiambo WASHINGTON,
> >>> > Nairobi,KE
> >>> > +254733744121/+254722743223
> >>> > "I can't hear you -- I'm using the scrambler."
> >>> >
> >>>
> >>>
> >>> What does
> >>>
> >>> "compile stuff by hand"
> >>>
> >>> mean ?
> >>>
> >>>
> >> Download tarball
> >> Extract tarball
> >> ./configure --with-your-favorite-opts
> >> make
> >> make install
> >>
> >>
> >>>
> >>
> >>
> >> --
> >> Best regards,
> >> Odhiambo WASHINGTON,
> >> Nairobi,KE
> >> +254733744121/+254722743223
> >> "I can't hear you -- I'm using the scrambler."
> >>
> >
> >
> >
> > http://en.wikipedia.org/wiki/Build_automation
> > http://en.wikipedia.org/wiki/List_of_build_automation_software
> > http://en.wikipedia.org/wiki/Category:Build_automation
> >
> >
> > If a suitable software exists for you in the Ports/Packages you may use it
> > ,
> > otherwise it may be necessary to download related sources of your selected
> > software
> > and compile and use it .
> >
> > For some projects supplying tarballs , they may also supply a Version
> > Control Facility
> > such as Subversion or Git which you may continuously upgrade your system
> > incrementally by using a clone of their Version Control Facility.
> >
> >
> > Thank you very much .
> >
> > Mehmet Erol Sanliturk
> >
> >
> >
> >
> >
> 
> 
> -- 
> Best regards,
> Odhiambo WASHINGTON,
> Nairobi,KE
> +254733744121/+254722743223
> "I can't hear you -- I'm using the scrambler."
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"

-- 
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20141203/7454f260/attachment.sig>


More information about the freebsd-questions mailing list