Opened 4 years ago
Closed 4 years ago
#61440 closed defect (invalid)
gperf: error: ./configure failed for lib
Reported by: | ungur (Liviu Ungur) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | bigsur | Cc: | |
Port: | gperf |
Description (last modified by ungur (Liviu Ungur))
I have built MacPorts version 2.6.4 using the git version, branch release-2.6. Configuration and installation went fine. However, I realized that I cannot install any port. The failed attempt to install gcc10 led to the following error:
mymac@MacBook-Pro macports-base.git % sudo port install gcc10 Warning: The macOS 11.0 SDK does not appear to be installed. Ports may not build correctly. Warning: You can install it as part of the Xcode Command Line Tools package by running `xcode-select --install'. ---> Computing dependencies for gcc10 The following dependencies will be installed: autoconf automake bzip2 cctools cmake curl curl-ca-bundle db48 expat gcc_select gdbm gettext glib2 gmp gperf help2man icu isl ld64 ld64-xcode libarchive libcxx libedit libffi libgcc libgcc10 libiconv libidn2 libmpc libpsl libtool libunistring libunwind-headers libuv libxml2 llvm-10 llvm_select lz4 lzo2 mpfr ncurses openssl p5.28-locale-gettext pcre perl5.28 perl5.30 pkgconfig python38 python3_select python_select readline sqlite3 texinfo xar xz zlib zstd Continue? [Y/n]: Y Warning: The macOS 11.0 SDK does not appear to be installed. Ports may not build correctly. Warning: You can install it as part of the Xcode Command Line Tools package by running `xcode-select --install'. ---> Fetching archive for gperf ---> Attempting to fetch gperf-3.1_0.darwin_20.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/gperf ---> Attempting to fetch gperf-3.1_0.darwin_20.x86_64.tbz2 from https://kmq.jp.packages.macports.org/gperf ---> Attempting to fetch gperf-3.1_0.darwin_20.x86_64.tbz2 from https://pek.cn.packages.macports.org/macports/packages/gperf ---> Configuring gperf Error: Failed to configure gperf, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gperf/gperf/work/gperf-3.1/config.log Error: Failed to configure gperf: configure failure: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gperf/gperf/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port gcc10 failed
gcc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1 Apple clang version 12.0.0 (clang-1200.0.32.27) Target: x86_64-apple-darwin20.1.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Attachments (1)
Change History (8)
Changed 4 years ago by ungur (Liviu Ungur)
Attachment: | config.log added |
---|
comment:1 Changed 4 years ago by ungur (Liviu Ungur)
Description: | modified (diff) |
---|
comment:2 Changed 4 years ago by ungur (Liviu Ungur)
Description: | modified (diff) |
---|
comment:3 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | bigsur added; XCode Version 12.2 (12B45b) removed |
---|---|
Milestone: | MacPorts 2.6.4 |
Port: | gcc10 -> removed |
Priority: | High → Normal |
Summary: | cannot build gperf on Big Sur → gperf: error: ./configure failed for lib |
The config.log doesn't say much, just:
error: ./configure failed for lib
I am surprised by the message "The macOS 11.0 SDK does not appear to be installed" because with Xcode 12.2 you should have the macOS 11.0 SDK. Can you please verify whether the macOS 11.0 SDK exists in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/? If it does not, reinstall Xcode 12.2. Also verify that the macOS 11.0 SDK exists in /Library/Developer/CommandLineTools/SDKs/; if it does not, reinstall the Xcode 12.2 command line tools.
comment:4 Changed 4 years ago by ungur (Liviu Ungur)
It looks like the mentioned SDK folder is not empty. It weights about 265 MB.
mymac@MacBook-Pro ~ % ll /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/ total 0 drwxr-xr-x 5 root wheel 160 Oct 20 04:33 DriverKit20.0.sdk/ lrwxr-xr-x 1 root wheel 10 Nov 13 14:04 MacOSX11.0.sdk -> MacOSX.sdk drwxr-xr-x 7 root wheel 224 Nov 13 14:13 MacOSX.sdk/
The command-line tool are also present:
mymac@MacBook-Pro ~ % ll /Library/Developer/CommandLineTools/SDKs/ total 0 drwxr-xr-x 7 root wheel 224 Jul 16 2019 MacOSX10.14.sdk/ drwxr-xr-x 8 root wheel 256 Aug 30 2019 MacOSX10.15.sdk/ lrwxr-xr-x 1 root wheel 15 Oct 10 2019 MacOSX.sdk -> MacOSX10.15.sdk
comment:5 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Your command line tools are outdated: they don't contain the macOS 11 SDK. Update to the Xcode 12.2 command line tools.
comment:6 Changed 4 years ago by ungur (Liviu Ungur)
Thanks for this suggestion. After updating the SDK to the latest version -- macports works fine. The ticket may be closed now. Thanks again for the help!
comment:7 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → invalid |
---|---|
Status: | new → closed |
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gperf/gperf/work/gperf-3.1/config.log