DragonFly users List (threaded) for 2007-05
DragonFly BSD
DragonFly users List (threaded) for 2007-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: rebuild DragonFly using gcc 4.1


From: Bill Hacker <wbh@xxxxxxxxxxxxx>
Date: Sun, 06 May 2007 12:22:37 +0800

Erik Wikström wrote:
On 2007-05-05 20:59, arnuld wrote:
On 5/5/07, arnuld <geek.arnuld@gmail.com> wrote:
i wanted to have GCC 4.x based DragonFly system (for a C++ project)

Arnild,


Pardon the top post, but I'd take all this a step or so further for a 'newbie' with only one machine:

- Install a 'production' release of DragonFly in a separate slice before installing 'preview' or 'head' in its own slice.

Equip the 'production' one with email, browser, man pages - all the 'tools' you need.

And *keep* that one installed. i.e. - be able to boot to no fewer than TWO DFLY.
Throw in FreeBSD, Minix or a Linux if you have the space, time, and inclination.
Use a second drive or a USB stick if need be.

Now you have a DragonFly baseline that is 'known stable', gets you man pages, packages, tarballs, browsing, etc - all with minimal hassle vs HEAD.

From it, you can also manually mount the slice and partitions of the 'R&D' version 'next door'. That lets you transfer files, inspect, alter, fix things of the sibling. Or clean it out and start with another.

. . which may be just another copy of the release version equipped with the Gcc 4.x compiler suite.

PREVIEW or HEAD are probably not needed for your project at all *unless* their newest features - not just Gcc 4.x - are specifically part of the project itself.

HTH,

Bill Hacker


and "Trevor Kendall" advised this:

------------
If you are using 1.8.x:
In /etc/make.conf uncomment WANT_GCC41=yes and rebuild.

If you are using HEAD, it is built automatically already.

To use it set CCVER to gcc41.
--------------


but "Matt" said "please do NOT use HEAD". so i used "LATEST preview release" which was GCC 3.4 based. In "/etc/mk.conf" i added a line "WANT_GCC41=yes" but i do not know how to rebuild ? i tried Google and got this:

# make buildworld
# make buildkernel

More on this at the end.


when i try this i get this message: "do not know how to build world".
funny message, i thought.  so i have these questions:

1.) Is it a good idea to use  DragonFly preview release as my
general-purpose OS. actually, i want learn UNIX and i want GCC 4.x to
work on a C++ project. i just use a Window Manager, xine-ui, firefox,
emacs, bash, gimp, audacious or xmms and nothing else. i don't use
Desktops.

Well, most of those applications will probably be available from pkgsrc and if not then some other workalike will be. And it's quite a good system to learn about UNIX on since it does not try to hide it's heritage like some Linux distros (Ubunto).


2.) how to rebuild the preview release for gcc4.x and how long this
process will be ?

It depends a bit on your computer and internet connection, but it can take a up to a couple of hours on a not to old PC.


3.) is it necessary to do this before rebuilding world:

cvs -d anoncvs@anoncvs.us.netbsd.org:/cvsroot co pkgsrc

even after 4 hours, it is still downloading packages :-(. is it
downloading the source code of every package ?

No, it's not necessary, in fact I would not do that at all if I were you. Using binary packages are much easier, see below for more info.


4.) DragonFlyBSd guide also advises to use "cvs up" after step 3. what
is it and how much time will that take ?

It downloads the DragonFly sourcecode to your computer so that you can compile it. If you have a slow connection you might want to download a compressed tarball of the sources instead of using cvsup. You can download tarballs from here: ftp://chlamydia.fs.ei.tum.de/pub/DragonFly/snapshots/src


hmm.. this page gives lots of information tha i snot present in
"DragonFlyBSD handbook":

http://wiki.dragonflybsd.org/index.cgi/QuickStartBSDUser

Yes, the steps under Keeping up to date are good, but use the file


/usr/share/examples/cvsup/DragonFly-release1_8-supfile

or

/usr/share/examples/cvsup/DragonFly-preview-supfile

it you want preview. If you have a slow connection you might want to download a tarball as mentioned above.

For third party application don't follow what's written under Installing software, look at http://wiki.dragonflybsd.org/index.cgi/HowToPkgsrc and follow the steps under the section Pre-built pkgsrc packages, but use the addresses found on

ftp://packages.stura.uni-rostock.de/pkgsrc-current/DragonFly/RELEASE/i386/All


if a package you want can't be found there take a look in


ftp://packages.stura.uni-rostock.de/pkgsrc-current/DragonFly/RELEASE/i386/vulnerable





[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]