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

Re: gcc-4.1: cross build failure: debug package not built when cross compiling



Am Sun, 16. Sep 2007, 17:57:04 +0200 schrieb Matthias Klose:
> please recheck if this is still the case with current 4.1 and 4.2
> sources.

I don't currently have a powerpc machine up and running, so I won't
be able to test the resulting compiler very much.  Also, I've switched
to lenny in the meantime.  For building the pakage, I'm using

* dpkg-cross 1.39
* binutils-powerpc-linux-gnu 2.18-1
  (built it myself, no need to patch anymore)

These were all converted with dpkg-cross
* libc6-dev-powerpc-cross 2.6.1-1
* linux-libc-dev-powerpc-cross 2.6.21-6
* libc6-powerpc-cross 2.6.1-1
* libgcc1-powerpc-cross 1:4.2.1-4
* gcc-4.2-base-powerpc-cross 4.2.1-4
* libc6-dev-ppc64-powerpc-cross 2.6.1-1
* libc6-ppc64-powerpc-cross 2.6.1-1

I'm trying gcc-4.2 4.2.1 from lenny.  Let me know if you want gcc-4.1
as well.

The build as such went fine.  It produced the following packages:
cpp-4.2-powerpc-linux-gnu_4.2.1-4_i386.deb
g++-4.2-powerpc-linux-gnu_4.2.1-4_i386.deb
gcc-4.2-powerpc-linux-gnu_4.2.1-4_i386.deb
gcc-4.2-powerpc-linux-gnu-base_4.2.1-4_i386.deb
gobjc++-4.2-powerpc-linux-gnu_4.2.1-4_i386.deb
lib64gcc1-powerpc-cross_4.2.1-4_all.deb
lib64stdc++6-powerpc-cross_4.2.1-4_all.deb
libgcc1-powerpc-cross_4.2.1-4_all.deb
libstdc++6-4.2-dbg-powerpc-cross_4.2.1-4_all.deb
libstdc++6-4.2-dev-powerpc-cross_4.2.1-4_all.deb
libstdc++6-4.2-pic-powerpc-cross_4.2.1-4_all.deb
libstdc++6-powerpc-cross_4.2.1-4_all.deb

They are available from http://jorrit.de/debian/pool/main/g/gcc-4.2/ .
It also produced gcc-4.2_4.2.1-4_i386.changes containing just a single
newline.

I could install all packages except for gobjc++-4.2-powerpc-linux-gnu,
which depends on gobjc-4.2-powerpc-linux-gnu (= 4.2.1-4) and
libobjc2-powerpc-cross (>= 4.2.1-4), which are both unavailable.  Both
gobjc-4.2 and libobjc2 have gcc-4.2 as their source package, so I
guess they should be built together with the rest of gcc.

Here are a few more notes:
* linux-kernel-headers is now a virtual packages provided by
  linux-libc-dev, maybe you want to update debian/README.cross?
* debian/README.cross does not mention the packages
  libgcc1-powerpc-cross, gcc-4.2-base-powerpc-cross,
  libc6-dev-ppc64-powerpc-cross, and libc6-ppc64-powerpc-cross which
  were also necessary for building.  At least the were required by
  some dependencies.
* libgcc1-powerpc-cross is needed to cross-build gcc-4.2 since the
  libc stuff depends on it.  However, cross-building gcc will produce
  another version of libgcc1-powerpc-cross.  The version produced by
  dpkg-cross depends on gcc-4.2-base-powerpc-cross, while the other
  version depends on gcc-4.2-powerpc-linux-gnu-base, which was
  produced in the cross-build.

Thanks for your good work,
Jö.

-- 
F: Was ist der Sinn des Menschen?
A: Die Menschheit voranzubringen.
F: Aber was ist der Sinn der Menschheit?

Attachment: signature.asc
Description: Digital signature


Reply to: