xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>,
	Xen-devel List <xen-devel@lists.xen.org>
Subject: Re: Xen-unstable 32bit build broken on 64bit systems with multiarch
Date: Thu, 23 May 2013 11:10:30 +0100	[thread overview]
Message-ID: <519DEB16.7080706@citrix.com> (raw)
In-Reply-To: <1369303267.17830.25.camel@zakaz.uk.xensource.com>

On 23/05/13 11:01, Ian Campbell wrote:
> On Thu, 2013-05-23 at 10:39 +0100, Andrew Cooper wrote:
>> Hello,
>>
>> Trying to build 32bit tools on a 64bit multiarch system (Debian Wheezy
>> in my case) fails.
> I'm not sure that multiarch is actually quite ready for cross building
> in the "biarch" -m32 manner, I think til now they have mostly
> concentrated on being able to cross install runtime packages and proper
> cross building (i.e. with $triplet-gcc not gcc -m32).
>
> This is all based on vague observations on e.g. Debian devel and not
> something I'm 100% sure on.
>
>> $ make XEN_TARGET_ARCH=x86_32 -j4
> [...]
>> I suspect that the issue is the lack of an -m32 for
>>
>> gcc    -Wl,-soname -Wl,libxenctrl.so.4.0 -shared -o libxenctrl.so.4.0.0
>> xc_core.opic xc_core_x86.opic xc_cpupool.opic xc_domain.opic
>> xc_evtchn.opic xc_gnttab.opic xc_misc.opic xc_flask.opic xc_physdev.opic
>> xc_private.opic xc_sedf.opic xc_csched.opic xc_csched2.opic
>> xc_arinc653.opic xc_tbuf.opic xc_pm.opic xc_cpu_hotplug.opic
>> xc_resume.opic xc_tmem.opic xc_mem_event.opic xc_mem_paging.opic
>> xc_mem_access.opic xc_memshr.opic xc_hcall_buf.opic
>> xc_foreign_memory.opic xtl_core.opic xtl_logger_stdio.opic
>> xc_pagetab.opic xc_linux.opic xc_linux_osdep.opic -ldl -lpthread
>>
>> I have tried a few ideas but not managed to get a successful build. 
>> Does anyone with more knowledge in this area have any suggestions?
> What happens if you add the -m32? Do the error messages differ?
>
> Ian.
>

With -m32, I fail to link against -lbz2 and -lz.  I thought I had
installed both variants of these libraries but I am now not so sure.

~Andrew

  reply	other threads:[~2013-05-23 10:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-23  9:39 Xen-unstable 32bit build broken on 64bit systems with multiarch Andrew Cooper
2013-05-23 10:01 ` Ian Campbell
2013-05-23 10:10   ` Andrew Cooper [this message]
2013-05-23 10:23     ` Ian Campbell
2013-05-23 10:27       ` Andrew Cooper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=519DEB16.7080706@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).