[Lxc-users] sparc64-unknown-linux-gnu not supported

Daniel Lezcano daniel.lezcano at free.fr
Wed Feb 1 20:56:40 UTC 2012


On 01/31/2012 04:08 PM, Denny Schierz wrote:
> hi,
>
> I try to get lxc compiling on a Sunfire V245, but configure fails:
>
> [...]
>
> checking for sys/signalfd.h... yes
> checking whether gcc needs -traditional... no
> checking for Linux in /lib/modules//build... not found
> checking for Linux in /usr/src/linux-... not found
> checking for Linux in /usr/src/linux... yes
> checking for linux SRCARCH... configure: error: architecture sparc64-unknown-linux-gnu not supported
>
> # uname -a
> Linux foobar 2.6.32-5-sparc64-smp #1 SMP Mon Jan 16 17:28:56 UTC 2012 sparc64 GNU/Linux
>
> # cat /proc/cpuinfo
> cpu		: TI UltraSparc IIIi (Jalapeno)
> fpu		: UltraSparc IIIi integrated FPU
> pmu		: ultra3i
> prom		: OBP 4.22.33 2007/06/18 12:47
> type		: sun4u
> ncpus probed	: 2
> ncpus active	: 2
> D$ parity tl1	: 0
> I$ parity tl1	: 0
> Cpu0ClkTck	: 0000000059a53800
> Cpu1ClkTck	: 0000000059a53800
> MMU Type	: Cheetah+
> State:
> CPU0:		online
> CPU1:		online
>
> any suggestions?

Yes, that was not ported to sparc. It is not a big deal.

Adding to config/linux.m4 the following should fix this configure error:

         arm*-*) LINUX_SRCARCH=arm;;
+     sparc*-*) LINUX_SRCARCH=sparc;;
         *) AC_MSG_ERROR([architecture ${host} not supported]);;


Compile and test if that works. An quick and easy test is "lxc-execute 
-n foo /bin/bash"

Also, a modification to the lxc_clone function in src/lxc/namespace.c 
may be necessary.

   -- Daniel








More information about the lxc-users mailing list