Сборка 64-битной GCC на Linux - PullRequest
       1

Сборка 64-битной GCC на Linux

0 голосов
/ 09 февраля 2011

Я хотел использовать опцию компилятора "-m64" для gcc, и когда я попробовал его на своей машине, я получил следующую ошибку ...

[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

Когда я проверял спецификации процессора (для 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.

...