Skip to content

find: command not found on openjdk-oraclelinux8 #11989

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
francisdb opened this issue Apr 5, 2021 · 3 comments · Fixed by #12167
Closed

find: command not found on openjdk-oraclelinux8 #11989

francisdb opened this issue Apr 5, 2021 · 3 comments · Fixed by #12167

Comments

@francisdb
Copy link

francisdb commented Apr 5, 2021

I was setting up the scala 3.0.0-RC2 docker build at https://github.com/hseeberger/scala-sbt but the oraclelinux jdk build fails

Compiler version

3.0.0-RC2

Minimized code

docker image openjdk:11.0.10-jdk-oraclelinux8

@main def main = println(util.Properties.versionMsg)

Output

scala test.scala && rm test.scala
#6 4.980 /usr/share/scala/bin/common: line 136: find: command not found
#6 4.982 /usr/share/scala/bin/common: line 136: find: command not found
#6 4.984 /usr/share/scala/bin/common: line 136: find: command not found
#6 4.987 /usr/share/scala/bin/common: line 136: find: command not found
#6 4.989 /usr/share/scala/bin/common: line 136: find: command not found
#6 4.992 /usr/share/scala/bin/common: line 136: find: command not found
#6 4.994 /usr/share/scala/bin/common: line 136: find: command not found
#6 4.997 /usr/share/scala/bin/common: line 136: find: command not found
#6 4.999 /usr/share/scala/bin/common: line 136: find: command not found
#6 5.002 /usr/share/scala/bin/common: line 136: find: command not found
#6 5.004 /usr/share/scala/bin/common: line 136: find: command not found
#6 5.007 /usr/share/scala/bin/common: line 136: find: command not found
#6 5.010 /usr/share/scala/bin/common: line 136: find: command not found
#6 5.032 /usr/share/scala/bin/common: line 136: find: command not found
#6 5.034 /usr/share/scala/bin/common: line 136: find: command not found
#6 5.037 /usr/share/scala/bin/common: line 136: find: command not found
#6 5.041 /usr/share/scala/bin/common: line 136: find: command not found
#6 5.044 /usr/share/scala/bin/common: line 136: find: command not found
#6 5.047 /usr/share/scala/bin/common: line 136: find: command not found
#6 5.049 /usr/share/scala/bin/common: line 136: find: command not found
#6 5.052 /usr/share/scala/bin/common: line 136: find: command not found
#6 5.056 /usr/share/scala/bin/common: line 136: find: command not found
#6 5.058 /usr/share/scala/bin/common: line 136: find: command not found
#6 5.061 /usr/share/scala/bin/common: line 136: find: command not found
#6 5.063 /usr/share/scala/bin/common: line 136: find: command not found
#6 5.065 /usr/share/scala/bin/common: line 136: find: command not found
#6 5.352 Error: Could not find or load main class dotty.tools.scripting.Main
#6 5.352 Caused by: java.lang.ClassNotFoundException: dotty.tools.scripting.Main

Expectation

The scala command works as expected like on debian / graalvm docker images or with Scala 2.x

Reproducer in docker build

  1. check out master on https://github.com/hseeberger/scala-sbt
  2. cd oracle
  3. edit Dockerfile to mach line below
    ENV SCALA_VERSION ${SCALA_VERSION:-3.0.0-RC2}
  4. remove section that installs findutils
  5. docker build .
@francisdb
Copy link
Author

feel free to close this issue if find is considered a dependency from 3.x on

@francisdb francisdb changed the title find: command not found on oraclelinux find: command not found on jdk-oraclelinux8 Apr 5, 2021
@francisdb francisdb changed the title find: command not found on jdk-oraclelinux8 find: command not found on openjdk-oraclelinux8 Apr 5, 2021
liufengyun added a commit to dotty-staging/dotty that referenced this issue Apr 21, 2021
liufengyun added a commit to dotty-staging/dotty that referenced this issue Apr 26, 2021
liufengyun added a commit to dotty-staging/dotty that referenced this issue Apr 27, 2021
liufengyun added a commit that referenced this issue Apr 28, 2021
francisdb added a commit to francisdb/scala-sbt that referenced this issue Apr 28, 2021
francisdb added a commit to francisdb/scala-sbt that referenced this issue May 14, 2021
@francisdb
Copy link
Author

@liufengyun I guess this will be for scala 3.0.1 as 3.0.0 still depends on find?

francisdb added a commit to sbt/docker-sbt that referenced this issue May 14, 2021
looks like findutils is still required for scala 3.0.0 final
see scala/scala3#11989
@liufengyun
Copy link
Contributor

Yes, it will come in 3.0.1.

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.

3 participants