Wie kann ich 64bit binaries erzeugen ???
Frederik Klama
fklama at Phreaker.net
Sat Dec 20 18:45:43 CET 2003
Ich habe nun zwei Opteros, aber noch ein 32 bit Linux.
Da ich keinen Bock habe mir eine 64bit Distributuin zu kaufen und sowieso den
Kram lieber selber mache, wollte ich alles selber neu kompilieren.
Wenn ich aber "-march=atlon*" setze (jede im GCC Manual dokumentierte option)
oder "-m64" setze, meckert er immer schon im configure das gcc mir diesen
Optionen keine ausfuerbaren Dateien erstellen kann.
Folgendes Beispiel: versuch mit GCC-3.3.2 eine 64-bit bash-2.05b binary zu
erstellen:
<begin>
# export LDFLAGS="-m64" && export CPPFLAGS=$LDFLAGS
# ./configure --prefix=/usr
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
Beginning configuration for bash-2.05b-release for i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot
create executables
<end>
Das gleiche Problem habe ich wenn ich "-march=atlon-xp" anstatt oder sogar mit
"-m64" zusammen setze.
Hat jemand damit erfarungen?
Angeblich soll GCC-3.3.2 ja x86_64 binaries erstellen koennen, aber wie ???
Ich habe schon im GCC - Manual nachgeguckt und nach diesem Thema gegoogled,
aber leider ohne Erfolg.
Habe ich irgentetwas uebersehen ???
Frederik Klama
<begin "/proc/cpuinfo">
# cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 5
model name : AMD Opteron(tm) Processor 242
stepping : 1
cpu MHz : 1593.277
cache size : 1024 KB
physical id : 0
siblings : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush mmx fxsr sse sse2 syscall mmxext lm 3dnowext 3dnow
bogomips : 3178.49
processor : 1
vendor_id : AuthenticAMD
cpu family : 15
model : 5
model name : AMD Opteron(tm) Processor 242
stepping : 1
cpu MHz : 1593.277
cache size : 1024 KB
physical id : 0
siblings : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush mmx fxsr sse sse2 syscall mmxext lm 3dnowext 3dnow
bogomips : 3185.04
<end>
More information about the Linux
mailing list