Skip to content

Fix openjdk6 on Travis #271

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

Merged
merged 2 commits into from
Jan 25, 2019
Merged

Conversation

ashawley
Copy link
Member

@ashawley ashawley commented Jan 24, 2019

Building on OpenJDK6 is broken again. Previous episode is #247.

The build started failing:

$ ~/bin/install-jdk.sh --target "/home/travis/openjdk6" --workspace "/home/travis/.cache/install-jdk" --feature "6" --license "GPL" --cacerts
install-jdk.sh 2019-01-18 II
Expected feature release number in range of 9 to 13, but got: 6
The command "~/bin/install-jdk.sh --target "/home/travis/openjdk6" --workspace "/home/travis/.cache/install-jdk" --feature "6" --license "GPL" --cacerts" failed and exited with 3 during .

Downgrading from Trusty back to Precise gives:

$ admin/build.sh
Downloading sbt launcher for 0.13.17:
  From  http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.17/sbt-launch.jar
    To  /home/travis/.sbt/launchers/0.13.17/sbt-launch.jar
*** buffer overflow detected ***: java terminated

This can be fixed with a hostname setting.

@ashawley
Copy link
Member Author

The Java builds work, but the Scala.js builds are suddenly broken. I have no idea why.

[info] Fast optimizing /home/travis/build/scala/scala-xml/js/target/scala-2.12/scala-xml-test-fastopt.js
[stdin]:46
  var inBuffer = Buffer.alloc(0);
...
TypeError: Object Buffer has no method 'alloc'
    at [stdin]:46:25
    at [stdin]:112:4
    at Object.<anonymous> ([stdin]-wrapper:6:22)
    at Module._compile (module.js:456:26)
    at evalScript (node.js:559:25)
    at Socket.<anonymous> (node.js:154:11)
    at Socket.emit (events.js:117:20)
    at _stream_readable.js:944:16
    at process._tickCallback (node.js:442:13)
org.scalajs.jsenv.ExternalJSEnv$NonZeroExitException: Node.js exited with code 8

@ashawley ashawley mentioned this pull request Jan 24, 2019
@SethTisue
Copy link
Member

looks to me like the version of Node being used is too old

@ashawley
Copy link
Member Author

Ok, let me see if I can set the node version on Precise.

@ashawley
Copy link
Member Author

Looks like setting Node to version 8 worked.

@SethTisue
Copy link
Member

SethTisue commented Jan 31, 2019

note to self or anyone using this a reference guide: also needed is https://github.com/scala/scala-xml/blob/master/.sbtrepos and -Dsbt.override.build.repos=true -Dsbt.repository.config=./.sbtrepos

@ashawley
Copy link
Member Author

Indeed, this is a two part episode. The first episode was #247.

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

Successfully merging this pull request may close these issues.

2 participants