Opened 3 years ago
Closed 3 years ago
#64366 closed defect (fixed)
libelf @0.8.13_2: checking build system type... configure: error: /bin/sh ./config.sub -apple-darwin21.2.0 failed
Reported by: | NickFabry (Nick Fabry) | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | arm64 | Cc: | |
Port: | libelf |
Description
While attempting to install qmk dependencies, in particular avrdude, avr-gcc and arm-none-eabi-gcc, the installs kept failing. Trying to trace down which dependency was failing led to libelf. I did a "sudo port clean libelf" to attempt a clean install, and libelf still failed to install:
adminfabry@Winston fabry % sudo port install libelf 4530ms ---> Computing dependencies for libelf ---> Fetching archive for libelf ---> Attempting to fetch libelf-0.8.13_2.darwin_21.arm64.tbz2 from https://pek.cn.packages.macports.org/macports/packages/libelf ---> Attempting to fetch libelf-0.8.13_2.darwin_21.arm64.tbz2 from http://jog.id.packages.macports.org/macports/packages/libelf ---> Attempting to fetch libelf-0.8.13_2.darwin_21.arm64.tbz2 from https://fra.de.packages.macports.org/libelf ---> Fetching distfiles for libelf ---> Verifying checksums for libelf ---> Extracting libelf ---> Applying patches to libelf ---> Configuring libelf Error: Failed to configure libelf: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libelf/libelf/work/libelf-0.8.13/config.log Error: Failed to configure libelf: 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_libelf/libelf/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port libelf failed
I've attached the config.log and main.log files referenced above. In the config.log, this may have been the source of the error:
configure:5233: error: /bin/sh ./config.sub -apple-darwin21.2.0 failed
And in the main.log, this similar error:
:info:configure checking build system type... configure: error: /bin/sh ./config.sub -apple-darwin21.2.0 failed :info:configure configure: WARNING: cache variable ac_cv_build contains a newline :info:configure Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libelf/libelf/work/libelf-0.8.13" && ./configure --prefix=/opt/local --disable-compat :info:configure Exit code: 1 :error:configure Failed to configure libelf: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libelf/libelf/work/libelf-0.8.13/config.log :error:configure Failed to configure libelf: configure failure: command execution failed :debug:configure Error code: NONE :debug:configure Backtrace: configure failure: command execution failed :debug:configure while executing :debug:configure "$procedure $targetname" :error:configure See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libelf/libelf/main.log for details.
I'm running macOS 12.1, XCode 13.2.1 (13C100). Thanks for your volunteerism and work.
Attachments (3)
Change History (5)
Changed 3 years ago by NickFabry (Nick Fabry)
Attachment: | config.log added |
---|
Changed 3 years ago by NickFabry (Nick Fabry)
Attachment: | config.sub added |
---|
Changed 3 years ago by NickFabry (Nick Fabry)
comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | arm64 added |
---|---|
Summary: | port libelf-0.8.13_2.darwin_21.arm64 configure failure: command execution failed → libelf @0.8.13_2: checking build system type... configure: error: /bin/sh ./config.sub -apple-darwin21.2.0 failed |
comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | set to ryandesign |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
So it needs newer config.guess/config.sub to recognize Apple Silicon systems.