[MacPorts] #62991: m4 @ 1.4.19+universal Failed to configure

MacPorts noreply at macports.org
Sat Jun 5 20:06:43 UTC 2021


#62991: m4 @ 1.4.19+universal Failed to configure
---------------------------+--------------------------
  Reporter:  FaradayLight  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.1
Resolution:                |   Keywords:  arm64 bigsur
      Port:  M4            |
---------------------------+--------------------------

Comment (by FaradayLight):

 Replying to [comment:19 tomio-arisaka]:
 > I made a patch for M1 Mac.
 >
 >
 > {{{
 > $ diff -u Portfile.orig Portfile
 > --- Portfile.orig     2021-05-30 04:56:03.000000000 +0900
 > +++ Portfile  2021-06-05 02:37:51.000000000 +0900
 > @@ -1,5 +1,6 @@
 >  PortSystem           1.0
 >  PortGroup            clang_dependency 1.0
 > +PortGroup               muniversal 1.0
 >
 >  name            m4
 >  version         1.4.19
 > @@ -33,6 +34,13 @@
 >      patchfiles-append      patch-m4-use-older-regnames-on-tiger.diff
 >  }
 >
 > +platform arm {
 > +    set merger_configure_args(arm64)   --host=aarch64-apple-darwin
 > +    set merger_configure_args(x86_64)  --host=x86_64-apple-darwin
 > +    set merger_configure_env(arm64)    CC_FOR_BUILD=${configure.cc}
 > +    set merger_configure_env(x86_64)   CC_FOR_BUILD=${configure.cc}
 > +}
 > +
 >  configure.args  --disable-silent-rules \
 >                  --program-prefix=g \
 >                  --with-packager=MacPorts \
 > }}}
 >
 > It works well for me.
 >
 >
 > {{{
 > MacBook-Pro:~ $ port installed m4
 > The following ports are currently installed:
 >   m4 @1.4.19_1
 >   m4 @1.4.19_1+universal (active)
 > MacBook-Pro:~ $
 > MacBook-Pro:~ $ file `which m4`
 > /usr/bin/m4: Mach-O universal binary with 2 architectures:
 [x86_64:Mach-O 64-bit executable x86_64] [arm64e:Mach-O 64-bit executable
 arm64e]
 > /usr/bin/m4 (for architecture x86_64):        Mach-O 64-bit executable
 x86_64
 > /usr/bin/m4 (for architecture arm64e):        Mach-O 64-bit executable
 arm64e
 > MacBook-Pro:~ $
 > }}}
 >

 Hi,

 I am not familiar with the process so I may have got this wrong somewhere.

 I applied above patch after manually stepping through the fetch, checksum,
 extract, patch steps. The package configured successfully, and proceeded
 without error through the manual steps of build and destroot, but it
 failed in test with:

 {{{
 :info:test Checking ./236.improved_f
 :info:test Checking ./stackovf.test
 :info:test Stack soft limit set to 300K
 :info:test Pass
 :info:test Skipped checks were:
 :info:test   ./125.changeword ./126.changeword ./127.changeword
 ./128.changeword ./129.changeword ./130.changeword
 :info:test Failed checks were:
 :info:test   ./198.sysval:err
 :info:test make[3]: *** [check-local] Error 1
 :info:test make[2]: *** [check-am] Error 2
 :info:test make[1]: *** [check-recursive] Error 1
 :info:test make: *** [check] Error 2
 :info:test Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_m4/m4/work/m4-1.4.19-arm64"
 && /usr/bin/make check
 :info:test Exit code: 2
 :error:test Failed to test m4: command execution failed
 :debug:test Error code: NONE
 :debug:test Backtrace: command execution failed
 :debug:test     while executing
 :debug:test "$procedure $targetname"
 :error:test See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_m4/m4/main.log
 for details.
 }}}

 Please see attached main_test.log

-- 
Ticket URL: <https://trac.macports.org/ticket/62991#comment:20>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list