Re: debian crossgcc
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> For gcc-3.3.4-6sarge1 on 'sarge', I get patch errors when I run the
> 'debian/rules control' command.
Hello.
I've just checked the difference between gcc-3.3 source packages from sid
(3.3.4-9) and from testing (gcc-3.3 3.3.4-6sarge1). I could not find any
difference that could break cross-compiler package building. And 3.3.4-9
built ok for me today for all debian targets.
Please ensure all build-deps are installed (including dpkg-cross and
cross-binutils for target), apply the attached patch, and try to follow
build instructions in README.cross.
If it will fail, please send me complete build log of the failure.
Thank you for your support.
> Oh, btw: dpkg-cross seems to conflict with debhelper, which is a
> build-requirement of gcc.
Until this issue is resolved, you may use previous version of debhelper
from
http://snapshot.debian.net/archive/2004/08/15/debian/pool/main/d/debhelper/
and newest dpkg-cross from
http://zigzag.lvk.cs.msu.su/~nikita/debian/sid/
Nikita
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBK5hQsTbPknTfAB4RAiaMAJ9X69AbfkEd1dLNjT3qcO8YLV/kbQCeJnY4
PbrD/ox0pUI26yoD8QcK0qQ=
=KSi2
-----END PGP SIGNATURE-----
diff -urN gcc-3.3-3.3.4-6sarge1/debian/rules.d/binary-libgcc-cross.mk gcc-3.3-3.3.4/debian/rules.d/binary-libgcc-cross.mk
--- gcc-3.3-3.3.4-6sarge1/debian/rules.d/binary-libgcc-cross.mk 2004-08-24 22:47:11.000000000 +0400
+++ gcc-3.3-3.3.4/debian/rules.d/binary-libgcc-cross.mk 2004-08-24 23:15:21.000000000 +0400
@@ -35,7 +35,7 @@
dh_installchangelogs -p$(p_lgcc)
debian/dh_rmemptydirs -p$(p_lgcc)
- ARCH=$(DEB_TARGET_ARCH) MAKEFLAGS="CC=something" dh_strip -p$(p_lgcc)
+ PATH=/usr/share/dpkg-cross:$$PATH ARCH=$(DEB_TARGET_ARCH) MAKEFLAGS="CC=something" dh_strip -p$(p_lgcc)
dh_compress -p$(p_lgcc)
dh_fixperms -p$(p_lgcc)
ifeq ($(with_shared_libgcc),yes)
@@ -80,7 +80,7 @@
dh_installchangelogs -p$(p_l64gcc)
debian/dh_rmemptydirs -p$(p_l64gcc)
- ARCH=$(DEB_TARGET_ARCH) MAKEFLAGS="CC=something" dh_strip -p$(p_l64gcc)
+ PATH=/usr/share/dpkg-cross:$$PATH ARCH=$(DEB_TARGET_ARCH) MAKEFLAGS="CC=something" dh_strip -p$(p_l64gcc)
dh_compress -p$(p_l64gcc)
dh_fixperms -p$(p_l64gcc)
ifeq ($(with_shared_libgcc),yes)
diff -urN gcc-3.3-3.3.4-6sarge1/debian/rules.d/binary-libstdcxx-cross.mk gcc-3.3-3.3.4/debian/rules.d/binary-libstdcxx-cross.mk
--- gcc-3.3-3.3.4-6sarge1/debian/rules.d/binary-libstdcxx-cross.mk 2004-08-24 22:47:11.000000000 +0400
+++ gcc-3.3-3.3.4/debian/rules.d/binary-libstdcxx-cross.mk 2004-08-24 23:16:22.000000000 +0400
@@ -89,7 +89,7 @@
dh_installchangelogs -p$(p_lib)
debian/dh_rmemptydirs -p$(p_lib)
- ARCH=$(DEB_TARGET_ARCH) MAKEFLAGS="CC=something" dh_strip -p$(p_lib)
+ PATH=/usr/share/dpkg-cross:$$PATH ARCH=$(DEB_TARGET_ARCH) MAKEFLAGS="CC=something" dh_strip -p$(p_lib)
dh_compress -p$(p_lib)
dh_fixperms -p$(p_lib)
DH_COMPAT=3 dh_makeshlibs -p$(p_lib) \
@@ -135,7 +135,7 @@
dh_installchangelogs -p$(p_lib64)
debian/dh_rmemptydirs -p$(p_lib64)
- ARCH=$(DEB_TARGET_ARCH) MAKEFLAGS="CC=something" dh_strip -p$(p_lib64)
+ PATH=/usr/share/dpkg-cross:$$PATH ARCH=$(DEB_TARGET_ARCH) MAKEFLAGS="CC=something" dh_strip -p$(p_lib64)
dh_compress -p$(p_lib64)
dh_fixperms -p$(p_lib64)
DH_COMPAT=3 dh_makeshlibs -p$(p_lib64) \
@@ -209,7 +209,7 @@
debian/dh_rmemptydirs -p$(p_dbg)
endif
- ARCH=$(DEB_TARGET_ARCH) MAKEFLAGS="CC=something" dh_strip -p$(p_dev) -p$(p_pic)
+ PATH=/usr/share/dpkg-cross:$$PATH ARCH=$(DEB_TARGET_ARCH) MAKEFLAGS="CC=something" dh_strip -p$(p_dev) -p$(p_pic)
dh_compress -p$(p_dev) -p$(p_pic) -p$(p_dbg) -X.txt
dh_fixperms -p$(p_dev) -p$(p_pic) -p$(p_dbg)
dh_gencontrol -p$(p_dev) -p$(p_pic) -p$(p_dbg) \
diff -urN gcc-3.3-3.3.4-6sarge1/debian/rules.defs gcc-3.3-3.3.4/debian/rules.defs
--- gcc-3.3-3.3.4-6sarge1/debian/rules.defs 2004-08-24 22:47:11.000000000 +0400
+++ gcc-3.3-3.3.4/debian/rules.defs 2004-08-24 23:12:36.000000000 +0400
@@ -435,6 +435,9 @@
#ifeq ($(with_common_libs),yes)
# with_libgcc := yes
#else
+ifdef DEB_CROSS
+ with_libgcc := yes
+else
libgcc_archs := hppa m68k
ifeq ($(DEB_TARGET_ARCH), $(findstring $(DEB_TARGET_ARCH),$(libgcc_archs)))
with_libgcc := yes
@@ -442,6 +445,7 @@
with_libgcc := no
with_shared_libgcc := no
endif
+endif
#endif
# run testsuite --------------------
Reply to: