~alpine/devel

1

Cross-compiler bootstrap.sh no longer works

Daniel Corbe <daniel@corbe.net>
Details
Message ID
<CAMxLOn2WoX=J-PQ8QUYQin3USD=ncam2kEeFe4L7kF5bu4=JNg@mail.gmail.com>
DKIM signature
missing
Download raw message
I'm trying to cross-compile some packages for MIPS 64 and when I go to
setup bootstrap.sh I get the following error:

foo:~/aports$ scripts/bootstrap.sh mips64
>>> bootstrap-mips64: Building cross-compiler
>>> binutils-mips64: Building main/binutils-mips64 2.34-r0 (using abuild 3.6.0-r0) started Mon, 01 Jun 2020 03:40:05 -0400
>>> binutils-mips64: Checking sanity of /home/dcorbe/aports/main/binutils/APKBUILD...
>>> binutils-mips64: Analyzing dependencies...
>>> binutils-mips64: Installing for build: bison flex texinfo zlib-dev
WARNING: Ignoring /home/dcorbe/packages//main/x86_64/APKINDEX.tar.gz:
No such file or directory
(1/10) Installing m4 (1.4.18-r1)
(2/10) Installing bison (3.6.2-r0)
(3/10) Installing flex (2.6.4-r2)
(4/10) Installing perl (5.30.2-r0)
(5/10) Installing texinfo (6.7-r0)
(6/10) Installing zlib-dev (1.2.11-r3)
(7/10) Installing .makedepends-binutils-mips64 (20200601.074005)
(8/10) Installing perl-error (0.17029-r0)
(9/10) Installing perl-git (2.26.2-r0)
(10/10) Installing git-perl (2.26.2-r0)
Executing busybox-1.31.1-r16.trigger
OK: 1110 MiB in 246 packages
>>> binutils-mips64: Installing for host:
WARNING: Ignoring /home/dcorbe/packages//main/mips64/APKINDEX.tar.gz:
No such file or directory
(1/1) Installing .hostdepends-binutils-mips64 (20200601.074025)
OK: 0 MiB in 1 packages
>>> binutils-mips64: Cleaning up srcdir
>>> binutils-mips64: Cleaning up pkgdir
>>> binutils-mips64: Fetching https://ftp.gnu.org/gnu/binutils/binutils-2.34.tar.bz2
>>> binutils-mips64: Fetching https://ftp.gnu.org/gnu/binutils/binutils-2.34.tar.bz2
>>> binutils-mips64: Checking sha512sums...
binutils-2.34.tar.bz2: OK
binutils-ld-fix-static-linking.patch: OK
gold-mips.patch: OK
ld-bfd-mips.patch: OK
>>> binutils-mips64: Unpacking /var/cache/distfiles/binutils-2.34.tar.bz2...
>>> ERROR: binutils-mips64: Is $builddir set correctly?
>>> ERROR: binutils-mips64: prepare failed
>>> binutils-mips64: Uninstalling dependencies...
(1/10) Purging .makedepends-binutils-mips64 (20200601.074005)
(2/10) Purging bison (3.6.2-r0)
(3/10) Purging flex (2.6.4-r2)
(4/10) Purging m4 (1.4.18-r1)
(5/10) Purging texinfo (6.7-r0)
(6/10) Purging zlib-dev (1.2.11-r3)
(7/10) Purging git-perl (2.26.2-r0)
(8/10) Purging perl-git (2.26.2-r0)
(9/10) Purging perl-error (0.17029-r0)
(10/10) Purging perl (5.30.2-r0)
Executing busybox-1.31.1-r16.trigger
OK: 1065 MiB in 236 packages
(1/1) Purging .hostdepends-binutils-mips64 (20200601.074025)
OK: 0 MiB in 0 packages
Details
Message ID
<2058518.hgyNDFmY9b@localhost>
In-Reply-To
<CAMxLOn2WoX=J-PQ8QUYQin3USD=ncam2kEeFe4L7kF5bu4=JNg@mail.gmail.com> (view parent)
DKIM signature
missing
Download raw message
Hello,

On Monday, June 1, 2020 1:45:24 AM MDT Daniel Corbe wrote:
> I'm trying to cross-compile some packages for MIPS 64 and when I go to
> setup bootstrap.sh I get the following error:
> 
> foo:~/aports$ scripts/bootstrap.sh mips64
> 
> >>> bootstrap-mips64: Building cross-compiler
> >>> binutils-mips64: Building main/binutils-mips64 2.34-r0 (using abuild
> >>> 3.6.0-r0) started Mon, 01 Jun 2020 03:40:05 -0400 binutils-mips64:
> >>> Checking sanity of /home/dcorbe/aports/main/binutils/APKBUILD...
> >>> binutils-mips64: Analyzing dependencies...
> >>> binutils-mips64: Installing for build: bison flex texinfo zlib-dev
> 
> WARNING: Ignoring /home/dcorbe/packages//main/x86_64/APKINDEX.tar.gz:
> No such file or directory
> (1/10) Installing m4 (1.4.18-r1)
> (2/10) Installing bison (3.6.2-r0)
> (3/10) Installing flex (2.6.4-r2)
> (4/10) Installing perl (5.30.2-r0)
> (5/10) Installing texinfo (6.7-r0)
> (6/10) Installing zlib-dev (1.2.11-r3)
> (7/10) Installing .makedepends-binutils-mips64 (20200601.074005)
> (8/10) Installing perl-error (0.17029-r0)
> (9/10) Installing perl-git (2.26.2-r0)
> (10/10) Installing git-perl (2.26.2-r0)
> Executing busybox-1.31.1-r16.trigger
> OK: 1110 MiB in 246 packages
> 
> >>> binutils-mips64: Installing for host:
> WARNING: Ignoring /home/dcorbe/packages//main/mips64/APKINDEX.tar.gz:
> No such file or directory
> (1/1) Installing .hostdepends-binutils-mips64 (20200601.074025)
> OK: 0 MiB in 1 packages
> 
> >>> binutils-mips64: Cleaning up srcdir
> >>> binutils-mips64: Cleaning up pkgdir
> >>> binutils-mips64: Fetching
> >>> https://ftp.gnu.org/gnu/binutils/binutils-2.34.tar.bz2 binutils-mips64:
> >>> Fetching https://ftp.gnu.org/gnu/binutils/binutils-2.34.tar.bz2
> >>> binutils-mips64: Checking sha512sums...
> 
> binutils-2.34.tar.bz2: OK
> binutils-ld-fix-static-linking.patch: OK
> gold-mips.patch: OK
> ld-bfd-mips.patch: OK
> 
> >>> binutils-mips64: Unpacking /var/cache/distfiles/binutils-2.34.tar.bz2...
> >>> ERROR: binutils-mips64: Is $builddir set correctly?

This is because somebody modernized the bootstrap APKBUILDs to use 
automatically generated $builddir.  We will need to either fix the automatic 
generation of $builddir in bootstrap case or restore setting $builddir on 
these APKBUILDs.

I'm not sure which way we should go.

Ariadne
Reply to thread Export thread (mbox)