On 10/11/2011 10:22 PM, Kyle Moffett wrote:
> Source: gcc-4.6
> Version: 4.6.1-15
> Severity: wishlist
> Tags: patch
> User: crossbu...@debian.org
> Usertags: cross
> 
> When building in REVERSE_CROSS mode (IE: when trying to build a native
> compiler for another architecture with an existing cross-compiler, the
> build fails with the following error:
> 
>   $ apt-get source gcc-4.6=4.6.1-15
>   $ ( cd gcc-4.6-4.6.1 && dpkg-buildpackage -apowerpcspe -b -us -uc )
>   [...]
>   dh_strip -pgcc-4.6-plugin-dev
>   powerpc-linux-gnuspe-strip: Unable to recognise the format of the input 
> file `debian/gcc-4.6-plugin-dev/usr/lib/gcc/powerpc-linux-gnuspe/4.6/gengtype'
>   dh_strip: powerpc-linux-gnuspe-strip --remove-section=.comment 
> --remove-section=.note 
> debian/gcc-4.6-plugin-dev/usr/lib/gcc/powerpc-linux-gnuspe/4.6/gengtype 
> returned exit code 1
>   make[1]: *** [stamps/08-binary-stamp-gcc-plugindev] Error 29
>   make[1]: Leaving directory 
> `/srv/stuff/toolchain/CROSS/gcc-4.6/gcc-4.6-4.6.1'
>   make: *** [binary] Error 2
>   dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit 
> status 2
> 
> A brief inspection of the gengtype program shows that it is in fact a
> binary built for the build system:
>   $ file 
> debian/gcc-4.6-plugin-dev/usr/lib/gcc/powerpc-linux-gnuspe/4.6/gengtype
>   debian/gcc-4.6-plugin-dev/usr/lib/gcc/powerpc-linux-gnuspe/4.6/gengtype: 
> ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses 
> shared libs), for GNU/Linux 2.6.26, 
> BuildID[sha1]=0xfcaf9384cfcf05212c599e6334d7de5bd062c5de, not stripped
> 
> As far as I can tell, the "gcc-plugin" support is not supported when
> building in REVERSE_CROSS mode and should be disabled.
> 
> Please review and apply the attached patch.
> 
> Unfortunately, the build still does not complete due to a different
> error, one which I will be submitting as an additional followup bug.

The reverse cross build should result into the same functionality as the native
build. So we need both build and target versions of gengtype. either patch the
upstream build system or the packaging to provide the target version of 
gengtype.

  Matthias



-- 
To UNSUBSCRIBE, email to debian-gcc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4e94b40b.8070...@debian.org

Reply via email to