Saturday, June 24, 2023

Re: Disabling IBT for lang/erlang

On Sat, Jun 24, 2023 at 12:59:07AM +0000, Renato Aguiar wrote:
> Erlang ports are broken in -current due to IBT violations.
>
> I don't know how to fix Erlang itself, but I can confirm that disabling
> IBT with USE_NOBTCFI makes both ports work again.

I agree that it is the simpler for now. beam.smp segfault with SIGILL. no others
ports LIB_DEPENDS of erlang (only BUILD_DEPENDS and RUN_DEPENDS), so it is self
contained.

it should unbreak tsung, rebar3, elixir, gleam, lfe, and rabbitmq too.

ok semarie@

> diff -ru /usr/ports/lang/erlang/25/Makefile ./25/Makefile
> --- /usr/ports/lang/erlang/25/Makefile Sat Jun 10 23:18:32 2023
> +++ ./25/Makefile Fri Jun 23 16:54:12 2023
> @@ -1,5 +1,7 @@
> BROKEN-alpha= beam/erl_process.c:6692: internal compiler error: in final_scan_insn, at final.c:2449
>
> +USE_NOBTCFI= Yes
> +
> COMMENT-main= ${COMMENT}
> COMMENT-wx= WxWidgets bindings for Erlang
>
> @@ -10,6 +12,7 @@
> PKGNAME-main= erlang-$V
> PKGNAME-wx= erlang-wx-$V
> EPOCH= 0
> +REVISION= 0
>
> VERSION_SPEC= >=25v0,<26v0
> PKGSPEC-main= erlang-${VERSION_SPEC}
> diff -ru /usr/ports/lang/erlang/26/Makefile ./26/Makefile
> --- /usr/ports/lang/erlang/26/Makefile Sat Jun 10 23:18:33 2023
> +++ ./26/Makefile Fri Jun 23 16:10:24 2023
> @@ -1,6 +1,7 @@
> BROKEN-alpha= beam/erl_process.c:6692: internal compiler error: in final_scan_insn, at final.c:2449
>
> USE_WXNEEDED= Yes
> +USE_NOBTCFI= Yes
>
> COMMENT-main= ${COMMENT}
> COMMENT-wx= WxWidgets bindings for Erlang
> @@ -12,6 +13,7 @@
> PKGNAME-main= erlang-${V}
> PKGNAME-wx= erlang-wx-${V}
> EPOCH= 0
> +REVISION= 0
>
> VERSION_SPEC= >=26v0,<27v0
> PKGSPEC-main= erlang-${VERSION_SPEC}
>
>
> --
> Renato Aguiar
>

--
Sebastien Marie

No comments:

Post a Comment