-
Notifications
You must be signed in to change notification settings - Fork 108
soletta building from source fails #408
Comments
try with a newer GCC - __ATOMIC was introduced with gcc 4.7 |
My bet is that soletta should require gcc>=4.7. |
Also, it should require python>=3.4. |
It could be good to complement the Installation Required Packages along with its version in the README file in order to build Soletta from source. |
' ./src/lib/flow/sol-flow-js.c:36:21: fatal error: duktape.h: No such file or directory
|
dukttape is a library that's cloned inside the soletta repository via a git submodule, it seems that it failed downloading it. |
I did the git clean command that you suggested but I got the same compilation output: ./src/lib/flow/sol-flow-js.c:36:21: fatal error: duktape.h: No such file or directory |
duktape is a javascript vm that is distributed as a pair of .c and .h files, meant to be built as part of the project. Due to several reasons, Soletta is fetching this pair of files as a git submodule (in fact, it is not an actual submodule). git clean is not enough, more steps are needed to overcome this invalid state of the tree, we're investigating this. |
I would like to add that I also had big trouble building Soletta, while Elliot didn't - the difference seems to be that I use Ubuntu and he uses Fedora. The issues I came across seemed to be missing Python modules, which I found relatively simply using 'apt-cache search' and installed using 'apt-get install'. It would be nice if these dependencies were obtained automatically, or at least mentioned in the README. |
+1 to mention in the README.md OTOH, should we add more fields to dependencies.json and print more useful information to the user when a test fail? Like a description that says why such test is being done ("description": "Checks for built in compiler support of integer overflow"), if it fails what to say ("on_failure": "using fallback overflow checks -- may not be as fast, GCC 4.8 supports it"). The dependencies resolver should also have a way to print the test that failed. Maybe linked with "make V=1" to pass a --verbose. For pkg-config it would print the exact command line and execution envvars, with all output from pkg-config. For ccode it should also print the full test source and the compiler errors, as well as command line and envvars. This is what autoconf's config.log was. We may generate such file as well if we wish. More work for @dorileo |
We're populating this wiki page with the build requirements. Let's add to README.md a link to this page. |
ping. Is this still pending? |
So, all issues pointed out here were covered. Closing, tks. |
' ./src/lib/common/sol-worker-thread-impl-glib.c:54:45: error: ‘__ATOMIC_SEQ_CST’ undeclared (first use in this function) '
The text was updated successfully, but these errors were encountered: