leda micro framework#887
Conversation
|
Is this all that is needed to add framework to tests? |
|
Thanks, I have updated the pull request. |
leda/instasll.sh
Outdated
There was a problem hiding this comment.
leda is the same concept as node.js and node.js is in languages directory. following that logic node.js should be in the frameworks directory. i will rename the file and move it
There was a problem hiding this comment.
The file should be in toolset/setup/linux/frameworks/leda.sh, not languages. Please keep the install.sh file consistent with the rest of the frameworks.
|
Does it look good now? |
leda/app.lua
Outdated
There was a problem hiding this comment.
Isn't there else clause in Lua ?
There is no need to check for /plaintext in the url if /json has been processed earlier.
leda/app.lua
Outdated
There was a problem hiding this comment.
another (minor) optimization is to cache the url and not call request:url() twice in the function body
if it is simple getter then it is really minor thingy, but if there is some logic involved then the caching would help
There was a problem hiding this comment.
thanks, I have added that as well.
|
That doesn't appear to have worked @hamiltont mentioned he may be able to help out later. He's the one that engineered the entire setup process. |
|
So it is failing because it does not build libevent before the code that depends on it. Looks like building is split between child processes and synchronization fails, since libevent has to be built explicitly first. Is there a way to synchronize targets when building? in that case libevent has to built before the lib propeller target And there is this warning: |
|
Are you saying that running Some other advice - before you finish this, could you please see the "guidelines" section of https://github.com/TechEmpower/FrameworkBenchmarks/tree/master/toolset/setup/linux for items 3 and 4, you are currently violating both of those. Also, please use fw_untar instead of tar xvf, so that we can later update everything by just updating fw_tar if we want to |
|
Or perhaps you need to prefix your configure/make with |
|
The makefile line that is failing looks like this: Linking libevent dynamically is not the option unfortunately since I am using version more recent than in distribution I have made the changes you suggested |
|
I believe we use cmake. Look in prerequisites.sh to double check |
|
Do you have charge of the makefile? If so, I'd recommend against turning
|
|
Eg if there is a dependency, that should be outlined in the makefile. If
|
|
The thing is that I do specify dependency it GNU make that is not honoring it and starts building all targets in parallel. So the only option is to disable parallel build. That will slow down the build process but will result in correct order that is the only choice I see, I have updated the source |
|
I wish make had better controls for target dependency management during parallel builds.. |
|
Perhaps I'm confused (on mobile, cant easily see your updates) but you This is declaring a dependency, nothing else. AFAIK, the order of the items This has nothing to do with parallel or not parallel. Even worse than |
|
no, it is exactly the issue that libevent target is being built in parallel with others, i have reproduced the same error when invoking make with parallel flag the example you gave does not work.. OBJECTS is macro that resolves to a list, it is not a single file the build is slower but results in the correct executable What options do we have here? All other targets in the build can be built concurrently, but make gives all or nothing |
|
The above was just pseudocode. You've updated your makefiles a lot recently so it took a bit to track this down. As you already spotted, the issue is in the libpropeller Makefile. To 100% ensure that libevent is built before any of the object files are constructed, just declare it as a dependency: Into this: Also, please change back to so make can pass through all flags (including -j). Now you should be able to build with |
|
PS - nice job updating based on the guidelines so far. You will want to also change |
|
that will not work either.. through includes the missing file gets included in the main leda target as header. It is not just lib propeller but everything that uses lib propeller as well the main issue is in event2/event-config.h file that gets generated during libevent build process and everything depends on it, thats why it has to very first target built (there is also leda source that depends on this file as well) Ideally that file should be generated in configure stage. I will see if I can update that I have updated the bash script |
|
I can just move libevent build to configure.. that will not be the cleanest way but will solve all issues |
|
If you would like to join me on IRC, we can fix up your Makefiles. I'm 95% sure this can be resolved perfectly normally inside a makefile. After all, they predominantly exist to declare dependencies! http://webchat.freenode.net/?channels=techempower-fwbm for the channel location |
|
I have moved libevent build to configure and that should solve all issues, make -j will work normally Thanks for help |
|
Sounds good! |
leda micro framework
|
Thanks for all your effort for trying to merge the PR @hamiltont and @sergeyzavadski |
Please accept the basic test support for leda framework (https://github.com/sergeyzavadski/leda)