After some work had been done on fixing GitHub issues, I decided to give this build another go - the previous error was to do with leveldb. I am not making it as far this time with the make (55% instead of 73%) but it is a different error now. Here is my current README file for this exercise:
git clone git@github.com:maidsafe/MaidSafe
git -C MaidSafe submodule update --init
vim ./MaidSafe/cmake_modules/add_boost.cmake
Change:
find_library(Icui18nLib libicui18n.a)
find_library(IcuucLib libicuuc.a)
find_library(IcudataLib libicudata.a)
to:
.so
cmake -HMaidSafe -Bbuild_maidsafe -DCMAKE_BUILD_TYPE=Debug
cmake.sh # Removes “toolset=gcc-4.8;” from cmake files
cd build_maidsafe
make
and the error I get now is:
[ 55%] Building CXX object src/third_party_libs/sqlite/CMakeFiles/sqlite_test.dir/src/sqlite_test.cc.o
/home/phil/src/c++/MaidSafe/src/third_party_libs/sqlite/src/sqlite_test.cc:27:35: fatal error: maidsafe/common/error.h: No such file or directory #include “maidsafe/common/error.h”
^
compilation terminated.
make[2]: *** [src/third_party_libs/sqlite/CMakeFiles/sqlite_test.dir/src/sqlite_test.cc.o] Error 1
make[1]: *** [src/third_party_libs/sqlite/CMakeFiles/sqlite_test.dir/all] Error 2
make: *** [all] Error 2
I have the sqlite and sqlite-devel RPMs installed.
We will get a fedora machine added to CI hopefully this week (every platform we add moves launch further away, but it is the cost of trying to support everyone). That will be way faster than trying to talk though it remotely, changing the .a file to .so will definitely cause issue though. These links tell you how to install static versions of icu
The reason we have icu static issues if because gcc less than 4.9 had a buggy regex, that is fixed now so we could up the minimum requirement to gcc 4.9 (clang and msvc are ok) but folks will get annoyed at that to (the joys of software leading edge). This is all due to c++11 and now c++14 (which fixes many c++11 shortfalls), but the cost is well well worth it as the code is significantly simpler and generally much faster.
It looks like 4.9 is available in Rawhide and F21 - which is what I would be building the new machine with anyway in a month or two. However, if you are going to do your own Fedora machine I might wait again to see how you go!
I’d be fine with F21 as a minimum system - it doesn’t look like there are a lot of other Fedora people here at the moment anyway but I think it is important that Fedora is supported properly in the future of course. In fact if you mandated a minimum of F21, I would probably not wait for my new hardware but update my existing system now - the F21 final release is in a week or so.
I updated to Fedora 21 on my current server this morning (includes gcc 4.9.2) but am getting exactly the same problems as before . . so it looks like I wait for you to get your server going . .
We just removed libicu dependent parts of the code and going through Qa right now. That should make new targets much easier as libicu is a complete PITA but very powerful as well.
You can track that task here > Log in with Atlassian account
I also have on my list to add a Fedora box into our CI - I shall update this thread with progress
I have played around a little with Docker containers in the past and I have been watching the Project Atomic stuff on the lists. I will have to try it out soon when I get some time - let me know how you go if you start trying it out.
I see the status is “QA REVIEW” - I had a look at the flow diagram too. It is a bit hard for me to tell from that what the likely ETA of that bit of work being completed is - it doesn’t look like a lot but looks can be deceptive of course.
Hi yes I made the changes and have submit them in 3 Pull Requests (you can see these in JIRA) - Ben already pushed them back to me as you can see I have updated them and pushed them back to QA - It will be on Ben’s list to QA again. Sorry I can’t commit to an ETA - this task is competing with many, many others on our to-do list.
If you are comfortable applying the Pull Requests feel free to test them out and feed back your findings all help is welcome.
@philip_rhoades firstly very sorry for the slow response on this one, it is on the list but keeps getting bumped down
I made some time today to set-up a Fedora 20 CI machine, mostly thanks to tips I gleened from your posts on this forum.
GCC kicks out some build errors > http://dash.maidsafe.net/viewBuildError.php?buildid=93018 - which will require further investigation - when time permits, however using Clang looks a lot better > http://dash.maidsafe.net/viewTest.php?onlypassed&buildid=93020 and I am currently doing a full build and running all the tests - it has built everything and is still running the tests which will take a few hours to complete - it will post the results to the dashboard when complete.
I am not sure if you have tried clang and had any sucess?
I shall add this box into our Jenkins pool and include it in our CI runs.
Excellent news! I am in the middle of moving house at the moment but as soon as I settle in I will be onto this and trying to reproduce this positive result.
to get past the same errors as before with these libs.
There are lots of tests in the resultant dir - I ran lots of them individually (there was one core dump) but is there a script somewhere that will systematically run all the tests? - I couldn’t see one . .