Make: *** [ExperCommon] Error 2 #234

Hello. I want to start my Local_Network_Controller in order to test the network but I have no idea if I’m doing something wrong or not.

In the last step of “Building Instructions” I got 3 error messages (terminal and dashboard sides)

  1. TERMINAL SIDE

stupidcache@stupidcache ~/MaidSafe/build_maidsafe $ make ExperCommon
Run dashboard with model Experimental
Source directory: /home/stupidcache/MaidSafe
Build directory: /home/stupidcache/MaidSafe/build_maidsafe
Track: Experimental
Reading ctest configuration file: /home/stupidcache/MaidSafe/CTestConfig.cmake
Site: stupidcache
Build name: Common Debug Linux, GNU 4.8.2
Use Experimental tag: 20150423-1820
Submit files (using http)
Send to track: Experimental
Using HTTP submit method
Drop site:http://dash.maidsafe.net/submit.php?project=MaidSafe
Uploaded: /home/stupidcache/MaidSafe/Project.xml
Submission successful
Configure project
Each . represents 1024 bytes of output
… Size of output: 3K
Error(s) when configuring the project
Submit files (using http)
Send to track: Experimental
Using HTTP submit method
Drop site:http://dash.maidsafe.net/submit.php?project=MaidSafe
Uploaded: /home/stupidcache/MaidSafe/build_maidsafe/Testing/20150423-1820/Configure.xml
Submission successful
Error in read script: /home/stupidcache/MaidSafe/build_maidsafe/src/common/run_experimental_Debug.cmake
make[3]: *** [src/common/CMakeFiles/ExperCommon] Error 255
make[2]: *** [src/common/CMakeFiles/ExperCommon.dir/all] Error 2
make[1]: *** [src/common/CMakeFiles/ExperCommon.dir/rule] Error 2
make: *** [ExperCommon] Error 2

  1. AT SIDEBOARD
    http://dash.maidsafe.net/viewConfigure.php?buildid=113707

  2. make local_network_controller (Terminal)

~/MaidSafe/build_maidsafe $ make local_network_controller
– Build type set to Debug
– This system is called Linux.
– ccache not found - consider using ccache to speed up recompilation.
– Undefined behaviour sanitiser not available in this compiler.
– BOOTSTRAP not set.

Configuring third party projects on ‘next’ of super-project at commit ‘a414bb8’

================================================================================
Configuring MaidSafe Common project on ‘HEAD’ at commit ‘a4d74e4’

– GTests included: All. 321 Google test(s) enabled.

Configuring MaidSafe Passport project on ‘HEAD’ at commit ‘245c556’

– GTests included: All. 36 Google test(s) enabled.

Configuring MaidSafe Crux project on ‘HEAD’ at commit ‘240acca’

– GTests included: All. 0 Google test(s) enabled.

Configuring MaidSafe Routing project on ‘HEAD’ at commit ‘4a7e261’

– GTests included: All. 28 Google test(s) enabled.

Configuring MaidSafe Encrypt project on ‘HEAD’ at commit ‘79186bf’

– GTests included: All. 121 Google test(s) enabled.

Configuring MaidSafe Vault project on ‘HEAD’ at commit ‘9168134’

– GTests included: All. 15 Google test(s) enabled.

Configuring MaidSafe VaultManager project on ‘HEAD’ at commit ‘005b26a’

– GTests included: All. 4 Google test(s) enabled.

Configuring MaidSafe Api project on ‘next’ at commit ‘cccb95d’

– GTests included: All. 2 Google test(s) enabled.

Configuring MaidSafe Launcher project on ‘HEAD’ at commit ‘02288b2’

– GTests included: All. 14 Google test(s) enabled.
– Didn’t find all required modules of Qt5. Not building Launcher UI.

– To see values of cached CMake variables, run ‘cmake . -N -LH’
– Installers unavailable with Debug configuration
– Configuring done
CMake Error at cmake_modules/add_protoc_command.cmake:108 (add_custom_command):
Error evaluating generator expression:

$<TARGET_FILE:protoc>

No target "protoc"
Call Stack (most recent call first):
cmake_modules/utils.cmake:131 (ms_add_protoc_command)
src/encrypt/CMakeLists.txt:42 (ms_glob_dir)

– Generating done
– Build files have been written to: /home/stupidcache/MaidSafe/build_maidsafe
make: *** [cmake_check_build_system] Error 1

1 Like

I’m not sure if you have built ‘next’ seeing those messages about ‘HEAD’. Can you tell me what operating system you are running on and the commands you used to build?

Alternatively, delete your build directory and try…

cd ~/MaidSafe
git submodule update --init

That puts you on ‘master’ so update to ‘next’:

git submodule foreach "git checkout next; git pull"
git checkout next; git pull
cd ..
cmake -HMaidSafe -Bbuild_maidsafe

Or

cmake -HMaidSafe -Bbuild_maidsafe -DQT_BIN_DIR=/opt/Qt5.4.0/5.4/gcc_64/bin

and

cd build_maidsafe
make

I’ve built on Linux (debian) with this in the last week and followed up with make ExperCommon without problems so maybe you did something different?

1 Like

Thanks for reply.
My SO is Linux Mint 17 - 32bits with XFCE Desktop (under VirtualBox)

When I put that commands I got this:

