Thank you Jeff, now it works fine. I did not face above problem with older compiler. Tadeusz
On Sun, 25 Jan 2009 12:00:03 +0100, comp-phys-alps-users-request wrote
What do you mean break? GCC 4.3.1 segfaulted on the compilation of spinmc_factory.C:
============================================== g++ -DHAVE_CONFIG_H -I. -I. -I../.. -DNDEBUG -I/software/alps/include -I/software/alps/boost_1_37_0 -I/software/alps/include -I/software/alps/lp_solve_4.0 -pthread -ftemplate-depth-150 -O3 -DBOOST_DISABLE_ASSERTS -fexceptions -w -MT spinmc_factory.o -MD -MP -MF .deps/spinmc_factory.Tpo -c -o spinmc_factory.o spinmc_factory.C spinmc_factory.C: In constructor 'AbstractSpinSim<MAT>::AbstractSpinSim(const alps::ProcessList&, const alps::Parameters&, int) [with MAT = DiagMatrix<double, 3>]': spinmc_factory.C:194: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See http://bugs.opensuse.org/ for instructions. make: *** [spinmc_factory.o] Error 1 ==============================================
but it compiled when I changed the "-O3" in CXXFLAGS "-O0" (both "- O2" and "-O1" failed as well for the same reasons) I was able to compile that file. I then stopped the build after the spinmc_factory.o was formed, restored optimization to the default, and the rest of ALPS compilation went fine.
I should have mentioned this the last time but I wasn't sure if it was just by distro that had this issue. I have 4 GB so the segfault is certainly a bug not the absence of sufficient memory.
I have not reported this bug to GCC because such things usually require posting the code that fails and I have no hope of doing this properly without including all of ALPS/Boost. It would be great it someone at ALPS who is closer to the GCC project could do so though.
Jeff
On Sat, Jan 24, 2009 at 4:52 AM, Tadeusz Wasiutynski Tadeusz.Wasiutynski@ifj.edu.pl wrote:
Indeed the compilation of ALPS-1.3.3 goes smoothly with gcc-4.3.1 and boost-1.37. Unfortunately alps-applications compilation breaks on spinmc.factory while was not the case with older gcc. All other prerequisities but lp_solve come in the system. Any suggestions? Shall we compare all the components incl kernel? Tadeusz
-- Jeff Hammond The University of Chicago http://home.uchicago.edu/~jhammond/
End of Comp-phys-alps-users Digest, Vol 34, Issue 9