Skip to content

Community build failure on Mac M1 #16424

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nicolasstucki opened this issue Nov 28, 2022 · 0 comments · Fixed by #16395
Closed

Community build failure on Mac M1 #16424

nicolasstucki opened this issue Nov 28, 2022 · 0 comments · Fixed by #16395

Comments

@nicolasstucki
Copy link
Contributor

Currently, there is a failure to publish minitest in the community_build_c on JDK 17 on Mac M1/M2.

Failure using Homebrew Java 17.0.5
[info] Test dotty.communitybuild.CommunityBuildTestC.minitest started
Publishing scalacheck
sbt -sbt-version 1.7.1 -Dsbt.supershell=false -Ddotty.communitybuild.dir=dotty/community-build --addPluginSbtFile=dotty/community-build/sbt-injected-plugins clean; set Global/logLevel := Level.Error; set Global/updateOptions ~= (_.withLatestSnapshots(false)); set Global/scalacOptions ++= List("-Xcheck-macros","-Ysafe-init");++3.3.0-RC1-bin-SNAPSHOT!; coreJVM/publishLocal;coreJS/publishLocal
[info] welcome to sbt 1.7.1 (Homebrew Java 17.0.5)
[info] loading global plugins from ~/.sbt/1.0/plugins
[info] loading settings for project scalacheck-build from plugin.sbt,sbt-injected-plugins ...
[info] loading project definition from dotty/community-build/community-projects/scalacheck/project
[info] loading settings for project root from build.sbt ...
[info] set current project to scalacheck (in build file:dotty/community-build/community-projects/scalacheck/)
[success] Total time: 0 s, completed 28 Nov 2022, 12:11:11
[info] Defining Global / logLevel
[info] The new value will be used by Test / test / testListeners, Test / testOnly / testListeners and 64 others.
[info]  Run `last` for details.
[info] Reapplying settings...
[info] set current project to scalacheck (in build file:dotty/community-build/community-projects/scalacheck/)
[info] Defining Global / updateOptions
[info] The new value will be used by bench / dependencyTreeIgnoreMissingUpdate / updateOptions, bench / ivyConfiguration and 21 others.
[info]  Run `last` for details.
[info] Reapplying settings...
[info] set current project to scalacheck (in build file:dotty/community-build/community-projects/scalacheck/)
[info] Defining Global / scalacOptions
[info] The new value will be used by bench / scalacOptions, coreJS / scalacOptions and 5 others.
[info]  Run `last` for details.
[info] Reapplying settings...
[info] set current project to scalacheck (in build file:dotty/community-build/community-projects/scalacheck/)
[info] Forcing Scala version to 3.3.0-RC1-bin-SNAPSHOT on all projects.
[info] Reapplying settings...
[info] Loading dependency tracking file dotty/community-build/dotty-community-build-deps
[info] Dependency tracking file dotty/community-build/dotty-community-build-deps does not exist
[info] set current project to scalacheck (in build file:dotty/community-build/community-projects/scalacheck/)
[success] Total time: 12 s, completed 28 Nov 2022, 12:11:25
[success] Total time: 5 s, completed 28 Nov 2022, 12:11:30
Building minitest with dotty-bootstrapped 3.3.0-RC1-bin-SNAPSHOT...
sbt -sbt-version 1.7.1 -Dsbt.supershell=false -Ddotty.communitybuild.dir=dotty/community-build --addPluginSbtFile=dotty/community-build/sbt-injected-plugins set Global/testOptions += Tests.Argument(TestFramework("munit.Framework"), "+l"); clean; set Global/logLevel := Level.Error; set Global/updateOptions ~= (_.withLatestSnapshots(false)); set Global/scalacOptions ++= List("-Xcheck-macros","-Ysafe-init");++3.3.0-RC1-bin-SNAPSHOT!; test
[info] welcome to sbt 1.7.1 (Homebrew Java 17.0.5)
[info] loading global plugins from ~/.sbt/1.0/plugins
[info] loading settings for project minitest-build from plugins.sbt,sbt-injected-plugins ...
[info] loading project definition from dotty/community-build/community-projects/minitest/project
Could not load Logmanager "wvlet.log.AirframeLogManager"
java.lang.ClassNotFoundException: wvlet.log.AirframeLogManager
        at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
        at java.logging/java.util.logging.LogManager$1.run(LogManager.java:239)
        at java.logging/java.util.logging.LogManager$1.run(LogManager.java:223)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
        at java.logging/java.util.logging.LogManager.<clinit>(LogManager.java:222)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at java.management/sun.management.ManagementFactoryHelper$LoggingMXBeanAccess.getMXBeanImplementation(ManagementFactoryHelper.java:243)
        at java.management/sun.management.ManagementFactoryHelper$LoggingMXBeanAccess.<init>(ManagementFactoryHelper.java:259)
        at java.management/sun.management.ManagementFactoryHelper$PlatformLoggingImpl.getInstance(ManagementFactoryHelper.java:339)
        at java.management/sun.management.ManagementFactoryHelper$PlatformLoggingImpl.<clinit>(ManagementFactoryHelper.java:342)
        at java.management/sun.management.ManagementFactoryHelper.getPlatformLoggingMXBean(ManagementFactoryHelper.java:160)
        at java.management/java.lang.management.DefaultPlatformMBeanProvider$9.nameToMBeanMap(DefaultPlatformMBeanProvider.java:378)
        at java.management/java.lang.management.ManagementFactory.lambda$getPlatformMBeanServer$0(ManagementFactory.java:488)
        at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:273)
        at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
        at java.base/java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1779)
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
        at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
        at java.management/java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:489)
        at wvlet.log.LogEnv$.registerJMX(LogEnv.scala:74)
        at wvlet.log.LogEnv$.<init>(LogEnv.scala:69)
        at wvlet.log.LogEnv$.<clinit>(LogEnv.scala)
        at wvlet.log.Logger$.<init>(Logger.scala:184)
        at wvlet.log.Logger$.<clinit>(Logger.scala)
        at xerial.sbt.Sonatype$.<init>(Sonatype.scala:25)
        at xerial.sbt.Sonatype$.<clinit>(Sonatype.scala)
        at java.base/java.lang.Class.forName0(Native Method)
        at java.base/java.lang.Class.forName(Class.java:467)
        at sbt.internal.inc.ModuleUtilities$.getObject(ModuleUtilities.scala:24)
        at sbt.internal.inc.ModuleUtilities$.getCheckedObject(ModuleUtilities.scala:32)
        at sbt.internal.inc.ModuleUtilities$.$anonfun$getCheckedObjects$1(ModuleUtilities.scala:37)
        at scala.collection.immutable.Stream.$anonfun$map$1(Stream.scala:418)
        at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1173)
        at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1163)
        at scala.collection.generic.Growable.loop$1(Growable.scala:57)
        at scala.collection.generic.Growable.$plus$plus$eq(Growable.scala:61)
        at scala.collection.generic.Growable.$plus$plus$eq$(Growable.scala:53)
        at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:184)
        at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:47)
        at scala.collection.TraversableLike.to(TraversableLike.scala:786)
        at scala.collection.TraversableLike.to$(TraversableLike.scala:783)
        at scala.collection.AbstractTraversable.to(Traversable.scala:108)
        at scala.collection.TraversableOnce.toList(TraversableOnce.scala:350)
        at scala.collection.TraversableOnce.toList$(TraversableOnce.scala:350)
        at scala.collection.AbstractTraversable.toList(Traversable.scala:108)
        at scala.collection.immutable.List.$plus$plus(List.scala:216)
        at sbt.internal.PluginDiscovery$.discoverAll(PluginDiscovery.scala:58)
        at sbt.internal.Load$.loadPlugins(Load.scala:1329)
        at sbt.internal.Load$.loadPluginDefinition(Load.scala:1274)
        at sbt.internal.Load$.buildPlugins(Load.scala:1253)
        at sbt.internal.Load$.plugins(Load.scala:1232)
        at sbt.internal.Load$.$anonfun$loadUnit$2(Load.scala:700)
        at sbt.internal.Load$.timed(Load.scala:1406)
        at sbt.internal.Load$.$anonfun$loadUnit$1(Load.scala:700)
        at sbt.internal.Load$.timed(Load.scala:1406)
        at sbt.internal.Load$.loadUnit(Load.scala:694)
        at sbt.internal.Load$.$anonfun$builtinLoader$4(Load.scala:492)
        at sbt.internal.BuildLoader$.$anonfun$componentLoader$5(BuildLoader.scala:180)
        at sbt.internal.BuildLoader.apply(BuildLoader.scala:245)
        at sbt.internal.Load$.loadURI$1(Load.scala:554)
        at sbt.internal.Load$.loadAll(Load.scala:570)
        at sbt.internal.Load$.loadURI(Load.scala:500)
        at sbt.internal.Load$.load(Load.scala:479)
        at sbt.internal.Load$.$anonfun$apply$1(Load.scala:241)
        at sbt.internal.Load$.timed(Load.scala:1406)
        at sbt.internal.Load$.apply(Load.scala:241)
        at sbt.internal.Load$.defaultLoad(Load.scala:56)
        at sbt.BuiltinCommands$.liftedTree1$1(Main.scala:953)
        at sbt.BuiltinCommands$.doLoadProject(Main.scala:953)
        at sbt.BuiltinCommands$.$anonfun$loadProjectImpl$2(Main.scala:906)
        at sbt.Command$.$anonfun$applyEffect$4(Command.scala:150)
        at sbt.Command$.$anonfun$applyEffect$2(Command.scala:145)
        at sbt.Command$.process(Command.scala:189)
        at sbt.MainLoop$.$anonfun$processCommand$5(MainLoop.scala:245)
        at scala.Option.getOrElse(Option.scala:189)
        at sbt.MainLoop$.process$1(MainLoop.scala:245)
        at sbt.MainLoop$.processCommand(MainLoop.scala:278)
        at sbt.MainLoop$.$anonfun$next$5(MainLoop.scala:163)
        at sbt.State$StateOpsImpl$.runCmd$1(State.scala:289)
        at sbt.State$StateOpsImpl$.process$extension(State.scala:325)
        at sbt.MainLoop$.$anonfun$next$4(MainLoop.scala:163)
        at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:23)
        at sbt.MainLoop$.next(MainLoop.scala:163)
        at sbt.MainLoop$.run(MainLoop.scala:144)
        at sbt.MainLoop$.$anonfun$runWithNewLog$1(MainLoop.scala:119)
        at sbt.io.Using.apply(Using.scala:27)
        at sbt.MainLoop$.runWithNewLog(MainLoop.scala:112)
        at sbt.MainLoop$.runAndClearLast(MainLoop.scala:66)
        at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:51)
        at sbt.MainLoop$.runLogged(MainLoop.scala:42)
        at sbt.StandardMain$.runManaged(Main.scala:215)
        at sbt.xMain$.$anonfun$run$11(Main.scala:133)
        at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
        at scala.Console$.withIn(Console.scala:230)
        at sbt.internal.util.Terminal$.withIn(Terminal.scala:577)
        at sbt.internal.util.Terminal$.$anonfun$withStreams$1(Terminal.scala:358)
        at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
        at scala.Console$.withOut(Console.scala:167)
        at sbt.internal.util.Terminal$.$anonfun$withOut$2(Terminal.scala:567)
        at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
        at scala.Console$.withErr(Console.scala:196)
        at sbt.internal.util.Terminal$.withOut(Terminal.scala:567)
        at sbt.internal.util.Terminal$.withStreams(Terminal.scala:358)
        at sbt.xMain$.withStreams$1(Main.scala:87)
        at sbt.xMain$.run(Main.scala:121)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at sbt.internal.XMainConfiguration.run(XMainConfiguration.java:57)
        at sbt.xMain.run(Main.scala:46)
        at xsbt.boot.Launch$.$anonfun$run$1(Launch.scala:149)
        at xsbt.boot.Launch$.withContextLoader(Launch.scala:176)
        at xsbt.boot.Launch$.run(Launch.scala:149)
        at xsbt.boot.Launch$.$anonfun$apply$1(Launch.scala:44)
        at xsbt.boot.Launch$.launch(Launch.scala:159)
        at xsbt.boot.Launch$.apply(Launch.scala:44)
        at xsbt.boot.Launch$.apply(Launch.scala:21)
        at xsbt.boot.Boot$.runImpl(Boot.scala:78)
        at xsbt.boot.Boot$.run(Boot.scala:73)
        at xsbt.boot.Boot$.main(Boot.scala:21)
        at xsbt.boot.Boot.main(Boot.scala)
