You can use "make VERBOSE=1" to see the full compile commands for a
single time. There is also a an option in cmake to have it do it every
time but I don't know that off the top of my head.<br><br>Another possibility is that it may be another library that needs to be compiled with -fPIC.<br><font color="#888888">
<br>Andy</font><br><br><div class="gmail_quote">On Wed, May 13, 2009 at 6:51 PM, Peter Schmitt <span dir="ltr"><<a href="mailto:pschmittml@gmail.com">pschmittml@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
I am attempting to build Parallel ParaView on a 64 bit Linux (CentOS 5.2) machine.<br>
<br>
C/C++ compilers:<br>
x86_64-redhat-linux-gcc (GCC) 4.1.2 20071124 (Red Hat 4.1.2-42)<br>
Copyright (C) 2006 Free Software Foundation, Inc.<br>
This is free software; see the source for copying conditions. There is NO<br>
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br>
<br>
MPI compilers:<br>
mpicc for 1.2.7 (release) of : 2005/06/22 16:33:49<br>
pgcc 7.2-4 64-bit target on x86-64 Linux -tp penryn-64<br>
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.<br>
Copyright 2000-2008, STMicroelectronics, Inc. All Rights Reserved.<br>
<br>
The build gets about 35% of the way through before reporting an error:<br>
<br>
### start snip ###<br>
...<br>
[ 35%] Built target vtkParallel<br>
Linking CXX shared library ../../bin/libvtkHybrid.so<br>
/usr/bin/ld: /opt/local/pgi-7.2/linux86-64/7.2/lib/libpgc.a(va_arg.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC<br>
/opt/local/pgi-7.2/linux86-64/7.2/lib/libpgc.a: could not read symbols: Bad value<br>
collect2: ld returned 1 exit status<br>
gmake[2]: *** [bin/libvtkHybrid.so.pv3.4] Error 1<br>
gmake[1]: *** [VTK/Hybrid/CMakeFiles/vtkHybrid.dir/all] Error 2<br>
gmake: *** [all] Error 2<br>
### end snip ###<br>
<br>
I have added "-fPIC" to both CMAKE_CXX_FLAGS and MPI_COMPILE_FLAGS with no luck.... In order to troubleshoot this more, I'd like to see the actual link command that's killing the build. How do I see the full link command using cmake + gmake?<br>
<br>
Cheers,<br>
Pete<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote></div><br>