-
Notifications
You must be signed in to change notification settings - Fork 13
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
Compilation error #89
Comments
The frontend binary is missing. First, pull the latest version from this repository. There are two options to fix this problem:
|
Thanks it worked.. |
It can be done by passing
|
Thanks for your reply. |
@idrismike Here is the repo for the DBToaster frontend: https://github.com/dbtoaster/dbtoaster-a5 |
@mdashti thank you. |
@idrismike Here is the dbtoaster-backend/storelib/src/lib/store/SEntry.scala Lines 6 to 40 in a7708cc
The generated Scala code by the DBToaster frontend is only used for testing purposes. Please use the DBToaster backend (i.e., this repo) to generate Scala/C++ code. As a side note, you also need to enable optimizations to get the code with the highest performance. You can do that by using |
@mdashti all working fine... But here is the problem. The Second code (by using backend) generated empty result. BUT, when i avoid the "execute" method and manually call "OnAddR" and "OnAddS" methods, i get the following output by manually printing the "COUNT" using the foreach as follows: Output: (I can not understand how this output is). this is the output from the code generated using backend generated code pasted below (end of the comment). The result of COUNT in this case when printed is not understandable (or not explained). could you please help in that. object RS { def execute(args: Array[String], f: List[Any] => Unit) = def main(args: Array[String]) { } val x157 = Array[EntryIdx[GenericEntry]](EntryIdx.genericOps(List(1, 2, 3, 4))) def onAddR(r_a:Int, r_b:Int) {
}
}
}
}
} } class RS extends RSBase with Actor { var t0 = 0L; var t1 = 0L; var tN = 0L; var tS = 0L def receive_skip: Receive = { def receive = {
} |
@sachinbjohn Can you have a look at this? |
The output is printing each As for why the generated code returned an empty result, I do not know. I ran the same query on an earlier version of this project and I got results. I am attaching the generated code here, and I do see some differences with your code, although I'm not the right person to comment which of these changes resulted in the empty result |
Here is the problem. |
The support for Int (and some other types) was added recently, nevertheless generated Scala code using Ints should produce correct results. My guess the problem here is that your Scala code is linked with jar files from the binary release, which includes an older version of the backend without the Int type. Few comments on the above discussion:
|
While trying to generate the "release" myself, all works fine, but at the end of compilation, it fails because it can not find the file "readme" in dbtoaster-a5/../../website/Readme. See below the error "i am only pasting the last lines only showing the error" |
@mdashti While compiling Scala LMS code, the dependency on EPFL#lms_2.11;0.3-SNAPSHOT: not found |
@idrismike I am not an expert on DBToaster, but
|
java version "1.8.0_101", scala version 2.11.7, Ubuntu 14.04
I am trying to compile the backend as per the readme file. but i get the following error.
Steps i did:
a. cloned the repository "dbtoaster-backend"
b. cloned the "frontend" repository
c. copied the "bin/dbtoaster-frontend" and "examples/{queries,data}" to the backend repository
d. Ran the command
$sbt 'toast -l cpp examples/queries/simple/r_count.sql'
And i get the following error.
[info] Running ddbt.Compiler -l cpp examples/queries/simple/r_count.sql'
[error] java.io.IOException: Cannot run program "/home/xyz/dbtoaster/bin/dbtoaster_release" (in directory "/home/xyz/dbtoaster"): error=2, No such file or directory
[error] at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
[error] at java.lang.Runtime.exec(Runtime.java:620)
[error] at ddbt.lib.Utils$.exec(Utils.scala:326)
[error] at ddbt.Compiler$.toast(Compiler.scala:335)
[error] at ddbt.Compiler$.toast(Compiler.scala:356)
[error] at ddbt.Compiler$.main(Compiler.scala:597)
[error] at ddbt.Compiler.main(Compiler.scala)
[error] Caused by: java.io.IOException: error=2, No such file or directory
[error] at java.lang.UNIXProcess.forkAndExec(Native Method)
[error] at java.lang.UNIXProcess.(UNIXProcess.java:248)
[error] at java.lang.ProcessImpl.start(ProcessImpl.java:134)
[error] at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
[error] ... 6 more
[error]
The error is the release and the dbtoaster directories are not the same.
The text was updated successfully, but these errors were encountered: