Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libxcrypt] Build error on x64-linux #43099

Open
kolobabka opened this issue Jan 5, 2025 · 5 comments
Open

[libxcrypt] Build error on x64-linux #43099

kolobabka opened this issue Jan 5, 2025 · 5 comments
Assignees
Labels
requires:repro The issue is not currently repro-able

Comments

@kolobabka
Copy link

Package: libxcrypt:[email protected]#2

Host Environment

  • Host: x64-linux
  • Compiler: GNU 11.4.0
  • vcpkg-tool version: 2024-12-09-1005b78fa1bf1dde1a20c2734cba4ea61ca94d9a
    vcpkg-scripts version: 65be701 2025-01-03 (35 hours ago)

To Reproduce

vcpkg install libxcrypt

Failure logs

libxcrypt currently requires the following libraries from the system package manager:
    autoconf automake libtool pkg-config
These can be installed on Debian systems via sudo apt install autoconf automake libtool pkg-config
-- Using cached besser82-libxcrypt-7fc153170ea6c2938c0392794778de7ec995f8f9.patch.
-- Using cached besser82-libxcrypt-v4.4.36.tar.gz.
-- Cleaning sources at /home/user/Desktop/vcpkg/buildtrees/libxcrypt/src/v4.4.36-731337b063.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/user/Desktop/vcpkg/downloads/besser82-libxcrypt-v4.4.36.tar.gz
-- Applying patch /home/user/Desktop/vcpkg/downloads/besser82-libxcrypt-7fc153170ea6c2938c0392794778de7ec995f8f9.patch
-- Using source at /home/user/Desktop/vcpkg/buildtrees/libxcrypt/src/v4.4.36-731337b063.clean
-- Getting CMake variables for x64-linux-dbg
-- Getting CMake variables for x64-linux-rel
-- Generating configure for x64-linux
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: /usr/local/bin/autoreconf -vfi
    Working Directory: /home/user/Desktop/vcpkg/buildtrees/libxcrypt/src/v4.4.36-731337b063.clean/
    Error code: 1
    See logs for more information:
      /home/user/Desktop/vcpkg/buildtrees/libxcrypt/autoconf-x64-linux-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_make.cmake:731 (vcpkg_execute_required_process)
  ports/libxcrypt/portfile.cmake:33 (vcpkg_configure_make)
  scripts/ports.cmake:196 (include)



/home/user/Desktop/vcpkg/buildtrees/libxcrypt/autoconf-x64-linux-err.log
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I build-aux/m4
configure.ac:86: warning: LT_PATH_NM is m4_require'd but not m4_defun'd
build-aux/m4/zw_detect_asan.m4:18: zw_ASAN_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
configure.ac:86: the top level
configure.ac:86: warning: LT_PATH_NM is m4_require'd but not m4_defun'd
build-aux/m4/zw_detect_asan.m4:18: zw_ASAN_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
configure.ac:86: the top level
autoreconf: configure.ac: tracing
configure.ac:86: warning: LT_PATH_NM is m4_require'd but not m4_defun'd
build-aux/m4/zw_detect_asan.m4:18: zw_ASAN_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
configure.ac:86: the top level
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/local/bin/autoconf --force
configure.ac:86: warning: LT_PATH_NM is m4_require'd but not m4_defun'd
build-aux/m4/zw_detect_asan.m4:18: zw_ASAN_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
configure.ac:86: the top level
autoreconf: running: /usr/local/bin/autoheader --force
configure.ac:86: warning: LT_PATH_NM is m4_require'd but not m4_defun'd
build-aux/m4/zw_detect_asan.m4:18: zw_ASAN_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
configure.ac:86: the top level
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:86: warning: LT_PATH_NM is m4_require'd but not m4_defun'd
build-aux/m4/zw_detect_asan.m4:18: zw_ASAN_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
configure.ac:86: the top level
configure.ac:30: installing 'build-aux/m4-autogen/compile'
configure.ac:29: installing 'build-aux/m4-autogen/config.guess'
configure.ac:29: installing 'build-aux/m4-autogen/config.sub'
configure.ac:16: installing 'build-aux/m4-autogen/install-sh'
configure.ac:16: installing 'build-aux/m4-autogen/missing'
Makefile.am: installing './INSTALL'
Makefile.am:97: error: Libtool library used but 'LIBTOOL' is undefined
Makefile.am:97:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
Makefile.am:97:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
Makefile.am:97:   If 'LT_INIT' is in 'configure.ac', make sure
Makefile.am:97:   its definition is in aclocal's search path.
Makefile.am: installing 'build-aux/m4-autogen/depcomp'
parallel-tests: installing 'build-aux/m4-autogen/test-driver'
autoreconf: automake failed with exit status: 1
@kolobabka
Copy link
Author

