[MacPorts] #63635: libgcrypt +universal Failed to destroot: libgcrypt.pc differs in .../destroot-arm64/... and .../destroot-ppc-intel/... and cannot be merged
MacPorts
noreply at macports.org
Sun Oct 17 02:16:33 UTC 2021
#63635: libgcrypt +universal Failed to destroot: libgcrypt.pc differs in
.../destroot-arm64/... and .../destroot-ppc-intel/... and cannot be merged
---------------------------+--------------------
Reporter: ShadSterling | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords:
Port: libgcrypt |
---------------------------+--------------------
Comment (by ShadSterling):
Yes, I do have `curl +gsasl`. Does that affect the build of `libgcrypt`?
After installing macos updates the logs are slightly different, but it
looks like mostly timestamps and some messages appearing in a different
order.
It looks like all of the references to `ppc-intel` are in paths in the
section of the log beginning with {{{:info:destroot ---> Staging
libgcrypt into destroot for architecture x86_64}}}, as if `libgcrypt` is
using `ppc-intel` internally for `x86_64`
It also looks like `libgcrypt.pc` is invalid in both architectures:
{{{
:info:destroot error: /Library/Developer/CommandLineTools/usr/bin/libtool:
file:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libgcrypt/libgcrypt/work
/destroot-arm64//opt/local/lib/pkgconfig/libgcrypt.pc is not an object
file (not allowed in a library)
:info:destroot error: /Library/Developer/CommandLineTools/usr/bin/libtool:
file:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libgcrypt/libgcrypt/work
/destroot-ppc-intel//opt/local/lib/pkgconfig/libgcrypt.pc is not an object
file (not allowed in a library)
:info:destroot Command failed: /usr/bin/libtool
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libgcrypt/libgcrypt/work
/destroot-arm64//opt/local/lib/pkgconfig/libgcrypt.pc"
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libgcrypt/libgcrypt/work
/destroot-ppc-intel//opt/local/lib/pkgconfig/libgcrypt.pc" -o
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libgcrypt/libgcrypt/work/destroot//opt/local/lib/pkgconfig/libgcrypt.pc"
}}}
There are 4 versions created
{{{
-rw-r--r-- 1 root wheel 644 Oct 16 21:00
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libgcrypt/libgcrypt/work
/destroot-arm64/opt/local/lib/pkgconfig/libgcrypt.pc
-rw-r--r-- 1 root wheel 643 Oct 16 21:00
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libgcrypt/libgcrypt/work
/destroot-intel/opt/local/lib/pkgconfig/libgcrypt.pc
-rw-r--r-- 1 root wheel 643 Oct 16 21:00
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libgcrypt/libgcrypt/work
/destroot-ppc-intel/opt/local/lib/pkgconfig/libgcrypt.pc
-rw-r--r-- 1 root wheel 643 Oct 16 21:00
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libgcrypt/libgcrypt/work
/destroot-x86_64/opt/local/lib/pkgconfig/libgcrypt.pc
}}}
Which are indeed not object files; `file` says they're `ASCII text`. The
latter 3 are identical, the arm differs by one line, and they look like
some sort of port info or maybe configure results; `diff -y` says
{{{
prefix=/opt/local
prefix=/opt/local
exec_prefix=${prefix}
exec_prefix=${prefix}
includedir=${prefix}/include
includedir=${prefix}/include
libdir=${exec_prefix}/lib
libdir=${exec_prefix}/lib
host=aarch64-apple-darwin20.6.0 |
host=x86_64-apple-darwin20.6.0
api_version=1
api_version=1
symmetric_ciphers="arcfour blowfish cast5 des aes twofish ser
symmetric_ciphers="arcfour blowfish cast5 des aes twofish ser
asymmetric_ciphers="dsa elgamal rsa ecc"
asymmetric_ciphers="dsa elgamal rsa ecc"
digests="crc gostr3411-94 md4 md5 rmd160 sha1 sha256 sha512
digests="crc gostr3411-94 md4 md5 rmd160 sha1 sha256 sha512
Name: libgcrypt Name:
libgcrypt
Description: General purpose cryptographic library
Description: General purpose cryptographic library
Requires.private: gpg-error
Requires.private: gpg-error
Version: 1.9.4 Version:
1.9.4
Cflags: -I${includedir} Cflags:
-I${includedir}
Libs: -L${libdir} -lgcrypt Libs:
-L${libdir} -lgcrypt
Libs.private:
Libs.private:
URL: https://www.gnupg.org/software/libgcrypt/index.html URL:
https://www.gnupg.org/software/libgcrypt/index.html
}}}
So I'd guess the problem is that the universal build is trying to link a
file it shouldn't
--
Ticket URL: <https://trac.macports.org/ticket/63635#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list