Re: [Paraview] Building Parallel ParaView on 64 bit Linux System
Peter Linking CXX shared library ../../bin/libvtkHybrid.so /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 this message is telling you that libpgc was compiled as a static library and was not compiled with the -fPIC flag. Unfortunately, you can't link a non relocatable static lib into a (relocatable) dynamic/shared lib - so you must either find a libpgc.so and replace the link options with this lib instead of libpgc.a - or you must recompile libpgc with the -fPIC flag - which may not be an option - either way, you must find another libpgc which you can link - oitherwise you're limited to building static and hence no plugins for paraview. JB ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Building Parallel ParaView on 64 bit Linux System
Hi Pete, I tried to forward my CMakeCache for a 64 bit CentOS machine, but it got blocked. I built a 64 bit version using openmpi built on gcc. I think I installed openmpi with yum, which puts it in /usr/lib64/ openmpi/1.2.7-gcc/bin/mpicc. Also, if you're using Qt 4.5.1 you also had to download and install a new version of the fontconfig library and build 64 bit shared libraries for it. Chris On May 13, 2009, at 5:51 PM, Peter Schmitt wrote: Hello, I am attempting to build Parallel ParaView on a 64 bit Linux (CentOS 5.2) machine. C/C++ compilers: x86_64-redhat-linux-gcc (GCC) 4.1.2 20071124 (Red Hat 4.1.2-42) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. MPI compilers: mpicc for 1.2.7 (release) of : 2005/06/22 16:33:49 pgcc 7.2-4 64-bit target on x86-64 Linux -tp penryn-64 Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved. Copyright 2000-2008, STMicroelectronics, Inc. All Rights Reserved. The build gets about 35% of the way through before reporting an error: ### start snip ### ... [ 35%] Built target vtkParallel Linking CXX shared library ../../bin/libvtkHybrid.so /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 /opt/local/pgi-7.2/linux86-64/7.2/lib/libpgc.a: could not read symbols: Bad value collect2: ld returned 1 exit status gmake[2]: *** [bin/libvtkHybrid.so.pv3.4] Error 1 gmake[1]: *** [VTK/Hybrid/CMakeFiles/vtkHybrid.dir/all] Error 2 gmake: *** [all] Error 2 ### end snip ### 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? Cheers, Pete ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Building Parallel ParaView on 64 bit Linux System
Hello, I am attempting to build Parallel ParaView on a 64 bit Linux (CentOS 5.2) machine. C/C++ compilers: x86_64-redhat-linux-gcc (GCC) 4.1.2 20071124 (Red Hat 4.1.2-42) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. MPI compilers: mpicc for 1.2.7 (release) of : 2005/06/22 16:33:49 pgcc 7.2-4 64-bit target on x86-64 Linux -tp penryn-64 Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved. Copyright 2000-2008, STMicroelectronics, Inc. All Rights Reserved. The build gets about 35% of the way through before reporting an error: ### start snip ### ... [ 35%] Built target vtkParallel Linking CXX shared library ../../bin/libvtkHybrid.so /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 /opt/local/pgi-7.2/linux86-64/7.2/lib/libpgc.a: could not read symbols: Bad value collect2: ld returned 1 exit status gmake[2]: *** [bin/libvtkHybrid.so.pv3.4] Error 1 gmake[1]: *** [VTK/Hybrid/CMakeFiles/vtkHybrid.dir/all] Error 2 gmake: *** [all] Error 2 ### end snip ### 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? Cheers, Pete ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview