NetBSD Problem Report #57150

From john@daisy.zia.io  Fri Dec 30 19:27:34 2022
Return-Path: <john@daisy.zia.io>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id BECE81A9239
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 30 Dec 2022 19:27:34 +0000 (UTC)
Message-Id: <202212301927.2BUJRPiU016329@daisy.zia.io>
Date: Fri, 30 Dec 2022 19:27:25 GMT
From: john@ziaspace.com
Reply-To: john@ziaspace.com
To: gnats-bugs@NetBSD.org
Subject: lang/elixir fails on NetBSD 9.2 with -J 8
X-Send-Pr-Version: 3.95

>Number:         57150
>Category:       pkg
>Synopsis:       lang/elixir fails on NetBSD 9.2 with -J 8
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 30 19:30:00 +0000 2022
>Originator:     John Klos
>Release:        NetBSD 9.2_STABLE
>Organization:

>Environment:


System: NetBSD daisy.zia.io 9.2_STABLE NetBSD 9.2_STABLE (DAISY) #0: Sun Mar 13 01:23:07 UTC 2022 john@daisy.zia.io:/usr/obj-amd64/sys/arch/amd64/compile/DAISY amd64
Architecture: x86_64
Machine: amd64
>Description:

With latest pkgsrc, try to build lang/elixir with MAKE_JOBS=8:
...
gmake[1]: Entering directory '/usr/pkgsrc/lang/elixir/work/elixir-1.14.2'
==> unicode (compile)
warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell)
[Unicode] Break on 25 whitespace codepoints
warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell)
warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell)
[Unicode] Tokenizing 107876 non-ascii codepoints
[Unicode] Tokenizing 44 scriptsets
gmake[1]: Leaving directory '/usr/pkgsrc/lang/elixir/work/elixir-1.14.2'
==> elixir (compile)
warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell)
gmake[1]: Entering directory '/usr/pkgsrc/lang/elixir/work/elixir-1.14.2'
Generated elixir app
gmake[1]: Leaving directory '/usr/pkgsrc/lang/elixir/work/elixir-1.14.2'
*** Error code 2


After adding this to elixir's Makefile:

MAKE_ENV += LC_CTYPE="en_US.UTF-8"
MAKE_ENV += LC_LANG="en_US.UTF-8"  
MAKE_ENV += LC_ALL=""

the build fails with:

==> logger (compile)
{"init terminating in do_boot",{undef,[{'Elixir.Kernel.CLI',main,[["+elixirc","--ignore-module-conflict","lib/**/*.ex","-o","ebin"]],[]},{init,start_em,1,[]},{init,do_b{"init terminating in do_boot",{undef,[{'Elixir.Kernel.CLI',main,[["-e","Mix.start(:permanent, [])","-r","mix.exs","-e","Mix.Task.run(\"compile.app\", ~w[--compile-path ebin])"]],[]},{init,start_em,1,[]},{init,do_boot,3,[]}]}}
init terminating in do_boot ({undef,[{Elixir.Kernel.CLI,main,-eMix.start(:permanent, [])-rmix.exs-eMix.Task.run("compile.app", ~w[--compile-path ebin]),[]},{init,start_em,1,[]},{init,do_boot,3,[]}]})
o
Crash dump is being written to: erl_crash.dump...ot,3,[]}]}}
init terminating in do_boot ({unde{"init terminating in do_boot",{undef,[{'Elixir.Kernel.CLI',main,[["-e","Mix.start(:permanent, [])","-r","mix.exs","-e","Mix.Task.run(\"compile.app\", ~w[--compile-path ebin])"]],[]},{init,start_em,1,[]},{init,do_boot,3,[]}]}}
init terminating in do_boot ({undef,[{Elixir.Kernel.CLI,main,-eMix.start(:permanent, [])-rmix.exs-eMix.Task.run("compile.app", ~w[--compile-path ebin]),[]},{init,start_em,1,[]},{init,do_boot,3,[]}]})

Crash dump is being written to: erl_crash.dump...f,[{Elixir.Kernel.CLI,main,+elixirc--ignore-module-conflictlib/**/*.ex-oebin,[]},{init,start_em,1,[]},{ini{"init terminating in do_boot",{undef,[{'Elixir.Kernel.CLI',main,[["-e","Mix.start(:permanent, [])","-r","mix.exs","-e","Mix.Task.run(\"compile.app\", ~w[--compile-path ebin])"]],[]},{init,start_em,1,[]},{init,do_boot,3,[]}]}}
init terminating in do_boot ({undef,[{Elixir.Kernel.CLI,main,-eMix.start(:permanent, [])-rmix.exs-eMix.Task.run("compile.app", ~w[--compile-path ebin]),[]},{init,start_em,1,[]},{init,do_boot,3,[]}]})
t,
Crash dump is being written to: erl_crash.dump...do_boot,3,[]}]})

Crash dump is being written to: erl_crash.dump...{"init terminating in do_boot",{undef,[{'Elixir.Kernel.CLI',main,[["+elixirc","--ignore-module-conflict","lib/**/*.ex","-o","ebin"]],[]},{init,start_em,1,[]},{init,do_boot,3,[]}]}}
init terminating in do_boot ({undef,[{Elixir.Kernel.CLI,main,+elixirc--ignore-module-conflictlib/**/*.ex-oebin,[]},{init,start_em,1,[]},{init,do_boot,3,[]}]})

Crash dump is being written to: erl_crash.dump...done
{"init terminating in do_boot",{undef,[{'Elixir.Kernel.CLI',main,[["+elixirc","--ignore-module-conflict","lib/**/*.ex","-o","ebin"]],[]},{init,start_em,1,[]},{init,do_boot,3,[]}]}}
init terminating in do_boot ({undef,[{Elixir.Kernel.CLI,main,+elixirc--ignore-module-conflictlib/**/*.ex-oebin,[]},{init,start_em,1,[]},{init,do_boot,3,[]}]})

Crash dump is being written to: erl_crash.dump...gmake: *** [Makefile:112: lib/ex_unit/ebin/ex_unit.app] Error 1
gmake: *** Waiting for unfinished jobs....
done
gmake: *** [Makefile:115: lib/mix/ebin/mix.app] Error 1
done
done
gmake: *** [Makefile:113: lib/logger/ebin/logger.app] Error 1
gmake: *** [Makefile:117: lib/mix/ebin/Elixir.Mix.beam] Error 1
{"init terminating in do_boot",{undef,[{'Elixir.Kernel.CLI',main,[["+elixirc","--ignore-module-conflict","lib/**/*.ex","-o","ebin"]],[]},{init,start_em,1,[]},{init,do_boot,3,[]}]}}
init terminating in do_boot ({undef,[{Elixir.Kernel.CLI,main,+elixirc--ignore-module-conflictlib/**/*.ex-oebin,[]},{init,start_em,1,[]},{init,do_boot,3,[]}]})

Crash dump is being written to: erl_crash.dump...done
gmake: *** [Makefile:114: lib/ex_unit/ebin/Elixir.ExUnit.beam] Error 1
done
gmake: *** [Makefile:116: lib/eex/ebin/Elixir.EEx.beam] Error 1
done
gmake: *** [Makefile:115: lib/logger/ebin/Elixir.Logger.beam] Error 1


Retrying from scratch with MAKE_JOBS=1 results in success.
Fails with MAKE_JOBS=2 or greater.


>How-To-Repeat:

>Fix:


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2022 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.