在linux上构建64位gcc

时间:2011-02-09 05:26:06

标签: gcc 64-bit

我想使用gcc的“-m64”编译器选项,当我在我的机器上尝试它时,我得到了以下错误......

[root@-DELL-1950-SERVER]/root/abc/utilities>gcc -m64 porting1.c
porting1.c:1: sorry, unimplemented: 64-bit mode not compiled in 

当我检查处理器信息时,以下是输出。

[root@-DELL-1950-SERVER]/root/abc/utilities/gcc-4.1.1-new/gcc-4.1.1>dmidecode -t 4
# dmidecode 2.7
SMBIOS 2.4 present.

Handle 0x0400, DMI type 4, 40 bytes.
Processor Information
        Socket Designation: CPU1
        Type: Central Processor
        Family: Xeon
        Manufacturer: Intel
        ID: F6 06 00 00 FF FB EB BF
        Signature: Type 0, Family 6, Model 15, Stepping 6
        Flags:
                FPU (Floating-point unit on-chip)
                VME (Virtual mode extension)
                DE (Debugging extension)
                PSE (Page size extension)
                TSC (Time stamp counter)
                MSR (Model specific registers)
                PAE (Physical address extension)
                MCE (Machine check exception)
                CX8 (CMPXCHG8 instruction supported)
                APIC (On-chip APIC hardware supported)
                SEP (Fast system call)
                MTRR (Memory type range registers)
                PGE (Page global enable)
                MCA (Machine check architecture)
                CMOV (Conditional move instruction supported)
                PAT (Page attribute table)
                PSE-36 (36-bit page size extension)
                CLFSH (CLFLUSH instruction supported)
                DS (Debug store)
                ACPI (ACPI supported)
                MMX (MMX technology supported)
                FXSR (Fast floating-point save and restore)
                SSE (Streaming SIMD extensions)
                SSE2 (Streaming SIMD extensions 2)
                SS (Self-snoop)
                HTT (Hyper-threading technology)
                TM (Thermal monitor supported)
                PBE (Pending break enabled)
        Version: Intel(R) Xeon(R) CPU            5110  @ 1.60GHz
        Voltage: 1.4 V
        External Clock: 1066 MHz
        Max Speed: 3600 MHz
        Current Speed: 1600 MHz
        Status: Populated, Enabled
        Upgrade: <OUT OF SPEC>
        L1 Cache Handle: 0x0700
        L2 Cache Handle: 0x0701
        L3 Cache Handle: 0x0702
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Part Number: Not Specified

当我检查CPU规格(对于Intel Xeon 5110)时,它说它是64位机器。

我在这台机器上运行的操作系统是32位

[root@-DELL-1950-SERVER]/root/abc/utilities/gcc-4.1.1-new/gcc-4.1.1>uname -a
Linux PHX-DELL-1950-SERVER 2.6.19.wx.Apr.08.2010 #1 SMP Thu Dec 23 09:59:34 IST 2010 i686 i686 i386 GNU/Linux

现在,我想在这台机器上构建64位gcc。 我应该在./configure中提供什么作为输入,以便它是64位gcc。

0 个答案:

没有答案