Opened 2 years ago

Closed 2 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)

config.log (36.7 KB) - added by NickFabry (Nick Fabry) 2 years ago.
config.sub (30.4 KB) - added by NickFabry (Nick Fabry) 2 years ago.
main.log (37.4 KB) - added by NickFabry (Nick Fabry) 2 years ago.

Download all attachments as: .zip

Change History (5)

Changed 2 years ago by NickFabry (Nick Fabry)

Attachment: config.log added

Changed 2 years ago by NickFabry (Nick Fabry)

Attachment: config.sub added

Changed 2 years ago by NickFabry (Nick Fabry)

Attachment: main.log added

comment:1 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: arm64 added
Summary: port libelf-0.8.13_2.darwin_21.arm64 configure failure: command execution failedlibelf @0.8.13_2: checking build system type... configure: error: /bin/sh ./config.sub -apple-darwin21.2.0 failed

So it needs newer config.guess/config.sub to recognize Apple Silicon systems.

comment:2 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In 64e99412d2390447cbd98bac79cb6851d425ae74/macports-ports (master):

libelf: Update config.guess/config.sub for arm64

Closes: #64366

Note: See TracTickets for help on using tickets.