To avoid some of the responses from (#38372), I have already installed the following:

  • libtool
  • autoconf
  • automake
  • pkg-config

I also tried running the following command with sudo privileges.

@LilyWangLL LilyWangLL added the requires:repro The issue is not currently repro-able label Jan 6, 2025
@LilyWangLL
Copy link
Contributor

I can't repro this issue locally, my install log:

Installing 1/1 libxcrypt:[email protected]#2...
Building libxcrypt:[email protected]#2...
libxcrypt currently requires the following libraries from the system package manager:
    autoconf automake libtool pkg-config
These can be installed on Debian systems via sudo apt install autoconf automake libtool pkg-config
Downloading besser82-libxcrypt-7fc153170ea6c2938c0392794778de7ec995f8f9.patch
Successfully downloaded besser82-libxcrypt-7fc153170ea6c2938c0392794778de7ec995f8f9.patch.
Downloading besser82-libxcrypt-v4.4.36.tar.gz
Successfully downloaded besser82-libxcrypt-v4.4.36.tar.gz.
-- Extracting source /mnt/lily/0106/downloads/besser82-libxcrypt-v4.4.36.tar.gz
-- Applying patch /mnt/lily/0106/downloads/besser82-libxcrypt-7fc153170ea6c2938c0392794778de7ec995f8f9.patch
-- Using source at /mnt/lily/0106/buildtrees/libxcrypt/src/v4.4.36-731337b063.clean
-- Getting CMake variables for x64-linux-dbg
-- Getting CMake variables for x64-linux-rel
-- Generating configure for x64-linux
-- Finished generating configure for x64-linux
-- Configuring x64-linux-dbg
-- Configuring x64-linux-rel
-- Building x64-linux-dbg
-- Installing x64-linux-dbg
-- Building x64-linux-rel
-- Installing x64-linux-rel
-- Fixing pkgconfig file: /mnt/lily/0106/packages/libxcrypt_x64-linux/lib/pkgconfig/libcrypt.pc
-- Fixing pkgconfig file: /mnt/lily/0106/packages/libxcrypt_x64-linux/lib/pkgconfig/libxcrypt.pc
-- Fixing pkgconfig file: /mnt/lily/0106/packages/libxcrypt_x64-linux/debug/lib/pkgconfig/libcrypt.pc
-- Fixing pkgconfig file: /mnt/lily/0106/packages/libxcrypt_x64-linux/debug/lib/pkgconfig/libxcrypt.pc
Downloading patchelf-0.14.5-x86_64.tar.gz
Successfully downloaded patchelf-0.14.5-x86_64.tar.gz.
-- Performing post-build validation
Elapsed time to handle libxcrypt:x64-linux: 19 s
libxcrypt:x64-linux package ABI: b9b982567c5ed4b14fdef004b98889d187ba1b5fe5ac98397384800cf6169b75
Total install time: 19 s

Your error message: Makefile.am:97: error: Libtool library used but 'LIBTOOL' is undefined, it is related of libtool.

@LilyWangLL
Copy link
Contributor

Maybe you can try to uninstall and reinstall the libtool.

@SDDunt
Copy link

SDDunt commented Jan 7, 2025

I'm am getting a version similar error on AWS Linux 2. A clean install errors out with essentially needs automake 1.14:

Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-linux...
Compiler found: /usr/lib64/ccache/c++
Restored 0 package(s) from /home/ec2-user/.cache/vcpkg/archives in 132 us. Use --debug to see more details.
Installing 1/112 libxcrypt:[email protected]#2...
Building libxcrypt:[email protected]#2...
libxcrypt currently requires the following libraries from the system package manager:
    autoconf automake libtool pkg-config
These can be installed on Debian systems via sudo apt install autoconf automake libtool pkg-config
-- Using cached besser82-libxcrypt-7fc153170ea6c2938c0392794778de7ec995f8f9.patch.
-- Using cached besser82-libxcrypt-v4.4.36.tar.gz.
-- Cleaning sources at /home/ec2-user/vcpkg/buildtrees/libxcrypt/src/v4.4.36-731337b063.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/ec2-user/vcpkg/downloads/besser82-libxcrypt-v4.4.36.tar.gz
-- Applying patch /home/ec2-user/vcpkg/downloads/besser82-libxcrypt-7fc153170ea6c2938c0392794778de7ec995f8f9.patch
-- Using source at /home/ec2-user/vcpkg/buildtrees/libxcrypt/src/v4.4.36-731337b063.clean
-- Getting CMake variables for x64-linux-dbg
-- Getting CMake variables for x64-linux-rel
-- Generating configure for x64-linux
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: /bin/autoreconf -vfi
    Working Directory: /home/ec2-user/vcpkg/buildtrees/libxcrypt/src/v4.4.36-731337b063.clean/
    Error code: 1
    See logs for more information:
      /home/ec2-user/vcpkg/buildtrees/libxcrypt/autoconf-x64-linux-out.log
      /home/ec2-user/vcpkg/buildtrees/libxcrypt/autoconf-x64-linux-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_make.cmake:731 (vcpkg_execute_required_process)
  ports/libxcrypt/portfile.cmake:33 (vcpkg_configure_make)
  scripts/ports.cmake:196 (include)

And the error logs says:

[ec2-user@ip-10-8-43-61 vcpkg]$ tail -20 /home/ec2-user/vcpkg/buildtrees/libxcrypt/autoconf-x64-linux-err.log
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I build-aux/m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:29: installing 'build-aux/m4-autogen/config.guess'
configure.ac:29: installing 'build-aux/m4-autogen/config.sub'
configure.ac:16: installing 'build-aux/m4-autogen/install-sh'
configure.ac:16: installing 'build-aux/m4-autogen/missing'
Makefile.am:7: error: require Automake 1.14, but have 1.13.4
autoreconf: automake failed with exit status: 1
automake --version
automake (GNU automake) 1.13.4
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Tom Tromey <[email protected]>
       and Alexandre Duret-Lutz <[email protected]>.

If I switch automake versions to 1.14

ec2-user@ip-10-8-43-61 vcpkg]$ /usr/local/bin/automake --version
automake (GNU automake) 1.14
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Tom Tromey <[email protected]>
       and Alexandre Duret-Lutz <[email protected]>.

