Skip to content
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

build stuck with the same warning repeated again and again #3

Open
Aqsa-physics opened this issue Aug 5, 2020 · 17 comments
Open

build stuck with the same warning repeated again and again #3

Aqsa-physics opened this issue Aug 5, 2020 · 17 comments

Comments

@Aqsa-physics
Copy link

I am building gambit without Mathematica and at the last step of

make -jn gambit

I am getting the following warning over and over again and the build process is not proceeding forward. This is the warning I am getting regarding flexiblesusy:

In file included from /usr/include/c++/7/cassert:44:0, from src/gsl_utils.hpp:26, from src/root_finder.hpp:33, from src/standard_model.cpp:33: src/gsl_utils.hpp: In instantiation of ‘void flexiblesusy::copy(const Eigen::DenseBase<Derived>&, gsl_vector*) [with Derived = Eigen::Matrix<double, 1, 1, 0, 1, 1>]’: src/root_finder.hpp:223:8: required from ‘static int flexiblesusy::Root_finder<dimension>::gsl_function(const gsl_vector*, void*, gsl_vector*) [with long unsigned int dimension = 1]’ src/root_finder.hpp:139:27: required from ‘int flexiblesusy::Root_finder<dimension>::find_root(const Vector_t&) [with long unsigned int dimension = 1; flexiblesusy::Root_finder<dimension>::Vector_t = Eigen::Matrix<double, 1, 1, 0, 1, 1>]’ src/root_finder.hpp:263:21: required from ‘int flexiblesusy::Root_finder<dimension>::solve(const VectorXd&) [with long unsigned int dimension = 1; Eigen::VectorXd = Eigen::Matrix<double, -1, 1>]’ src/standard_model.cpp:4593:1: required from here src/gsl_utils.hpp:97:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert(dim == dst->size);
This is where my build is stuck with the same above warning repeated over and over.

Any help will be useful. Thank you.

@pathron
Copy link
Contributor

pathron commented Aug 5, 2020

The problem is the build is not making progress or taking too long? FlexibleSUSY can take some time to build and there has been specific problems with some compilers where that was much worse.

Which FlexibleSUSY models are you building with ? When you wrote make -jn gambit what number did you use for n?

@Aqsa-physics
Copy link
Author

Yes, I had faced similar problem while installing GEANT4. build was taking a lot of time. (it was few years back so I kind of forgot how I solved it)
In here, I started with j4,
I got the following error in Generating modules_harvested

Updated Elements/include/gambit/Elements/module_types_rollcall.hpp Harvesting types from headers... libtool: error: require no space between '-L' and '-o' Makefile:579: recipe for target 'libRestFrames.la' failed make[6]: *** [libRestFrames.la] Error 1 Makefile:508: recipe for target 'all' failed make[5]: *** [all] Error 2 Makefile:539: recipe for target 'all-recursive' failed make[4]: *** [all-recursive] Error 1 CMakeFiles/restframes.dir/build.make:113: recipe for target 'restframes-prefix/src/restframes-stamp/restframes-build' failed make[3]: *** [restframes-prefix/src/restframes-stamp/restframes-build] Error 2 CMakeFiles/Makefile2:5339: recipe for target 'CMakeFiles/restframes.dir/all' failed make[2]: *** [CMakeFiles/restframes.dir/all] Error 2 make[2]: *** Waiting for unfinished jobs....

Later followed by the same reoccuring error

In file included from /usr/include/c++/7/cassert:44:0, from src/gsl_utils.hpp:26, from src/root_finder.hpp:33, from src/standard_model.cpp:33: src/gsl_utils.hpp: In instantiation of ‘void flexiblesusy::copy(const Eigen::DenseBase<Derived>&, gsl_vector*) [with Derived = Eigen::Matrix<double, 1, 1, 0, 1, 1>]’: src/root_finder.hpp:223:8: required from ‘static int flexiblesusy::Root_finder<dimension>::gsl_function(const gsl_vector*, void*, gsl_vector*) [with long unsigned int dimension = 1]’ src/root_finder.hpp:139:27: required from ‘int flexiblesusy::Root_finder<dimension>::find_root(const Vector_t&) [with long unsigned int dimension = 1; flexiblesusy::Root_finder<dimension>::Vector_t = Eigen::Matrix<double, 1, 1, 0, 1, 1>]’ src/root_finder.hpp:263:21: required from ‘int flexiblesusy::Root_finder<dimension>::solve(const VectorXd&) [with long unsigned int dimension = 1; Eigen::VectorXd = Eigen::Matrix<double, -1, 1>]’ src/standard_model.cpp:4593:1: required from here src/gsl_utils.hpp:97:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert(dim == dst->size);

