A little guidance please

From: Yeric (NOSPAM_at_NOSPAM.com)
Date: 03/02/04


Date: Tue, 2 Mar 2004 21:21:08 +0000 (UTC)

Hello all :)

Ok for my 3rd year project, I have to write up a comprehensive report on
various Un*x operating systems, from choosing 3 os's to building them from
sources, all good fun so far, I have chosen Gentoo Linux ( not a troll ;p )
FreeBSD and Rock Linux, I have to compare the os's and write down all the
pros and cons of each, their strengths pitfalls ( are there any :) )

Ok but I am not going to ask you to answer these questions, I used this
purely as an intro of what I am doing, and why I might want to go through
the gruelling task of building an os from scratch.

I have successfully built both Gentoo and Rock from scratch apart from Rock
which requires an installed version of rock to build an architecture
specific release from sources, and used a stage 1 to build Gentoo, configure
some basic services, such as ftp, dhcp server, nfs and a few others.

I have managed to install FreeBSD and boot into it and have to say this does
not differ greatly from other os's using packages, but now I need to rebuild
FreeBSD ( I am assuming with make buildworld, make kernel etc )

I have had several attempts at this and all have worked, except I cant seem
to specify the cpu settings for the compile ?

Reading the handbook it says copy the settings from /etc/defaults/make.conf
that you require to /etc/make.conf.

Well firstly /etc/defaults/make.conf does not exist it has some entries in
/etc/defaults like rcd.conf pccard.conf but no make.conf.

So I figured that maybe I could set up the /etc/make.conf file similar to
the Gentoo make.conf file minus useflags and other settings.

So I add a line to the sparse make.conf -mcpu=athlon-xp ( as per man make
page and gcc man page )

empty the /usr/obj dir
cd /usr/src
make buildworld

but it is still setting -mcpu to PentiumPro which is ok as this all compiles
fine, but does not allow me to compile specifically for my processor which
is what I need to do

I did not do the cvsup as I have sources instaled from my minimal install cd
and figured, using the current branch, I did not wish to give myself any
more headaches just yet.

So could some kind soul please help me out here, I wish to buildworld for an
Athlon-xp and possibly set optimization to -O2 though I have to say building
the other distros with all optimization settings, I was unable to see any
noticable gains in performance over the -Os -O2 and -O3 but O2 seems to give
the best of both worlds O3 actually seems slower and binaries larger ?? Os
gave reduced binary, but was a tadge slower.

I have been looking at /usr/share/mk/bsd.README and tried experimenting with
the bsd.cpu.mk file, this seems to read CPUTYPE but I just cant fugre out
where from

Hope someone can help me here please, I have at least 3 builds to do on
FreeBSD with all -Ox settings, as well as attempting the possibility of a
cross compile

Thanks in advance
Yeric



Relevant Pages

  • Re: A little guidance please
    ... > I have successfully built both Gentoo and Rock from scratch apart from ... > to specify the cpu settings for the compile? ... > Reading the handbook it says copy the settings from ... > I did not do the cvsup as I have sources instaled from my minimal install ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Creating directories on Vista machines using .NET
    ... One thing that the Access database does is maintain settings relating to the ... dialog box asking which account to run the install under. ... even if I run the install using administrator rights, ...
    (microsoft.public.dotnet.framework)
  • Re: Going about a fresh reinstall
    ... Copy this folder to ... specific programs' settings. ... >the install. ... >those you don't have a clue how you'll restore later. ...
    (microsoft.public.windowsxp.moviemaker)
  • Re: WinSock Problem
    ... yes i did chk the lan settings and made sure nothing was checked in the lan ... i did not check the power management as this is the first ... get onto the update site long enough to do a full check and install. ... trying to be accessed that was not in the catalog yet the winsock fix did not ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Going about a fresh reinstall
    ... specific programs' settings. ... I'll know which applications I want to redownload and install. ... latest virus definitions. ... My c:\Data folder remains untouched throughout the ...
    (microsoft.public.windowsxp.moviemaker)