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

Bug#682689: buildcross fails to build gcc-4.7



Package: buildcross
Followup-For: Bug #682689

Sorry previous patchset was not tested with default config (ie building
cross libs before gcc-4.7).
Please replace
0006-add-gcc-4.7-base-to-the-dependencies-to-strip-from-the.txt
with the one attached and add
0007-cross-libs-depends-on-gcc-4.7-now.txt
to the serie.

BR,
Alban


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.6.0-rc3test0-00207-g318e151-dirty (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages buildcross depends on:
ii  autoconf                          2.69-1
ii  autoconf2.13                      2.13-62
ii  autogen                           1:5.16.2-2
ii  automake1.4                       1:1.4-p6-13.1
ii  automake1.9                       1.9.6+nogfdl-4
ii  bison                             1:2.5.dfsg-2.1
ii  build-essential                   11.5
ii  bzip2                             1.0.6-4
ii  cdbs                              0.4.117
ii  chrpath                           0.13-2
ii  dctrl-tools                       2.22.2
ii  debhelper                         9.20120909
ii  dejagnu                           1.5-3
ii  devscripts                        2.12.3
ii  dh-make                           0.61
ii  dpatch                            2.0.35
ii  dpkg-cross                        2.6.7
ii  fakeroot                          1.18.4-2
ii  flex                              2.5.35-10.1
ii  gawk                              1:4.0.1+dfsg-2
ii  gobjc                             4:4.7.1-1
ii  gperf                             3.0.3-1+b1
ii  libcloog-ppl-dev                  0.15.11-4
ii  libmpfr-dev                       3.1.0-5
ii  libncurses5-dev [libncurses-dev]  5.9-10
ii  libreadline-dev                   6.2-8
ii  libtool                           2.4.2-1.1
ii  liburi-perl                       1.60-1
ii  lsb-release                       4.1+Debian7
ii  patchutils                        0.3.2-1.1
ii  pbuilder                          0.212
ii  quilt                             0.60-2
ii  realpath                          1.17
ii  reprepro                          4.12.4-1
ii  sharutils                         1:4.11.1-1
ii  sudo                              1.8.5p2-1
ii  texinfo                           4.13a.dfsg.1-10
ii  time                              1.7-24
ii  wget                              1.14-1

Versions of packages buildcross recommends:
ii  xapt  2.2.18

buildcross suggests no packages.

-- Configuration Files:
/etc/buildcross.conf changed:
PKGLIST=${PKGLIST:-"libs binutils gcc-4.7 gcc-4.6"}
ARCHLIST=${ARCHLIST:-"armel armhf"}
SRCSUITE=${SRCSUITE:-"unstable"}
SUITE=${SUITE:-"unstable"}
WARNMSG=${WARNMSG:-"no"}
LOCALREPO=${LOCALREPO:-"no"}
VERBOSEMODE=${VERBOSEMODE:-"yes"}
CURDIR=${CURDIR:-"$(pwd)"}
SRCDIR=${SRCDIR:-"$CURDIR/cache/src"}
APTCACHE=${APTCACHE:-"$CURDIR/cache/apt"}
REPOPATH=${REPOPATH:-"$CURDIR/cache/repo"}
BUILDPATH=${BUILDPATH:-"$CURDIR/cache/build"}
CLEANTREE=${CLEANTREE:-"yes"}
CLEANDIRS=${CLEANDIRS:-"yes"}
HOSTARCH=$(dpkg-architecture -qDEB_HOST_ARCH)
DPKGFLAGS="--force-overwrite"
FETCH=${FETCH:-"wget"}
ONLINE=${ONLINE:-"no"}
LOGHTMLPATH=${LOGHTMLPATH:-"$CURDIR"}
LOGPATH="$LOGHTMLPATH/logs/"
LOGHTML="index.html"
MIRROR=${MIRROR:-"http://cdn.debian.net/debian/"}
ROOTCMD=${ROOTCMD:-sudo}
FORCE_REBUILD=${FORCE_REBUILD:-yes}
FORCE_UPGRADE=${FORCE_UPGRADE:-yes}
export DEBIAN_FRONTEND=noninteractive
export DEBIAN_PRIORITY=critical
export DEBCONF_NONINTERACTIVE_SEEN=true
export LANG=C
export LANGUAGE=C
export LC_ALL=C
export LC_PAPER=C
export LC_MONETARY=C


-- no debconf information

-- debsums errors found:
debsums: changed file /usr/lib/buildcross/functions (from buildcross package)
>From 1ba187b1463d73e1f134f42da55d9867b7c29457 Mon Sep 17 00:00:00 2001
From: Alban Browaeys <prahal@yahoo.com>
Date: Mon, 3 Sep 2012 14:27:25 +0200
Subject: [PATCH 6/7] add gcc-4.7-base to the dependencies to strip from the
 libs

avoid circular dependency while getting build deps for gcc-4.7:
gcc-4.7 depends on libc6-dev- which depends on on libgcc1- which
itself depends on gcc-4.7-base- (which latest version we build)
---
 functions |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/functions b/functions
index dfe65a2..d28ca53 100644
--- a/functions
+++ b/functions
@@ -461,7 +461,8 @@ make-cross-package () {
 			[ -f ${_origfile} ] || wget -nv -nd -N ${MIRROR}/${_origfile2}
 			[ -f ${_crossfile} ] || dpkg-cross -A -M -X gcc-4.3-base \
 				-X gcc-4.4-base -X debconf -X debconf-2.0 \
-				-X gcc-4.5-base -X gcc-4.6-base -X multiarch-support \
+				-X gcc-4.5-base -X gcc-4.6-base -X gcc-4.7-base \
+				-X multiarch-support \
 				${_force_dummy} -a ${DEBARCH} -b ${_origfile}
 			${ROOTCMD} dpkg -i ${_crossfile}
 		;;
@@ -515,7 +516,8 @@ make-cross-arch-package () {
 			[ -f ${_origfile} ] || wget -nv -nd -N ${MIRROR}/${_origfile2}
 			[ -f ${_crossfile} ] || dpkg-cross -A -M -X gcc-4.3-base \
 				-X gcc-4.4-base -X debconf -X debconf-2.0 \
-				-X gcc-4.5-base -X gcc-4.6-base -X multiarch-support \
+				-X gcc-4.5-base -X gcc-4.6-base -X gcc-4.7-base \
+				-X multiarch-support \
 				${_force_dummy} -a ${DEBARCH} -b ${_origfile}
 			$ROOTCMD dpkg --force-depends -i ${_crossfile}
 		;;
-- 
1.7.10.4

>From 92fa24dbc22725c55e973d6251506ecd5ccfe7e1 Mon Sep 17 00:00:00 2001
From: Alban Browaeys <prahal@yahoo.com>
Date: Mon, 17 Sep 2012 03:21:45 +0200
Subject: [PATCH 7/7] cross libs depends on gcc 4.7 now.

---
 functions |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/functions b/functions
index d28ca53..0ed87b0 100644
--- a/functions
+++ b/functions
@@ -643,7 +643,7 @@ build-libs () {
 	mcd $BUILDPATH/$DEBARCH/cross-libs
 	make-cross-arch-package linux-libc-dev
 	# TODO: Update whenever default compiler upgrades
-	make-cross-arch-package gcc-4.6-base
+	make-cross-arch-package gcc-4.7-base
 
 	## I do not think debconf depends is good idea.
 	## make-cross-package debconf yes
-- 
1.7.10.4


Reply to: