[Paraview] Building Parallel ParaView on 64 bit Linux System

Chris Kees christopher.e.kees at usace.army.mil
Thu May 14 09:33:10 EDT 2009


Hi Pete,

If you can't find pgc libraries that are buiilt with PIC you might try  
the openmpi compilers built on gcc. I'm attaching my CMakeCache.txt  
from a CentOS 5 machine.

Chris
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeCache.txt
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090514/9d204c01/attachment-0001.txt>
-------------- next part --------------

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



More information about the ParaView mailing list