Re: cant compile kernel on sparc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 30, 2008 at 06:09:16PM +0400, Alexander Beregalov wrote:
> Hi
> I am trying to configuring and compiling the kernel for sparc.
> I have got the following error
> 
> with 2.6.25:
>   CC      arch/sparc64/kernel/asm-offsets.s
> arch/sparc64/kernel/asm-offsets.c:1: error: -m64 is not supported by
> this configuration
> arch/sparc64/kernel/asm-offsets.c:1: error: -mlong-double-64 not
> allowed with -m64
> arch/sparc64/kernel/asm-offsets.c:1: error: -mcmodel= is not supported
> on 32 bit systems
> make[1]: *** [arch/sparc64/kernel/asm-offsets.s] Error 1
> make: *** [prepare0] Error 2
> 
> with 2.6.26-rc4:
>   CC      kernel/bounds.s
> kernel/bounds.c:1: error: -m64 is not supported by this configuration
> kernel/bounds.c:1: error: -mlong-double-64 not allowed with -m64
> kernel/bounds.c:1: error: -mcmodel= is not supported on 32 bit systems
> make[1]: *** [kernel/bounds.s] Error 1
> make: *** [prepare0] Error 2
> 
> cpu             : TI UltraSparc IIi (Sabre)
> fpu             : UltraSparc IIi integrated FPU
> prom            : OBP 3.25.3 2000/06/29 14:12
> type            : sun4u
> ncpus probed    : 1
> ncpus active    : 1
> D$ parity tl1   : 0
> I$ parity tl1   : 0
> Cpu0Bogo        : 880.39
> Cpu0ClkTck      : 000000001a39de00
> MMU Type        : Spitfire
> State:
> CPU0:           online
> 
> GCC:
> Target: sparc-unknown-linux-gnu
> Thread model: posix
> gcc version 4.1.2 (Gentoo 4.1.2 p1.0.2)
> 
> What is the problem?

You need a gcc that is capable of generating code for 64bit sparc -
using sparc64-unknown-linux-gnu as target for gcc should work.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux