Subject: guix pack cross-compile failed to build docker img of openldap for aarch64

From: Dominik Riva <[email-masked]>
Date: Tue, 11 Oct 2022 13:12:34 +0000

Hi,

The command `guix pack --target=aarch64-linux-gnu -f docker -S /opt/gnu/bin=bin openldap
` resulted in:

```
  Entering subdirectory clientsmake[1]: Entering directory '/tmp/guix-build-openldap-2.6.1.drv-0/openldap-2.6.1/clients'
Making install in /tmp/guix-build-openldap-2.6.1.drv-0/openldap-2.6.1/clients
  Entering subdirectory tools
make[2]: Entering directory '/tmp/guix-build-openldap-2.6.1.drv-0/openldap-2.6.1/clients/tools'
../../build/shtool mkdir -p /gnu/store/9q59516v6x8f8sp4wyhnlddava98argn-openldap-2.6.1/bin
libtool: install: ../../build/shtool install -c -m 755 -s ldapsearch /gnu/store/9q59516v6x8f8sp4wyhnlddava98argn-openldap-2.6.1/bin/ldapsearch
strip: Unable to recognise the format of the input file `/gnu/store/9q59516v6x8f8sp4wyhnlddava98argn-openldap-2.6.1/bin/#INST@18948#'
libtool: install: ../../build/shtool install -c -m 755 -s ldapmodify /gnu/store/9q59516v6x8f8sp4wyhnlddava98argn-openldap-2.6.1/bin/ldapmodify
strip: Unable to recognise the format of the input file `/gnu/store/9q59516v6x8f8sp4wyhnlddava98argn-openldap-2.6.1/bin/#INST@19036#'
libtool: install: ../../build/shtool install -c -m 755 -s ldapdelete /gnu/store/9q59516v6x8f8sp4wyhnlddava98argn-openldap-2.6.1/bin/ldapdelete
strip: Unable to recognise the format of the input file `/gnu/store/9q59516v6x8f8sp4wyhnlddava98argn-openldap-2.6.1/bin/#INST@19124#'
libtool: install: ../../build/shtool install -c -m 755 -s ldapmodrdn /gnu/store/9q59516v6x8f8sp4wyhnlddava98argn-openldap-2.6.1/bin/ldapmodrdn
strip: Unable to recognise the format of the input file `/gnu/store/9q59516v6x8f8sp4wyhnlddava98argn-openldap-2.6.1/bin/#INST@19212#'
libtool: install: ../../build/shtool install -c -m 755 -s ldappasswd /gnu/store/9q59516v6x8f8sp4wyhnlddava98argn-openldap-2.6.1/bin/ldappasswd
strip: Unable to recognise the format of the input file `/gnu/store/9q59516v6x8f8sp4wyhnlddava98argn-openldap-2.6.1/bin/#INST@19300#'
libtool: install: ../../build/shtool install -c -m 755 -s ldapwhoami /gnu/store/9q59516v6x8f8sp4wyhnlddava98argn-openldap-2.6.1/bin/ldapwhoami
strip: Unable to recognise the format of the input file `/gnu/store/9q59516v6x8f8sp4wyhnlddava98argn-openldap-2.6.1/bin/#INST@19388#'
libtool: install: ../../build/shtool install -c -m 755 -s ldapvc /gnu/store/9q59516v6x8f8sp4wyhnlddava98argn-openldap-2.6.1/bin/ldapvc
strip: Unable to recognise the format of the input file `/gnu/store/9q59516v6x8f8sp4wyhnlddava98argn-openldap-2.6.1/bin/#INST@19476#'
libtool: install: ../../build/shtool install -c -m 755 -s ldapcompare /gnu/store/9q59516v6x8f8sp4wyhnlddava98argn-openldap-2.6.1/bin/ldapcompare
strip: Unable to recognise the format of the input file `/gnu/store/9q59516v6x8f8sp4wyhnlddava98argn-openldap-2.6.1/bin/#INST@19564#'
libtool: install: ../../build/shtool install -c -m 755 -s ldapexop /gnu/store/9q59516v6x8f8sp4wyhnlddava98argn-openldap-2.6.1/bin/ldapexop
strip: Unable to recognise the format of the input file `/gnu/store/9q59516v6x8f8sp4wyhnlddava98argn-openldap-2.6.1/bin/#INST@19652#'
libtool: install: ../../build/shtool install -c -m 755 -s ldapurl /gnu/store/9q59516v6x8f8sp4wyhnlddava98argn-openldap-2.6.1/bin/ldapurl
strip: Unable to recognise the format of the input file `/gnu/store/9q59516v6x8f8sp4wyhnlddava98argn-openldap-2.6.1/bin/#INST@19740#'
make[2]: *** [Makefile:390: install-local] Error 1
make[2]: Leaving directory '/tmp/guix-build-openldap-2.6.1.drv-0/openldap-2.6.1/clients/tools'
make[1]: *** [Makefile:308: install-common] Error 1
make[1]: Leaving directory '/tmp/guix-build-openldap-2.6.1.drv-0/openldap-2.6.1/clients'
make: *** [Makefile:329: install-common] Error 1
error: in phase 'install': uncaught exception:
%exception #<&invoke-error program: "make" arguments: ("install" "STRIP=") exit-status: 2 term-signal: #f stop-signal: #f>
phase `install' failed after 3.5 seconds
command "make" "install" "STRIP=" failed with status 2
```

I don't know why strip is still uses as https://issues.guix.gnu.org/36477#102 should suppress it?

Thanks,
Dominik