it STILL ERRORS OUT: - Now it wants 13.4 again..

dditional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-linux...
Compiler found: /usr/lib64/ccache/c++
Restored 0 package(s) from /home/ec2-user/.cache/vcpkg/archives in 143 us. Use --debug to see more details.
Installing 1/112 libxcrypt:[email protected]#2...
Building libxcrypt:[email protected]#2...
libxcrypt currently requires the following libraries from the system package manager:
    autoconf automake libtool pkg-config
These can be installed on Debian systems via sudo apt install autoconf automake libtool pkg-config
-- Using cached besser82-libxcrypt-7fc153170ea6c2938c0392794778de7ec995f8f9.patch.
-- Using cached besser82-libxcrypt-v4.4.36.tar.gz.
-- Cleaning sources at /home/ec2-user/vcpkg/buildtrees/libxcrypt/src/v4.4.36-731337b063.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/ec2-user/vcpkg/downloads/besser82-libxcrypt-v4.4.36.tar.gz
-- Applying patch /home/ec2-user/vcpkg/downloads/besser82-libxcrypt-7fc153170ea6c2938c0392794778de7ec995f8f9.patch
-- Using source at /home/ec2-user/vcpkg/buildtrees/libxcrypt/src/v4.4.36-731337b063.clean
-- Getting CMake variables for x64-linux-dbg
-- Getting CMake variables for x64-linux-rel
-- Generating configure for x64-linux
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: /bin/autoreconf -vfi
    Working Directory: /home/ec2-user/vcpkg/buildtrees/libxcrypt/src/v4.4.36-731337b063.clean/
    Error code: 63
    See logs for more information:
      /home/ec2-user/vcpkg/buildtrees/libxcrypt/autoconf-x64-linux-out.log
      /home/ec2-user/vcpkg/buildtrees/libxcrypt/autoconf-x64-linux-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_make.cmake:731 (vcpkg_execute_required_process)
  ports/libxcrypt/portfile.cmake:33 (vcpkg_configure_make)
  scripts/ports.cmake:196 (include)

And the error log this time says:

[ec2-user@ip-10-8-43-61 vcpkg]$ tail -20 /home/ec2-user/vcpkg/buildtrees/libxcrypt/autoconf-x64-linux-err.log
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I build-aux/m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:16: error: version mismatch.  This is Automake 1.14,
configure.ac:16: but the definition used by this AM_INIT_AUTOMAKE
configure.ac:16: comes from Automake 1.13.4.  You should recreate
configure.ac:16: aclocal.m4 with aclocal and run automake again.
configure.ac:29: installing 'build-aux/m4-autogen/config.guess'
configure.ac:29: installing 'build-aux/m4-autogen/config.sub'
configure.ac:16: installing 'build-aux/m4-autogen/install-sh'
configure.ac:16: installing 'build-aux/m4-autogen/missing'
Makefile.am: installing './INSTALL'
Makefile.am: installing 'build-aux/m4-autogen/depcomp'
parallel-tests: installing 'build-aux/m4-autogen/test-driver'
autoreconf: automake failed with exit status: 63

@dg0yt
Copy link
Contributor

dg0yt commented Jan 7, 2025

Try a more recent version of automake? 1.13 and 1.14 seem pretty old. Ubuntu 20.04 (!) has automake 1.16.1, and libxcrypt builds without error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires:repro The issue is not currently repro-able
Projects
None yet
Development

No branches or pull requests

4 participants