These two errors pattern was repeated for j3 and j2 as well.

But for j1 I just got the later reocurring error. Generating modules_harvested step was completed without error.

@patscott
Copy link
Member

patscott commented Aug 5, 2020

Hi Aqsa -- can you try with the latest version (https://github.com/patscott/gambit_1.4) please? This version is not actually supported or updated any longer, and the issue may well be fixed in the latest one.

@Aqsa-physics
Copy link
Author

Hey Pat,
Thanks for suggesting me this really appreciate it. But unfortunately it is giving me the same warning and build got stuck there. How long does it usually take to build gambit?
Today I will try on another system that I have. Till now I was trying to install it on my ubuntu. I have a centOS as well maybe I can try there. Will keep posted here.
Thank you !

@Aqsa-physics
Copy link
Author

Aqsa-physics commented Aug 6, 2020

Hey @patscott , seems like I won't be able to access CentOS soon. I can only reach to it through remote access right now which is not working very smooth, unfortunately. I would have to stick to my ubuntu.
So as per your suggestion, I tried the latest version but the problem remains the same. Since there is no error coming up just repeated warning which stops my build I am unable to completely understand it to debug.
I hope there is some solution to it.
If you need any specifications from my system let me know.
Thank you.

@pathron
Copy link
Contributor

pathron commented Aug 6, 2020

The warning is something I have seen a lot before and as far as I recall depends on what eigen version you used, and is not normally a problem. I have not seen a case where FlexibleSUSY does not compiile and that warning is all you get, but I have seen cases where FlexibleSUSY is taking a long time to build.

Can you say how long it is actually taking?

Can you also say which FlexibleSUSY models you were trying to build if you know and just paste in the cmake command you used and the output from it? Telling us how much memory you have may also help, though that would lead to crashing and/or hanging for a long timeat the end, not repeated spewing of that warning.

@patscott
Copy link
Member

patscott commented Aug 6, 2020

I'm going to move this issue over to the 1.4 repo.

It should normally take 30 mins or so to build gambit with e.g. 4-8 cores. Probably 2 hr if you use only one core.

The warnings are not an issue, and can be ignored. You just have to wait for the build to complete in that case.

The first error is about RestFrames. You can try building without RestFrames by doing
cmake -DEXCLUDE_RESTFRAMES=True ..

@patscott patscott transferred this issue from GambitBSM/gambit_1.2 Aug 6, 2020
@Aqsa-physics
Copy link
Author

Aqsa-physics commented Aug 6, 2020

Yes Pat, thank you for pointing out this wait time. So, this time I started completely afresh and waited for 2+ hours and the FlexibleSUSY build step was completed without error. Next I am getting the error in the step for
Performing build step for 'restframes'

I am getting the following error

libtool: error: require no space between '-L' and '-o' Makefile:579: recipe for target 'libRestFrames.la' failed make[6]: *** [libRestFrames.la] Error 1 Makefile:508: recipe for target 'all' failed make[5]: *** [all] Error 2 Makefile:539: recipe for target 'all-recursive' failed make[4]: *** [all-recursive] Error 1 CMakeFiles/restframes.dir/build.make:113: recipe for target 'restframes-prefix/src/restframes-stamp/restframes-build' failed make[3]: *** [restframes-prefix/src/restframes-stamp/restframes-build] Error 2 CMakeFiles/Makefile2:5502: recipe for target 'CMakeFiles/restframes.dir/all' failed make[2]: *** [CMakeFiles/restframes.dir/all] Error 2 CMakeFiles/Makefile2:139: recipe for target 'CMakeFiles/gambit.dir/rule' failed make[1]: *** [CMakeFiles/gambit.dir/rule] Error 2 Makefile:131: recipe for target 'gambit' failed make: *** [gambit] Error 2

After extracting the zip file, I followed these steps suggested by you


  cd Desktop/gambit_1.4-release_1.4/
  mkdir build
  cd build
  cmake -DEXCLUDE_RESTFRAMES=True ..
  make -j2 scanners
  cmake -DEXCLUDE_RESTFRAMES=True ..
  make -j1 gambit

Let me know if you need some specifications from my system.

@patscott
Copy link
Member

patscott commented Aug 7, 2020

Sorry Aqsa, it should have been
cmake -DWITH_RESTFRAMES=False ..

@pathron
Copy link
Contributor

pathron commented Aug 11, 2020

@Aqsa-physics can you let us know if this worked, so we can close the issue if it did?

@Aqsa-physics
Copy link
Author

Extremely sorry for the delay. I'm working on it currently. I got caught up with my other work throughout the week. So starting today evening (Friday evening) I'll work towards it. And will make sure to update here within a day or two maximum.
Thank you for your constant follow up.

@Aqsa-physics
Copy link
Author

@patscott @pathron
even with the use of
cmake -DEXCLUDE_RESTFRAMES=False ..

I am getting the following error in the final make -j2 gambit step:

Cloning into '/home/aqsa/Desktop/gambit_1.4-release_1.4/contrib/RestFrames-1.0.2'...
remote: Enumerating objects: 8534, done.
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
CMakeFiles/restframes.dir/build.make:88: recipe for target 'restframes-prefix/src/restframes-stamp/restframes-download' failed
make[3]: *** [restframes-prefix/src/restframes-stamp/restframes-download] Error 128
CMakeFiles/Makefile2:5502: recipe for target 'CMakeFiles/restframes.dir/all' failed
make[2]: *** [CMakeFiles/restframes.dir/all] Error 2
CMakeFiles/Makefile2:139: recipe for target 'CMakeFiles/gambit.dir/rule' failed
make[1]: *** [CMakeFiles/gambit.dir/rule] Error 2
Makefile:131: recipe for target 'gambit' failed
make: *** [gambit] Error 2

@patscott
Copy link
Member

WITH_RESTFRAMES, not EXCLUDE_RESTFRAMES

@Aqsa-physics
Copy link
Author

Aqsa-physics commented Aug 20, 2020

Hey Patt,
I used the the following commands:

`cd Desktop/gambit_1.4-release_1.4/ 
mkdir build
cd build
cmake -DWITH_RESTFRAMES=False ..
make -j2 scanners
cmake -DWITH_RESTFRAMES=False ..
make -j1 gambit

everything went smooth until I got the following error:

[100%] Building CXX object CMakeFiles/gambit.dir/Core/src/gambit.cpp.o c++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions. CMakeFiles/gambit.dir/build.make:62: recipe for target 'CMakeFiles/gambit.dir/Core/src/gambit.cpp.o' failed make[3]: *** [CMakeFiles/gambit.dir/Core/src/gambit.cpp.o] Error 4 CMakeFiles/Makefile2:126: recipe for target 'CMakeFiles/gambit.dir/all' failed make[2]: *** [CMakeFiles/gambit.dir/all] Error 2 CMakeFiles/Makefile2:138: recipe for target 'CMakeFiles/gambit.dir/rule' failed make[1]: *** [CMakeFiles/gambit.dir/rule] Error 2 Makefile:131: recipe for target 'gambit' failed make: *** [gambit] Error 2

Seems like it is the error due to lack of memory. My RAM is 4GB according to https://github.com/kaldi-asr/kaldi/issues/3781
I need at least 6GB RAM compile it with gcc. I have switched to clang using sudo update-alternatives --config c++
I hope it works. Will keep you posted.
Thanks @patscott and @pathron

@patscott
Copy link
Member

Sorry, but we don't support clang (yet). You can try to -Ditch various components -- that may get you down below the 4GB RAM requirement.

@Aqsa-physics
Copy link
Author

Sure! :) Thank you. Will try, if there are some components that you would like to suggest me to -DITCH, I could do that while passing cmake command.

@patscott
Copy link
Member

Just try leaving out different physics modules like ColliderBit, SpecBit, etc, depending on what you want to do with GAMBIT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants