I second Wolfagng’s suggestion to remove flags one-by-one from the command line and see which one make ld hang. That’s also bisection in a sense, instead of working out which commit breaks it, you investigate which flag breaks it.
My best guess is that some extra checks have been added to CMake scripts of deal.II which break usage on this OS/version of compiler. It may as well be a compiler bug, either way we need to find out which flag it is and then we can dig into where exactly and why this flag gets added. Kind regards, Denis > On 19 Dec 2016, at 18:31, Praveen C <[email protected]> wrote: > > I replace mpic++ with /usr/bin/g++ but the command goes on forever. mpi is > also from spack and I have only one mpi on this machine. gcc/g++ are from > suse. > > Best > praveen > > On Mon, Dec 19, 2016 at 10:39 PM, Wolfgang Bangerth <[email protected] > <mailto:[email protected]>> wrote: > On 12/19/2016 07:26 AM, Praveen C wrote: > > [ 50%] Linking CXX executable cmTC_4e156 > > /home/spack/opt/spack/linux-opensuse20161217-x86_64/gcc-6/cmake-3.7.1-erobxw7bh6cbnaqfzaqwvzk6crnj5ojy/bin/cmake > -E cmake_link_script CMakeFiles/cmTC_4e156.dir/link.txt --verbose=1 > > /home/spack/opt/spack/linux-opensuse20161217-x86_64/gcc-6/openmpi-2.0.1-asdjmd22cnyktv2athcx3ouhrozknk22/bin/mpic++ > -DDEAL_II_HAVE_USABLE_FLAGS_DEBUG -pedantic -fPIC -Wall -Wextra > -Wpointer-arith -Wwrite-strings -Wsynth -Wsign-compare -Wswitch > -Woverloaded-virtual -Wno-long-long -Wno-placement-new > -Wno-deprecated-declarations -Wno-literal-suffix -fopenmp-simd -std=c++14 > -Wno-unused-local-typedefs -Og -ggdb -Wa,--compress-debug-sections > CMakeFiles/cmTC_4e156.dir/src.cxx.o -o cmTC_4e156 ...... > > > and never finishes. > > I've only been following this thread with half an eye, but this seems like > the key to your problem. I you type this command onto the command line (or > better, copy-paste), does it hang as well? That would give you an indication > that the problem is actually with your mpic++ compiler, not with deal.II's > cmake command. > > If it does hang for more than just a couple seconds, remove one flag after > the other until you've found what the problem is. That should relatively easy > to do on the command line. > > Best > W> > > -- > ------------------------------------------------------------------------ > Wolfgang Bangerth email: [email protected] > <mailto:[email protected]> > www: http://www.math.colostate.edu/~bangerth/ > <http://www.math.colostate.edu/~bangerth/> > > > -- > The deal.II project is located at http://www.dealii.org/ > <http://www.dealii.org/> > For mailing list/forum options, see > https://groups.google.com/d/forum/dealii?hl=en > <https://groups.google.com/d/forum/dealii?hl=en> > --- You received this message because you are subscribed to the Google Groups > "deal.II User Group" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:dealii%[email protected]>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > > -- > The deal.II project is located at http://www.dealii.org/ > <http://www.dealii.org/> > For mailing list/forum options, see > https://groups.google.com/d/forum/dealii?hl=en > <https://groups.google.com/d/forum/dealii?hl=en> > --- > You received this message because you are subscribed to a topic in the Google > Groups "deal.II User Group" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/dealii/eG75p2TVNNQ/unsubscribe > <https://groups.google.com/d/topic/dealii/eG75p2TVNNQ/unsubscribe>. > To unsubscribe from this group and all its topics, send an email to > [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