stupidcache@stupidcache ~/MaidSafe git submodule update --init Submodule path 'src/api': checked out '974ee2c5e88ef161147fbe42a688fdbc2ecba0bb' Submodule path 'src/common': checked out 'a4d74e4e00f9fa0785fbb2dada12b297fc5dfd7a' Submodule path 'src/crux': checked out '240acca2dd8dd106140a6e8e5e12d457c53ad641' stupidcache@stupidcache ~/MaidSafe git submodule foreach "git checkout next; git pull"
Entering 'src/api’
Previous HEAD position was 974ee2c… Merge pull request #13 from Fraser999/MAID-492
Switched to branch 'next’
Your branch is up-to-date with ‘origin/next’.
Enter passphrase for key ‘/home/stupidcache/.ssh/id_rsa’:
Already up-to-date.
Entering 'src/common’
Previous HEAD position was a4d74e4… Merge branch ‘routing_v2’ into next
Switched to branch 'next’
Your branch is up-to-date with ‘origin/next’.
Enter passphrase for key ‘/home/stupidcache/.ssh/id_rsa’:
Already up-to-date.
Entering 'src/crux’
Previous HEAD position was 240acca… Merge pull request #36 from inetic/MAID-872-missing-optional
Switched to branch 'next’
Your branch is up-to-date with ‘origin/next’.
Enter passphrase for key ‘/home/stupidcache/.ssh/id_rsa’:

I can’t tell from this if you are on ‘next’ everywhere, but see someone else posted this issue on github so unless they are also not on ‘next’ it looks like something else. One of the devs will respond on github I expect.

If you want to pursue this I think you need to set up your github key to avoid having to enter your passphrase for every module.

I’m not an expert, but something like:

eval $(ssh-agent -s)
ssh-add

did the trick for me. There is help info about this on github, stackexchange etc if it doesn’t work. Then you could try what I posted without having to input your password a zillion times.

I built today on Linux Mint 17 in VirtualBox :grinning:

Use dirvine rather than Maidsafe until they refresh it.

So I used something like this below, the key difference being the source.

git clone git@github.com:dirvine/MaidSafe
git checkout next
git submodule update --init --recursive
cmake -HMaidSafe -Bbuild_maidsafe -DCMAKE_BUILD_TYPE=Debug
cmake .

I’m not sure what you’re building using github.com:dirvine because I think that’s where they’re doing the Rust port at the moment! :slight_smile:

Yeah… I’m not sure but the dates on files there looked worth trying; and it was encouraging to see the example run where I hadn’t been able to compile it before.

1 Like

I’m having the same trouble on Mint (14.04), errors as follows:

Submission successful
Error in read script: /home/chris/build_maidsafe/src/common/run_experimental_Debug.cmake
make[3]: *** [src/common/CMakeFiles/ExperCommon] Error 255
make[2]: *** [src/common/CMakeFiles/ExperCommon.dir/all] Error 2
make[1]: *** [src/common/CMakeFiles/ExperCommon.dir/rule] Error 2
make: *** [ExperCommon] Error 2
chris@GeorgeWashington ~/build_maidsafe $

I’d like to know when a fix will be in place. I’m looking forward to learning how all this works & getting my box up & running.

-Thanks

I noticed I had a very small amount of disk space available the last time I tried this- when I posted earlier. So I added 40G more to the VM & tried again. Same error at the same place.

Hungry for a solution, anyone?

Tried again today on Ubuntu Server 14.04 (headless), & get the same error. Following build instructions here:

The error I get is the same:
make ExperCommon
Run dashboard with model Experimental
Source directory: /home/chris/MaidSafe
Build directory: /home/chris/build_maidsafe
Track: Experimental
Reading ctest configuration file: /home/chris/MaidSafe/CTestConfig.cmake
Site: Triborough
Build name: Common Debug Linux, GNU 4.8.2
Use Experimental tag: 20150604-1727
Submit files (using http)
Send to track: Experimental
Using HTTP submit method
Drop site:http://dash.maidsafe.net/submit.php?project=MaidSafe
Uploaded: /home/chris/MaidSafe/Project.xml
Submission successful
Configure project
Each . represents 1024 bytes of output
… Size of output: 3K
Error(s) when configuring the project
Submit files (using http)
Send to track: Experimental
Using HTTP submit method
Drop site:http://dash.maidsafe.net/submit.php?project=MaidSafe
Uploaded: /home/chris/build_maidsafe/Testing/20150604-1727/Configure.xml
Submission successful
Error in read script: /home/chris/build_maidsafe/src/common/run_experimental_Debug.cmake
make[3]: *** [src/common/CMakeFiles/ExperCommon] Error 255
make[2]: *** [src/common/CMakeFiles/ExperCommon.dir/all] Error 2
make[1]: *** [src/common/CMakeFiles/ExperCommon.dir/rule] Error 2
make: *** [ExperCommon] Error 2

Apparently the build instructions are wrong, since they don’t produce anything useful. Could someone go over them & update as necessary? Or at least provide a solution in this here thread?

Thanks.

EDIT:
BTW, I tried the first time with 2048GB RAM, & the second time with 4096GB RAM, third time with 8192GB. No change with the increased memory.

Same error if I replace this command:
cmake -H/home/chris/MaidSafe -Bbuild_maidsafe -DCMAKE_BUILD_TYPE=Debug

with this one:
cmake -H/home/chris/MaidSafe -Bbuild_maidsafe

Losing hope quickly. This thread doesn’t appear to get much attention, & I need a solution. Maybe this bump will result in someone providing a fix.

Found this:

The issue on github, provides an alternate set of build instructions.

So far so good at 67%. Taking awhile since it only has 2GB memory.

This helped- built successfully.

To recap here the entire set of commands which resulted in a successful build, here’s what I did:

git clone git@github.com:maidsafe/MaidSafe
cd ~/MaidSafe
git submodule update --init
git submodule foreach "git checkout next; git pull"
git checkout next; git pull
cd …
cmake -HMaidSafe -Bbuild_maidsafe
cd ~/build_maidsafe
make

1 Like

You are building the old C++ project here. The code is halfway all ported to rust, so see the individual modules under github.com/maidsafe as per my reply on your “Client built, what next?” topic.

1 Like