Bacula-users

Re: [Bacula-users] Problems startingBacula aftercompilingandinstalling

2009-01-21 13:50:24
Subject: Re: [Bacula-users] Problems startingBacula aftercompilingandinstalling
From: "Reynier Perez Mira" <rperezm AT uci DOT cu>
To: "Bruno Friedmann" <bruno AT ioda-net DOT ch>
Date: Wed, 21 Jan 2009 13:47:52 -0500
> before the .configure
> do a
> export CFLAGS="-O2 -g -msse -mmmx -march=i586 -mtune=i686 -funroll-loops
> -mfpmath=sse -fmessage-length=0 -fno-strict-aliasing
> -pipe -fstack-protector -Wall -D_FORTIFY_SOURCE=0"
> 
> if you are on a 686 proc other flags exist for x86_64
> man gcc would be your friends or check what flags usually use other deb's
> packagers.

Hi again Bruno:
I have not experience working with flags in GCC compiler. Also as you suggested 
me I read the man for gcc and found this for my proc wich is i686:

i386 and x86-64 Options -mtune=cpu-type  -march=cpu-type -mfpmath=unit 
-masm=dialect  -mno-fancy-math-387 -mno-fp-ret-in-387  -msoft-float 
-mno-wide-multiply  -mrtd  -malign-double -mpreferred-stack-boundary=num -mcld  
         -mcx16 -msahf -mrecip -mmmx  -msse  -msse2 -msse3 -mssse3 -msse4.1 - 
sse4.2 -msse4 -msse4a -m3dnow -mpopcnt -mabm -msse5 -mthreads  
-mno-align-tringops  -minline-all-stringops -mpush-args  
-maccumulate-outgoing-args -m128bit-long-double -m96bit-long-double  
-mregparm=num  -msseregparm -mveclibabi=type -mpc32 -mpc64 -mpc80 
-mstackrealign -momit-leaf-frame-pointer  -mno-red-zone 
-mno-tls-direct-seg-refs -mcmodel=code-model -m32  -m64 
-mlarge-data-threshold=num -mfused-madd -mno-fused-madd

Seeing what you give me exist some flags that I don't know what they do in the 
export thing. I run this command: pg /proc/cpuinfo and get this information:

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Xeon(R) CPU            5140  @ 2.33GHz
stepping        : 8
cpu MHz         : 2333.337
cache size      : 4096 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss constant_tsc arch_perfmon pebs 
bts pni ds_cpl ssse3
bogomips        : 4666.67
clflush size    : 64
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Xeon(R) CPU            5140  @ 2.33GHz
stepping        : 8
cpu MHz         : 2333.337
cache size      : 4096 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss constant_tsc arch_perfmon pebs 
bts pni ds_cpl ssse3
bogomips        : 4668.19
clflush size    : 64

And also this other: uname -a
Linux BaculaDTServer 2.6.27-11-server #1 SMP Thu Jan 8 09:24:09 UTC 2009 i686 
GNU/Linux

Could you help me to write the right CFLAGS options for this machine and avoid 
the error while compiling the Bacula Sources?

Cheers and thanks in advance
Ing. Reynier Pérez Mira
Dirección Técnica IP 

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users