openldap cross-compilation fails

  • Open
  • quality assurance status badge
Details
3 participants
  • Dominik Riva
  • Ludovic Courtès
  • Maxime Devos
Owner
unassigned
Submitted by
Dominik Riva
Severity
normal
D
D
Dominik Riva wrote on 11 Oct 2022 15:12
guix pack cross-compile failed to build docker img of openldap for aarch64
(name . bug-guix@gnu.org)(address . bug-guix@gnu.org)
_kdBHOFT4LcqatdHhmClRwmT5wRghnrpXRDmx0R30wQeHAbmUC7vzO6GDSJ7hhOcEMyfDkOSBFpOBZTWf1Y8PI1Wqipt-2Ygv5oxUhCW90A=@protonmail.com
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#102should suppress it?


Thanks,
Dominik
Attachment: signature.asc
M
M
Maxime Devos wrote on 12 Oct 2022 14:32
Re: bug#58452: openldap fails to cross-compile to aarch64 (strip errors) (was: guix pack cross-compile failed to build docker img of openldap for aarch64)
3960f7d9-6044-1225-17b4-1e1229246e7f@telenet.be
retitle 58452 openldap fails to cross-compile to aarch64 (strip errors)
thanks
"guix pack" and Docker seem unrelated here, rather it seems to be
regular cross-compilation bug to me that could presumably be reproduced
with "guix build openldap --target=aarch64-linux-gnu".
Greetings,
Maxime.
Attachment: OpenPGP_signature
D
D
Dominik Riva wrote on 13 Oct 2022 17:18
(address . 58452@debbugs.gnu.org)(name . Maxime Devos)(address . maximedevos@telenet.be)
niz4UDkFhiBCYtE0K2XAe--HeK_DQZsUqahpMQY4DcsS2tvNFjIkkmmgc-3h4o3mKUO78-CRSugdHr7Aezd05oduZOxrvpRrQRhUKA3-siI=@protonmail.com
------- Original Message -------
On Wednesday, October 12th, 2022 at 14:32, Maxime Devos <maximedevos@telenet.be> wrote:


Toggle quote (12 lines)
> retitle 58452 openldap fails to cross-compile to aarch64 (strip errors)
> thanks
>

> "guix pack" and Docker seem unrelated here, rather it seems to be
> regular cross-compilation bug to me that could presumably be reproduced
> with "guix build openldap --target=aarch64-linux-gnu".
>

> Greetings,
> Maxime.

I can confirm that "guix build openldap --target=aarch64-linux-gnu" results in the exact same error.

Regards,
Dominik
Attachment: signature.asc
L
L
Ludovic Courtès wrote on 21 Oct 2022 12:13
control message for bug #58452
(address . control@debbugs.gnu.org)
874jvx8oxu.fsf@gnu.org
retitle 58452 openldap cross-compilation fails
quit
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 58452@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 58452
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch