Bug#872471: perl FTCBFS: ./generate_uudmap: 1: ./generate_uudmap: Syntax error: "(" unexpected

Niko Tyni ntyni at debian.org
Fri Aug 18 19:37:40 UTC 2017


Control: tag -1 confirmed

On Thu, Aug 17, 2017 at 07:48:15PM +0200, Helmut Grohne wrote:
> Source: perl
> Version: 5.26.0-5
> Severity: wishlist
> User: helmutg at debian.org
> Usertags: rebootstrap
> 
> Hi perl maintainers,
> 
> perl fails to cross build from source:
> 
> | powerpc-linux-gnu-gcc -c -DPERL_CORE -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/perl-qTvMce/perl-5.26.0=. -fstack-protector-strong -Wformat -Werror=format-security -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=c89 -O2 -g -Wall -Werror=declaration-after-statement -Wextra -Wc++-compat -Wwrite-strings generate_uudmap.c
> | powerpc-linux-gnu-gcc -o generate_uudmap -Wl,-z,relro -fstack-protector-strong -L/usr/local/lib generate_uudmap.o -ldl -lm -lpthread -lc -lcrypt 
> | ./generate_uudmap uudmap.h bitcount.h mg_data.h
> | ./generate_uudmap: 1: ./generate_uudmap: Syntax error: "(" unexpected
> | Makefile:320: recipe for target 'bitcount.h' failed
> | make[1]: *** [bitcount.h] Error 2
> | make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> | debian/rules:124: recipe for target 'perl.static' failed
> | make: *** [perl.static] Error 2
> | dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2

Thanks. I can reproduce this. The intention is to run the build
architecture 'generate_uudmap' binary, which is compiled earlier and
copied aside as build-generate_uudmap. Something goes wrong and the
build system ends up trying to run the host architecture binary instead,
which fails for obvious reasons.

I suspect upstream behaviour changes in the Configure -O (override)
argument handling but will need to dig into it some more.

In sake somebody wants to play with it, my steps in reproducing it in
a chroot (for armhf in this case) were roughly

# dpkg --add-architecture armhf
# apt update
# apt install crossbuild-essential-armhf
# apt -a armhf build-dep perl
$ dpkg-buildpackage -b -aarmhf

-- 
Niko Tyni   ntyni at debian.org




More information about the Perl-maintainers mailing list