DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 20th October 2008
MetalHead MetalHead is offline
Port Guard
 
Join Date: Sep 2008
Posts: 24
Thanked 2 Times in 1 Post
Default Running Pure 64-Bits On FreeBSD.

How would one go about running a pure 64 bit system on FreeBSD? None of
the ports I'm using depends on (any) x32 libraries. I notice during buildworld that x32 code is being compiled.

Btw, what kind of (optimisations) are you guys dropping
in /etc/make.conf? I've got.
CPUTYPE=athlon64
CFLAGS= -O2 -pipe
Is using -O3 out of the question when compiling ports and world?

You're probably thinking that I should leave well enough alone, nah, I like to see what I can get by with without breaking something.

TIA
Reply With Quote
  #2   (View Single Post)  
Old 20th October 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default

Forget about cflag optimizations, they will only break things...
The only thing you can optimise is CPUTYTE

Just delete CFLAGS or any other flag entry.... This will save you troubles later

if you have nvidia card, you won't have video driver for 64bit
Reply With Quote
  #3   (View Single Post)  
Old 20th October 2008
chill's Avatar
chill chill is offline
Fdisk Soldier
 
Join Date: Jun 2008
Location: Federal Republic of the US
Posts: 74
Thanked 6 Times in 6 Posts
Default

Hi.
-O2 and -pipe are already enabled by default, like killasmurf said, you do not need to add seperate CFLAGS entries unless you have a specific reason to do so. -O3 is too aggressive and not supported.
I still refuse to use a 64 bit OS so I don't know anything about your other question. There are a lot of people here that do know about that though

Last edited by chill; 20th October 2008 at 11:03 PM.
Reply With Quote
  #4   (View Single Post)  
Old 21st October 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

Search the forums for why you don't want to mess with CFLAGS. Unless you want to get into the nitty-gritty of what all the compiler does with each optimisation/option, and what happens to the FreeBSD source with each one, just don't do it.

As for running a 64-bit desktop, you won't have Flash, nVidia driver, and a few other things. Everything else will be available.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #5   (View Single Post)  
Old 21st October 2008
BSDKaffee's Avatar
BSDKaffee BSDKaffee is offline
Real Name: Jason Hale
Coffee Addict
 
Join Date: May 2008
Location: Wintersville, Ohio
Posts: 212
Thanked 36 Times in 34 Posts
Default

Quote:
Originally Posted by MetalHead View Post
You're probably thinking that I should leave well enough alone, nah, I like to see what I can get by with without breaking something.
Better keep a rescue disk handy then. There really isn't much to gain with higher optimization levels especially with the FreeBSD kernel and userland. Unless the system doesn't mean much to you, then be warned you can really mess up a buildworld with custom CFLAGS.

You probably don't want to use a strange set of CFLAGS as a blanket for all ports either since some can break. Many ports that can stand higher optimizations with usually give you an option to do so.
Quote:
Originally Posted by MetalHead View Post
CPUTYPE=athlon64
Should be:
Code:
CPUTYPE?=athlon64
This allows override where needed.
Quote:
Originally Posted by MetalHead View Post
CFLAGS= -O2 -pipe
The default is:
Code:
CFLAGS= -O2 -fno-strict-aliasing -pipe
You want to keep -fno-strict-aliasing in there since some ports can break without it. See /usr/share/examples/etc/make.conf for further explanation.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO: Encoding // Pure Terminal // Virtual Terminal vermaden Guides 1 25th June 2010 08:02 AM
Best way to check if freebsd server is running a nameserver service/daemon Yuka FreeBSD General 7 6th November 2008 01:26 AM
Have you switched to 64 bits yet? ephemera General Hardware 24 19th September 2008 06:13 AM
pure-ftpd hirohitosan FreeBSD Ports and Packages 3 10th June 2008 06:31 PM
freeBSD router running openospfd with failover using ifstated dk_netsvil Guides 0 21st May 2008 05:26 PM


All times are GMT. The time now is 08:46 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick