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

[gdal:x64-osx] configuration failure: required file 'config.rpath' not found #16990

Closed
adelpit opened this issue Mar 31, 2021 · 5 comments · Fixed by #17083
Closed

[gdal:x64-osx] configuration failure: required file 'config.rpath' not found #16990

adelpit opened this issue Mar 31, 2021 · 5 comments · Fixed by #17083
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support requires:repro The issue is not currently repro-able

Comments

@adelpit
Copy link

adelpit commented Mar 31, 2021

Host Environment

  • OS: osx
  • Compiler: n/a

To Reproduce
Steps to reproduce the behavior:
./vcpkg install gdal

Failure logs
stdout logs

Computing installation plan...
The following packages will be built and installed:
    gdal[core]:x64-osx -> 3.1.3#3
Detecting compiler hash for triplet x64-osx...
Could not locate cached archive: /Users/andrewdelpit/.cache/vcpkg/archives/2c/2c2d63f1b9da6dc2bf4c59cb0cbb2188264546a1.zip
Starting package 1/1: gdal:x64-osx
Building package gdal[core]:x64-osx...
-- Using cached /Users/andrewdelpit/repo/photogrammetry/vcpkg/downloads/gdal313.zip
-- Cleaning sources at /Users/andrewdelpit/repo/photogrammetry/vcpkg/buildtrees/gdal/src/gdal313-b1dafdc415.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /Users/andrewdelpit/repo/photogrammetry/vcpkg/downloads/gdal313.zip
-- Applying patch 0001-Fix-debug-crt-flags.patch
-- Applying patch 0002-Fix-build.patch
-- Applying patch 0003-Fix-static-build.patch
-- Applying patch 0004-Fix-std-fabs.patch
-- Applying patch 0005-Fix-cfitsio.patch
-- Using source at /Users/andrewdelpit/repo/photogrammetry/vcpkg/buildtrees/gdal/src/gdal313-b1dafdc415.clean
-- Configuring x64-osx-dbg
-- Configuring x64-osx-rel
-- Generating configure for x64-osx
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:105 (message):
    Command failed: /usr/local/bin/autoreconf -vfi
    Working Directory: /Users/andrewdelpit/repo/photogrammetry/vcpkg/buildtrees/gdal/src/gdal313-b1dafdc415.clean/
    Error code: 1
    See logs for more information:
      /Users/andrewdelpit/repo/photogrammetry/vcpkg/buildtrees/gdal/autoconf-x64-osx-out.log
      /Users/andrewdelpit/repo/photogrammetry/vcpkg/buildtrees/gdal/autoconf-x64-osx-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_make.cmake:578 (vcpkg_execute_required_process)
  ports/gdal/portfile.cmake:191 (vcpkg_configure_make)
  scripts/ports.cmake:142 (include)


