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
scalac fails to compile its library when source files were reordered #7335
Comments
Imported From: https://issues.scala-lang.org/browse/SI-7335?orig=1
|
@lrytz said: |
@retronym said:
|
@lrytz said: |
@retronym said (edited on Apr 6, 2013 9:31:08 PM UTC):
|
@retronym said: I had thought that adding |
@retronym said: Assigning this ticket to myself, now i can see what's happening here. |
@retronym said: |
Scalac depends on order of given source files when compiling scala library. The build fails, if the sources are unordered but succeeds when sorted before.
scalac is the current "starr" compiler. Its Bundle-Version is "2.11.0-20121228-195556-b7840d6b41".
I found this issue, while doing some experiments of building scala with SBuild, a Scala based buildsystem (http://sbuild.tototec.de) instead of SABBUS (ant). I first used a version, were the source files are collected from the filesystem and are feeded to the compiler as-is (see attachment "scalac-args-unsorted"). I got the following error:
Then, I sorted the source files alphabetically (see attachment "scalac-args-sorted"), and the error vanished.
Note, that I can not produce the same issue with SABBUS, as it always collects the source files alphabetically sorted.
The text was updated successfully, but these errors were encountered: