[MacPorts] #61331: erlang @23.0 +wxwidgets: does not build on catalina

MacPorts noreply at macports.org
Fri Oct 16 18:38:37 UTC 2020


#61331: erlang @23.0 +wxwidgets: does not build on catalina
----------------------+-------------------------------
  Reporter:  logitab  |      Owner:  ci42
      Type:  defect   |     Status:  assigned
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.6.3
Resolution:           |   Keywords:  catalina haspatch
      Port:  erlang   |
----------------------+-------------------------------
Changes (by ryandesign):

 * cc: ciserlohn@… (removed)
 * keywords:  catalina => catalina haspatch
 * status:  new => assigned
 * owner:  (none) => ci42


Old description:

> Build fails on macos 10.15.7
>
> build started with:
> port install erlang +wxwidgets
>
> on
>
> Xcode 12.0.1 /  cc --version
> Apple clang version 12.0.0 (clang-1200.0.32.2)
>
> relevant part of log:
>
> {{{
> :info:build  CC obj/x86_64-apple-darwin19.6.0/opt/smp/erl_osenv.o
> :info:build  CC obj/x86_64-apple-darwin19.6.0/opt/smp/erl_unix_sys_ddll.o
> :info:build  CC obj/x86_64-apple-
> darwin19.6.0/opt/smp/erl_mtrace_sys_wrap.o
> :info:build  CC obj/x86_64-apple-
> darwin19.6.0/opt/smp/erl_sys_common_misc.o
> :info:build  CC obj/x86_64-apple-
> darwin19.6.0/opt/smp/erl_os_monotonic_time_extender.o
> :info:build  CC obj/x86_64-apple-darwin19.6.0/opt/smp/erl_poll.flbk.o
> :info:build  CC obj/x86_64-apple-darwin19.6.0/opt/smp/erlang_lttng.o
> :info:build  CC obj/x86_64-apple-darwin19.6.0/opt/smp/inet_drv.o
> :info:build drivers/common/inet_drv.c:1484:30: error: static declaration
> of 'in6addr_any' follows non-static declaration
> :info:build static const struct in6_addr in6addr_any = { {
> IN6ADDR_ANY_INIT } };
> :info:build                              ^
> :info:build
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet6/in6.h:211:30:
> note: previous declaration is here
> :info:build extern const struct in6_addr in6addr_any;
> :info:build                              ^
> :info:build drivers/common/inet_drv.c:1493:30: error: static declaration
> of 'in6addr_loopback' follows non-static declaration
> :info:build static const struct in6_addr in6addr_loopback =
> :info:build                              ^
> :info:build
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet6/in6.h:212:30:
> note: previous declaration is here
> :info:build extern const struct in6_addr in6addr_loopback;
> :info:build                              ^
> :info:build 2 errors generated.
> :info:build make[4]: *** [obj/x86_64-apple-
> darwin19.6.0/opt/smp/inet_drv.o] Error 1
> :info:build make[4]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_erlang/erlang/work/otp_src_23.0/erts/emulator'
> :info:build make[3]: *** [opt] Error 2
> :info:build make[3]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_erlang/erlang/work/otp_src_23.0/erts/emulator'
> :info:build make[2]: *** [opt] Error 2
> :info:build make[2]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_erlang/erlang/work/otp_src_23.0/erts'
> :info:build make[1]: *** [smp] Error 2
> :info:build make[1]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_erlang/erlang/work/otp_src_23.0/erts'
> :info:build make: *** [emulator] Error 2
> :info:build make: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_erlang/erlang/work/otp_src_23.0'
> :info:build Command failed:  cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_erlang/erlang/work/otp_src_23.0"
> && /usr/bin/make -w all
> :info:build Exit code: 2
> }}}

New description:

 Build fails on macos 10.15.7

 build started with:
 {{{
 port install erlang +wxwidgets
 }}}

 on

 Xcode 12.0.1 /  cc --version \\
 Apple clang version 12.0.0 (clang-1200.0.32.2)

 relevant part of log:

 {{{
 :info:build  CC obj/x86_64-apple-darwin19.6.0/opt/smp/erl_osenv.o
 :info:build  CC obj/x86_64-apple-darwin19.6.0/opt/smp/erl_unix_sys_ddll.o
 :info:build  CC obj/x86_64-apple-
 darwin19.6.0/opt/smp/erl_mtrace_sys_wrap.o
 :info:build  CC obj/x86_64-apple-
 darwin19.6.0/opt/smp/erl_sys_common_misc.o
 :info:build  CC obj/x86_64-apple-
 darwin19.6.0/opt/smp/erl_os_monotonic_time_extender.o
 :info:build  CC obj/x86_64-apple-darwin19.6.0/opt/smp/erl_poll.flbk.o
 :info:build  CC obj/x86_64-apple-darwin19.6.0/opt/smp/erlang_lttng.o
 :info:build  CC obj/x86_64-apple-darwin19.6.0/opt/smp/inet_drv.o
 :info:build drivers/common/inet_drv.c:1484:30: error: static declaration
 of 'in6addr_any' follows non-static declaration
 :info:build static const struct in6_addr in6addr_any = { {
 IN6ADDR_ANY_INIT } };
 :info:build                              ^
 :info:build
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet6/in6.h:211:30:
 note: previous declaration is here
 :info:build extern const struct in6_addr in6addr_any;
 :info:build                              ^
 :info:build drivers/common/inet_drv.c:1493:30: error: static declaration
 of 'in6addr_loopback' follows non-static declaration
 :info:build static const struct in6_addr in6addr_loopback =
 :info:build                              ^
 :info:build
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet6/in6.h:212:30:
 note: previous declaration is here
 :info:build extern const struct in6_addr in6addr_loopback;
 :info:build                              ^
 :info:build 2 errors generated.
 :info:build make[4]: *** [obj/x86_64-apple-
 darwin19.6.0/opt/smp/inet_drv.o] Error 1
 :info:build make[4]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_erlang/erlang/work/otp_src_23.0/erts/emulator'
 :info:build make[3]: *** [opt] Error 2
 :info:build make[3]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_erlang/erlang/work/otp_src_23.0/erts/emulator'
 :info:build make[2]: *** [opt] Error 2
 :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_erlang/erlang/work/otp_src_23.0/erts'
 :info:build make[1]: *** [smp] Error 2
 :info:build make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_erlang/erlang/work/otp_src_23.0/erts'
 :info:build make: *** [emulator] Error 2
 :info:build make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_erlang/erlang/work/otp_src_23.0'
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_erlang/erlang/work/otp_src_23.0"
 && /usr/bin/make -w all
 :info:build Exit code: 2
 }}}

--

Comment:

 Here is the upstream bug report: https://bugs.erlang.org/browse/ERL-1306

 Here is the upstream PR that fixed it:
 https://github.com/erlang/otp/pull/2687

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


More information about the macports-tickets mailing list