Error: Building package gdal:x64-osx failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `./vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: gdal:x64-osx
  Vcpkg version: 2021-01-13-unknownhash

Additionally, attach any relevant sections from the log files above.

And the contents of autoconf-x64-osx-err.log

autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force 
autoreconf: configure.ac: tracing
autoreconf: running: glibtoolize --copy --force
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal --force 
autoreconf: running: /usr/local/Cellar/autoconf/2.71/bin/autoconf --force
configure.ac:49: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:49: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/ax_cflags_warn_all.m4:26: AX_CFLAGS_WARN_ALL is expanded from...
configure.ac:49: the top level
configure.ac:50: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:50: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/ax_cflags_warn_all.m4:71: AX_CXXFLAGS_WARN_ALL is expanded from...
configure.ac:50: the top level
configure.ac:222: warning: The macro `AC_LIBTOOL_WIN32_DLL' is obsolete.
configure.ac:222: You should run autoupdate.
m4/ltoptions.m4:148: AC_LIBTOOL_WIN32_DLL is expanded from...
configure.ac:222: the top level
configure.ac:222: warning: AC_LIBTOOL_WIN32_DLL: Remove this warning and the call to _LT_SET_OPTION when you
configure.ac:222: put the 'win32-dll' option into LT_INIT's first parameter.
./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...
m4/ltoptions.m4:148: AC_LIBTOOL_WIN32_DLL is expanded from...
configure.ac:222: the top level
configure.ac:223: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:223: You should run autoupdate.
m4/libtool.m4:99: AC_PROG_LIBTOOL is expanded from...
configure.ac:223: the top level
configure.ac:297: warning: The macro `AC_HEADER_STDC' is obsolete.
configure.ac:297: You should run autoupdate.
./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
configure.ac:297: the top level
configure.ac:350: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:350: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:350: the top level
configure.ac:376: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:376: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:376: the top level
configure.ac:505: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:505: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:505: the top level
configure.ac:980: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:980: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:980: the top level
configure.ac:999: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:999: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:999: the top level
configure.ac:1016: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:1016: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:1016: the top level
configure.ac:1037: warning: The macro `AC_CHECKING' is obsolete.
configure.ac:1037: You should run autoupdate.
./lib/autoconf/general.m4:2499: AC_CHECKING is expanded from...
configure.ac:1037: the top level
configure.ac:1041: warning: The macro `AC_CHECKING' is obsolete.
configure.ac:1041: You should run autoupdate.
./lib/autoconf/general.m4:2499: AC_CHECKING is expanded from...
configure.ac:1041: the top level
configure.ac:1058: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:1058: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:1058: the top level
configure.ac:1079: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:1079: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:1079: the top level
configure.ac:3052: warning: AC_CHECK_HEADERS($NETCDF_INCLUDEDIR/netcdf_mem.h): you should use literals
./lib/autoconf/headers.m4:217: AC_CHECK_HEADERS is expanded from...
configure.ac:3052: the top level
configure.ac:3672: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:3672: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
m4/ax_oracle_oci.m4:41: AX_LIB_ORACLE_OCI is expanded from...
configure.ac:3672: the top level
configure.ac:3792: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:3792: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
m4/ax_lib_xerces.m4:37: AX_LIB_XERCES is expanded from...
configure.ac:3792: the top level
configure.ac:3816: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:3816: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
m4/ax_lib_expat.m4:37: AX_LIB_EXPAT is expanded from...
configure.ac:3816: the top level
configure.ac:3839: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:3839: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
m4/ax_lib_libkml.m4:48: AX_LIB_LIBKML is expanded from...
configure.ac:3839: the top level
configure.ac:3928: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:3928: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
m4/ax_oracle_oci.m4:41: AX_LIB_ORACLE_OCI is expanded from...
configure.ac:3928: the top level
configure.ac:4204: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:4204: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
m4/ax_lib_sqlite3.m4:32: AX_LIB_SQLITE3 is expanded from...
configure.ac:4204: the top level
configure.ac:4239: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:4239: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
m4/ax_lib_sqlite3.m4:32: AX_LIB_SQLITE3 is expanded from...
configure.ac:4239: the top level
configure.ac:4448: warning: The macro `AC_CHECKING' is obsolete.
configure.ac:4448: You should run autoupdate.
./lib/autoconf/general.m4:2499: AC_CHECKING is expanded from...
configure.ac:4448: the top level
configure.ac:5611: warning: The macro `AC_CHECKING' is obsolete.
configure.ac:5611: You should run autoupdate.
./lib/autoconf/general.m4:2499: AC_CHECKING is expanded from...
configure.ac:5611: the top level
configure.ac:6009: warning: AC_OUTPUT should be used without arguments.
configure.ac:6009: You should run autoupdate.
autoreconf: running: /usr/local/Cellar/autoconf/2.71/bin/autoheader --force
autoreconf: configure.ac: not using Automake
autoreconf: './config.sub' is updated
autoreconf: './config.guess' is updated
configure.ac: error: required file 'config.rpath' not found
autoreconf: Leaving directory '.'

Additional context

If I add execute_process(COMMAND touch ${SOURCE_PATH}/config.rpath) immediately before vcpkg_configure_make then the configuration completes fine

@PhoebeHui
Copy link
Contributor

@adelpit, I can't repro this issue locally. It may be a autoconf issue, what's the version of autoconf in you machine?

vcpkg % autoconf --version
autoconf (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Starting package 9/9: gdal:x64-osx
Building package gdal[core]:x64-osx...
-- Downloading http://download.osgeo.org/gdal/3.1.3/gdal313.zip -> gdal313.zip..                                                                                                                                                             .
-- Extracting source /Users/vcpkg/phoebe/vcpkg/downloads/gdal313.zip
-- Applying patch 0001-Fix-debug-crt-flags.patch
-- Applying patch 0002-Fix-build.patch
-- Applying patch 0003-Fix-static-build.patch
-- Applying patch 0004-Fix-std-fabs.patch
-- Applying patch 0005-Fix-cfitsio.patch
-- Using source at /Users/vcpkg/phoebe/vcpkg/buildtrees/gdal/src/gdal313-b1dafdc                                                                                                                                                             415.clean
-- Configuring x64-osx-dbg
-- Configuring x64-osx-rel
-- Generating configure for x64-osx
-- Finished generating configure for x64-osx
-- Configuring x64-osx-dbg
-- Configuring x64-osx-rel
-- Building x64-osx-dbg
-- Installing x64-osx-dbg
-- Building x64-osx-rel
-- Installing x64-osx-rel
-- Installing: /Users/vcpkg/phoebe/vcpkg/packages/gdal_x64-osx/share/gdal/usage
-- Installing: /Users/vcpkg/phoebe/vcpkg/packages/gdal_x64-osx/share/gdal/copyri                                                                                                                                                             ght
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: /Users/vcpkg/.cache/vcpkg/archives/ab/abb5833b523317207d762                                                                                                                                                             3749770296a859234d9.zip
Building package gdal[core]:x64-osx... done
Installing package gdal[core]:x64-osx...
Installing package gdal[core]:x64-osx... done
Elapsed time for package gdal:x64-osx: 7.757 min

Total elapsed time: 14.55 min

The package GDAL provides CMake targets:

    find_package(GDAL REQUIRED)
    target_include_directories(main PRIVATE ${GDAL_INCLUDE_DIRS})
    target_link_libraries(main PRIVATE ${GDAL_LIBRARIES})

@PhoebeHui PhoebeHui added the requires:repro The issue is not currently repro-able label Apr 1, 2021
@PhoebeHui PhoebeHui changed the title [GDAL] configuration failure: required file 'config.rpath' not found [GDAL:x64-osx] configuration failure: required file 'config.rpath' not found Apr 2, 2021
@PhoebeHui PhoebeHui changed the title [GDAL:x64-osx] configuration failure: required file 'config.rpath' not found [gdal:x64-osx] configuration failure: required file 'config.rpath' not found Apr 2, 2021
@PhoebeHui
Copy link
Contributor

This issue affects 2 PRs(#16577 and #15787) now, I removed gettext in local test machine, however I still can't repro locally.

@vicroms, could you please take a look?

@JackBoosY JackBoosY added the category:port-bug The issue is with a library, which is something the port should already support label Apr 3, 2021
@autoantwort
Copy link
Contributor

@adelpit I don't know autoconf, but does it help if you run autoupdate as suggested in the output?

@autoantwort
Copy link
Contributor

@PhoebeHui #17057 and #17098 have a similar background, maybe the autoconf installation is broken? Because the pipeline failures are new and it worked a few weeks/days ago and there were problems with the mac pipelines (some machines were down, they are online again since a few days (discussed on discord with @strega-nil))

@PhoebeHui
Copy link
Contributor

@autoantwort, we would apply the workaround via PR #17083 in baseline, we will rerun the relate PRs after the PR merged. It should be a autoconf issue, however, we don't have a better solution currently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support requires:repro The issue is not currently repro-able
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants