Bug#760770: gcc-4.9: fails to build cross-compiler package

2014-10-29 Thread Iain Buclaw
On 28 Oct 2014 20:00, Helmut Grohne hel...@subdivi.de wrote:

 Control: retitle -1 fails to cross build libphobos when setting
with_deps_on_target_arch_pkgs=yes
 Control: tags -1 = patch

 Ian Jackson suggested that I should take care of this. See:
 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=766708#68

 On Tue, Sep 09, 2014 at 07:24:19PM +0200, Rico Rommel wrote:
  libphobos-cross-ma-libdir.diff corrects the installdir in libphobos and
  fix-rules includes the patch into rules.patch

 This should not be a separate patch but rather integrated into
 cross-ma-install-location.diff. Once it sits in that patch, it is
 guaranteed to not affect the native build or the supported default
 cross toolchain build, because neither use that patch.

 I am attaching the updated patch.

 Helmut

Is this something that should be pushed upstream too?

Iain.


Bug#760770: gcc-4.9: fails to build cross-compiler package

2014-10-28 Thread Helmut Grohne
Control: retitle -1 fails to cross build libphobos when setting 
with_deps_on_target_arch_pkgs=yes
Control: tags -1 = patch

Ian Jackson suggested that I should take care of this. See:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=766708#68

On Tue, Sep 09, 2014 at 07:24:19PM +0200, Rico Rommel wrote:
 libphobos-cross-ma-libdir.diff corrects the installdir in libphobos and 
 fix-rules includes the patch into rules.patch

This should not be a separate patch but rather integrated into
cross-ma-install-location.diff. Once it sits in that patch, it is
guaranteed to not affect the native build or the supported default
cross toolchain build, because neither use that patch.

I am attaching the updated patch.

