On Fri, 23 Jan 2009 12:00:04 +0100, comp-phys-alps-users-request wrote
- Re: one solution to compilation issues with GCC (Matthias
Troyer)
Message: 7 Date: Thu, 22 Jan 2009 10:59:55 -0600 From: Jeff Hammond jeff.science@gmail.com Subject: Re: [ALPS-users] one solution to compilation issues with GCC To: comp-phys-alps-users@phys.ethz.ch Message-ID: 96f4bb620901220859g1561bd29uc938624e70e5e502@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1
I had no trouble compiling ALPS 1.33 with GCC 4.3.1 and Boost 1.37, and yes, it was much faster to do this than to install GCC.
Jeff
On Thu, Jan 22, 2009 at 9:36 AM, Matthias Troyer troyer@phys.ethz.ch wrote:
Thanks for your help! It might be easier to switch Boost versions than compiler. Could you or someone else with the same problem try to download Boost 1.37.0 and see whether that also solves the problem?
Matthias
-- Jeff Hammond The University of Chicago http://home.uchicago.edu/~jhammond/
Message: 8 Date: Thu, 22 Jan 2009 10:53:04 -0800 From: Matthias Troyer troyer@phys.ethz.ch Subject: Re: [ALPS-users] one solution to compilation issues with GCC To: comp-phys-alps-users@phys.ethz.ch Message-ID: BF5A683A-B460-4E06-9E27-67260C11C400@phys.ethz.ch Content-Type: text/plain; charset=US-ASCII; format=flowed
On 22 Jan 2009, at 08:59, Jeff Hammond wrote:
I had no trouble compiling ALPS 1.33 with GCC 4.3.1 and Boost 1.37, and yes, it was much faster to do this than to install GCC.
Jeff
Thanks, I'll add a note to the Wiki!
Matthias
End of Comp-phys-alps-users Digest, Vol 34, Issue 7
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
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
comp-phys-alps-users@lists.phys.ethz.ch