On Fri, 2008-08-22 at 19:35 -0400, Matthew Gabeler-Lee wrote:
> Package: emdebian-tools
> Version: 1.4.1
> Severity: normal
> 
> I'm trying to build an i386/i486 cross compiler chain using emchain on the
> amd64 arch. 

? You don't need a cross-compiler for this, just a 32bit chroot and
normal gcc. debootstrap can create this for you.

>  emchain gives me the "Error. Mismatch in source versions" error
> when trying to do so, complaining that 4.3.1-9 is what's built on i386, but
> I'm trying to build 4.3.1-2.

emchain will only ever try to build the most recent version. 4.3.1-2 is
the version in testing. It might build under --force but as you don't
need a cross-compiler anyway. . . 

> This was rather confusing, because as far as I could tell, 4.3.1-9 should
> have been what it tried to build.

Correct.

> Eventually, I tracked this down to its confusion in reading the output of
> apt-cache showsrc gcc-4.3.  Because i have multiple source lines in my
> sources.list, the showsrc command produces multiple outputs, and emchain
> only matches the first, which happens to be the oldest.

That can be fixed, but only to ensure that the version currently in
unstable is selected.

I'll probably reinforce the error checking in emchain to prevent anyone
else thinking that amd64 -> i386 is a valid option for a cross-compiler
in the first place. emsetup does already warn that this is not a
suitable choice -

amd64: ~/$ emsetup -s -a i386
"Requested cross building architecture (i386) does not need a toolchain to
build on host (amd64)! Nothing to do. See emsetup (1)."

I guess I'll have to add that code to emchain (and ignore --force when
the error is triggered).

> Perhaps there should be an option to emchain to tell it what source versions
> of each package it should try to use?

Unsupportable, I'm afraid. There is nothing to say that an arbitrary
selection of versions would actually build. emchain does support
'--force' to use older versions, as described in the manpage, but you
don't need to use emchain at all to build the packages you need.

-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/


Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to