Helmut
diff -u gcc-4.9-4.9.1/debian/changelog gcc-4.9-4.9.1/debian/changelog
--- gcc-4.9-4.9.1/debian/changelog
+++ gcc-4.9-4.9.1/debian/changelog
@@ -1,3 +1,10 @@
+gcc-4.9 (4.9.1-19.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Update cross-ma-install-location.diff for libphobos. Closes: #760770.
+
+ -- Helmut Grohne hel...@subdivi.de  Tue, 28 Oct 2014 18:57:40 +0100
+
 gcc-4.9 (4.9.1-19) unstable; urgency=medium
 
   * GCC 4.9.2 release candidate.
diff -u gcc-4.9-4.9.1/debian/patches/cross-ma-install-location.diff 
gcc-4.9-4.9.1/debian/patches/cross-ma-install-location.diff
--- gcc-4.9-4.9.1/debian/patches/cross-ma-install-location.diff
+++ gcc-4.9-4.9.1/debian/patches/cross-ma-install-location.diff
@@ -402,0 +403,21 @@
+Index: b/src/libphobos/configure.ac
+===
+--- a/src/libphobos/configure.ac
 b/src/libphobos/configure.ac
+@@ -247,14 +247,8 @@
+ AC_ARG_WITH([cross-host],
+   AC_HELP_STRING([--with-cross-host=HOST],
+  [configuring with a cross compiler]))
+-if test -n $with_cross_host 
+-   test x$with_cross_host != xno; then
+-  phobos_toolexecdir='${exec_prefix}/${host_alias}'
+-  phobos_toolexeclibdir='${toolexecdir}/lib'
+-else
+-  phobos_toolexecdir='${libdir}/gcc/${host_alias}'
+-  phobos_toolexeclibdir='${libdir}'
+-fi
++phobos_toolexecdir='${libdir}/gcc/${host_alias}'
++phobos_toolexeclibdir='${libdir}'
+ # The norm would be to use $GDC -print-multi-os-directory, but
+ # that would require modifying config-ml.in
+ multi_os_directory=`$CC -print-multi-os-directory`


Processed: Re: Bug#760770: gcc-4.9: fails to build cross-compiler package

2014-10-28 Thread Debian Bug Tracking System
Processing control commands:

 retitle -1 fails to cross build libphobos when setting 
 with_deps_on_target_arch_pkgs=yes
Bug #760770 [gcc-4.9] gcc-4.9: fails to build cross-compiler package
Changed Bug title to 'fails to cross build libphobos when setting 
with_deps_on_target_arch_pkgs=yes' from 'gcc-4.9: fails to build cross-compiler 
package'
 tags -1 = patch
Bug #760770 [gcc-4.9] fails to cross build libphobos when setting 
with_deps_on_target_arch_pkgs=yes
Added tag(s) patch; removed tag(s) help and moreinfo.

-- 
760770: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=760770
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


--
To UNSUBSCRIBE, email to debian-gcc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/handler.s.b760770.141452631110675.transcr...@bugs.debian.org



Bug#760770: gcc-4.9: fails to build cross-compiler package

2014-09-09 Thread Matthias Klose
Am 09.09.2014 um 19:24 schrieb Rico Rommel:
 Am Montag, 8. September 2014, 09:37:10 schrieb Matthias Klose:
 
 this works for a standard cross build, as shown in
 https://launchpad.net/ubuntu/+source/gcc-4.9-armhf-cross/0.3
 
 Sorry, i forgot to mention, that i'am trying to build a multiarch cross 
 compiler.
 
 please send a patch for unsupported configurations like requiring foreign
 architectures.
 
 I tried to create a patch and hope not to break anything.
 
 libphobos-cross-ma-libdir.diff corrects the installdir in libphobos and 
 fix-rules includes the patch into rules.patch

hope is not good enough. please test this patch with a self-contained cross
build and attach the build log.


-- 
To UNSUBSCRIBE, email to debian-gcc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/540f3888.6090...@debian.org



Bug#760770: gcc-4.9: fails to build cross-compiler package

2014-09-08 Thread Matthias Klose
Control: tags -1 + moreinfo help
Control: severity -1 wishlist

Am 07.09.2014 um 19:40 schrieb Rico Rommel:
 Package: gcc-4.9
 Version: 4.9.1-12
 Severity: normal
 
 Dear Maintainer,
 
 building a cross-compiler package from gcc-4.9 fails due to missing
 libgphobos2.a.
 
 The log shows:
 
 mv stamps/07-install-stamp stamps/07-install-stamp-tmp
 rm -rf debian/libphobos-4.9-dev
 dh_installdirs -plibphobos-4.9-dev usr/lib/gcc/arm-linux-gnueabihf/4.9
 DH_COMPAT=2 dh_movefiles -plibphobos-4.9-dev usr/lib/arm-linux-
 gnueabihf/libgphobos2.a usr/lib/gcc/arm-linux-gnueabihf/4.9/include/d
 dh_movefiles: Compatibility levels before 5 are deprecated (level 2 in use)
 dh_movefiles: debian/tmp/usr/lib/arm-linux-gnueabihf/libgphobos2.a not found
 (supposed to put it in libphobos-4.9-dev)
 debian/rules.d/binary-d.mk:168: recipe for target 'stamps/08-binary-stamp-
 libphobos-dev' failed
 make[1]: *** [stamps/08-binary-stamp-libphobos-dev] Error 1
 make[1]: Leaving directory '/usr/src/toolchain/b/gcc-4.9-4.9.1'
 debian/rules:94: recipe for target 'binary' failed
 make: *** [binary] Error 2
 
 
 libgphobos2.a is not missing, but in the wrong place.
 dh expects it in usr/lib/arm-linux-gnueabi/ but it is installed in usr/arm-
 linux-gnueabi/lib/
 libgdruntime.a seems also to be affected.

this works for a standard cross build, as shown in
https://launchpad.net/ubuntu/+source/gcc-4.9-armhf-cross/0.3

please send a patch for unsupported configurations like requiring foreign
architectures.


-- 
To UNSUBSCRIBE, email to debian-gcc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/540d5ca6.3040...@debian.org



Processed: Re: Bug#760770: gcc-4.9: fails to build cross-compiler package

2014-09-08 Thread Debian Bug Tracking System
Processing control commands:

 tags -1 + moreinfo help
Bug #760770 [gcc-4.9] gcc-4.9: fails to build cross-compiler package
Added tag(s) help and moreinfo.
 severity -1 wishlist
Bug #760770 [gcc-4.9] gcc-4.9: fails to build cross-compiler package
Severity set to 'wishlist' from 'normal'

-- 
760770: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=760770
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


--
To UNSUBSCRIBE, email to debian-gcc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/handler.s.b760770.141016184131976.transcr...@bugs.debian.org



Bug#760770: gcc-4.9: fails to build cross-compiler package

2014-09-07 Thread Rico Rommel
Package: gcc-4.9
Version: 4.9.1-12
Severity: normal

Dear Maintainer,

building a cross-compiler package from gcc-4.9 fails due to missing
libgphobos2.a.

The log shows:

mv stamps/07-install-stamp stamps/07-install-stamp-tmp
rm -rf debian/libphobos-4.9-dev
dh_installdirs -plibphobos-4.9-dev usr/lib/gcc/arm-linux-gnueabihf/4.9
DH_COMPAT=2 dh_movefiles -plibphobos-4.9-dev usr/lib/arm-linux-
gnueabihf/libgphobos2.a usr/lib/gcc/arm-linux-gnueabihf/4.9/include/d
dh_movefiles: Compatibility levels before 5 are deprecated (level 2 in use)
dh_movefiles: debian/tmp/usr/lib/arm-linux-gnueabihf/libgphobos2.a not found
(supposed to put it in libphobos-4.9-dev)
debian/rules.d/binary-d.mk:168: recipe for target 'stamps/08-binary-stamp-
libphobos-dev' failed
make[1]: *** [stamps/08-binary-stamp-libphobos-dev] Error 1
make[1]: Leaving directory '/usr/src/toolchain/b/gcc-4.9-4.9.1'
debian/rules:94: recipe for target 'binary' failed
make: *** [binary] Error 2


libgphobos2.a is not missing, but in the wrong place.
dh expects it in usr/lib/arm-linux-gnueabi/ but it is installed in usr/arm-
linux-gnueabi/lib/
libgdruntime.a seems also to be affected.


see also
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=720363


Rico




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

Kernel: Linux 3.16-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gcc-4.9 depends on:
ii  binutils2.24.51.20140903-1
ii  cpp-4.9 4.9.1-12
ii  gcc-4.9-base4.9.1-12
ii  libc6   2.19-10
ii  libcloog-isl4   0.18.2-1
ii  libgcc-4.9-dev  4.9.1-12
ii  libgmp102:6.0.0+dfsg-6
ii  libisl100.12.2-2
ii  libmpc3 1.0.2-1
ii  libmpfr43.1.2-1
ii  zlib1g  1:1.2.8.dfsg-2

Versions of packages gcc-4.9 recommends:
ii  libc6-dev  2.19-10

Versions of packages gcc-4.9 suggests:
ii  binutils [binutils-gold]  2.24.51.20140903-1
pn  gcc-4.9-doc   none
pn  gcc-4.9-locales   none
pn  gcc-4.9-multilib  none
pn  libasan1-dbg  none
pn  libatomic1-dbgnone
pn  libcilkrts5-dbg   none
pn  libgcc1-dbg   none
pn  libgomp1-dbg  none
pn  libitm1-dbg   none
pn  liblsan0-dbg  none
pn  libquadmath0-dbg  none
pn  libtsan0-dbg  none
pn  libubsan0-dbg none
pn  libvtv0-dbg   none

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-gcc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/20140907174045.22616.2117.reportbug@pinguin.deutsches-haus