[info] loading settings for project minitestRoot from build.sbt,publish.sbt ...
[info] set current project to minitest root (in build file:dotty/community-build/community-projects/minitest/)
[warn] there are 3 keys that are not used by any other settings/tasks:
[warn]  
[warn] * ThisBuild / formattedShaVersion
[warn]   +- dotty/community-build/community-projects/minitest/publish.sbt:68
[warn] * ThisBuild / pomIncludeRepository
[warn]   +- dotty/community-build/community-projects/minitest/publish.sbt:53
[warn] * ThisBuild / publishMavenStyle
[warn]   +- dotty/community-build/community-projects/minitest/publish.sbt:41
[warn]  
[warn] note: a setting might still be used by a command; to exclude a key from this `lintUnused` check
[warn] either append it to `Global / excludeLintKeys` or call .withRank(KeyRanks.Invisible) on the key
[info] Defining Global / testOptions
[info] The new value will be used by Test / test / testOptions, Test / testOnly / testOptions and 12 others.
[info]  Run `last` for details.
[info] Reapplying settings...
[info] set current project to minitest root (in build file:dotty/community-build/community-projects/minitest/)
[success] Total time: 0 s, completed 28 Nov 2022, 12:11:37
[info] Defining Global / logLevel
[info] The new value will be used by Test / test / testListeners, Test / testOnly / testListeners and 37 others.
[info]  Run `last` for details.
[info] Reapplying settings...
[info] set current project to minitest root (in build file:dotty/community-build/community-projects/minitest/)
[info] Defining Global / updateOptions
[info] The new value will be used by dependencyTreeIgnoreMissingUpdate / updateOptions, ivyConfiguration and 12 others.
[info]  Run `last` for details.
[info] Reapplying settings...
[info] set current project to minitest root (in build file:dotty/community-build/community-projects/minitest/)
[info] Defining Global / scalacOptions
[info] The new value will be used by ThisBuild / scalacOptions
[info] Reapplying settings...
[info] set current project to minitest root (in build file:dotty/community-build/community-projects/minitest/)
[info] Forcing Scala version to 3.3.0-RC1-bin-SNAPSHOT on all projects.
[info] Reapplying settings...
[info] Loading dependency tracking file dotty/community-build/dotty-community-build-deps
[info] set current project to minitest root (in build file:dotty/community-build/community-projects/minitest/)
[error] failed to start node; did you install it? (run `last ProjectRef(uri("file:dotty/community-build/community-projects/minitest/"), "minitestJS") / Test / loadedTestFrameworks` for the full stack trace)
[error] failed to start node; did you install it? (run `last ProjectRef(uri("file:dotty/community-build/community-projects/minitest/"), "lawsJS") / Test / loadedTestFrameworks` for the full stack trace)
[error] (minitestJS / Test / loadedTestFrameworks) failed to start node; did you install it? (run `last ProjectRef(uri("file:dotty/community-build/community-projects/minitest/"), "minitestJS") / Test / loadedTestFrameworks` for the full stack trace)
[error] (lawsJS / Test / loadedTestFrameworks) failed to start node; did you install it? (run `last ProjectRef(uri("file:dotty/community-build/community-projects/minitest/"), "lawsJS") / Test / loadedTestFrameworks` for the full stack trace)
[error] Total time: 10 s, completed 28 Nov 2022, 12:11:48

Note that the CI passes the tests on Java 17 in #16412.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant