Compiling in a 32bit lxc container on a 64bit host

Help with using MiniMyth's build system

Moderator: Pablo

Post Reply
Posts: 20
Joined: Thu Jun 05, 2008 7:13 pm

Compiling in a 32bit lxc container on a 64bit host

Post by ca_mousse » Wed Nov 17, 2010 10:58 pm


I want to try myth 0.24, and it seems i need to compile it.
So i get the gar-minimyth and launch the compilation, but in a dedicated virtual server (aka container) provided by lxc (linux container I use container for all service of my server (for the record, seems the tuner device passing to the container doesn't work, but it worked with openvz, another container provider)
The point is compilation fail during ./configure of make :
(config.log, i filter the important things)

Code: Select all

hostname = xvnc
uname -m = x86_64
uname -r = 2.6.32-5-amd64
uname -s = Linux
uname -v = #1 SMP Sat Oct 30 14:18:21 UTC 2010
configure:2140: checking for C compiler default output file name
configure:2143: gcc -pipe -march=x86-64 -O2  -m64   conftest.c  >&5
conftest.c:1:0: sorry, unimplemented: 64-bit mode not compiled in
configure:2146: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "GNU make"
| #define PACKAGE_TARNAME "make"
| #define PACKAGE_VERSION "3.81"
| #define PACKAGE_STRING "GNU make 3.81"
| #define PACKAGE "make"
| #define VERSION "3.81"
| /* end confdefs.h.  */
| int
| main ()
| {
|   ;
|   return 0;
| }
configure:2184: error: C compiler cannot create executables
This is a bit confusing. I thought it was a make issue, so i try to compile make myself, and ./configure works
I don't if it is a lxc bug (uname reports kernel version, and it is a 64bit kernel), or simply if debian lenny 32 gcc can produce 64bit executable

I will create a 64bit container to compile minimyth, so don't worry...


Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla

Re: Compiling in a 32bit lxc container on a 64bit host

Post by Pablo » Wed Dec 01, 2010 5:31 am

The problem is that "uname -m" is reporting "x86_64" so MiniMyth attempts to build with -m64.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

Post Reply