[MacPorts] #69464: gmp @6.3.0_0 configure error : configure: error: No usable m4 in $PATH or /usr/5bin

MacPorts noreply at macports.org
Sat Mar 9 09:14:59 UTC 2024


#69464: gmp @6.3.0_0 configure error : configure: error: No usable m4 in $PATH or
/usr/5bin
---------------------------+--------------------
 Reporter:  nanigashi-uji  |      Owner:  (none)
     Type:  defect         |     Status:  new
 Priority:  Normal         |  Milestone:
Component:  ports          |    Version:  2.9.1
 Keywords:                 |       Port:
---------------------------+--------------------
 Under the environment at Sonoma 14.4 and Xcode15.3, even Xcode command
 line is installed, m4 can not be detected during "configure".

 Corresponding part of outout from 'port -v install gmp'
 {{{
 ...
 checking for sstream... yes
 checking for std::locale... yes
 checking for suitable m4... configure: error: No usable m4 in $PATH or
 /usr/5bin (see config.log for reasons).
 Command failed:  cd "......../gmp/work/gmp-6.3.0" && ./configure
 --prefix=/....  --host=applem1-apple-darwin23 --enable-cxx
 Exit code: 1
 ...
 }}}

 I found that the issue can be averted by adding the following lines in
 Ports file.


 {{{
 if {${os.platform} eq "darwin" && ${os.major} > 13 && [string match
 *clang* ${configure.compiler}]} {
     configure.env-append
 M4=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/gm4
 }

 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/69464>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list