[vtkusers] How I got a build working on AIX

Rich Cook rcook at llnl.gov
Wed Nov 19 13:20:56 EST 2008


For posterity, here is my build script for paraview on our AIX  
systems.  Your mileage may vary.

rcook at up041 (aix_5_64_fed): cat build.sh
#!/usr/bin/env bash
. shellfuncs.sh
# NOTE:  shellfuncs.sh provides the "sedfiles" macro, which just  
executes sed on the given file and forms a backup.
# sedfiles.sh is a script that provides the same functionality --
logfile=`pwd`/make.output
echo logfile is $logfile
if [ -f $logfile ]; then
     mv $logfile ${logfile}.bak
fi
exec >$logfile 2>&1
set -v

# be sure to setup ccmake with
# PARAVIEW_USE_MPI ON
# CXX COMPILER:  /usr/local/bin/mpCC
# C compiler:  /usr/local/bin/mpcc
# be sure to add the MPI includes to keep make from choking, although  
it's not necessary
# CFLAGS:  -qlanglvl=extended -qcpluscmt  -D_LARGE_FILES
# NOTE:  -D_LARGE_FILES eliminates error about undefined symbols that  
have _LFS in them.
# LDFLAGS: -brtl  -bnortllib -bautoexp -bM:SRE -bbigtoc
# NOTE:  -bbigtoc eliminates an error about TOC being too large.

# remove problematic link line
sedfiles 's/os << indent << "Spacing: " << this->Spacing << endl;//'  
src/ParaView-3.4.0/Servers/ServerManager/vtkSMComparativeViewProxy.cxx
sedfiles 's/static uint qHash/uint qHash/' src/ParaView-3.4.0/Qt/Core/ 
pqAnimationScene.cxx src/ParaView-3.4.0/Qt/Core/ 
pqSpreadSheetViewModel.cxx src/ParaView-3.4.0/Qt/Core/ 
pqSpreadSheetViewSelectionModel.cxx

find ./ -name link.txt | xargs ./sedfiles.sh -e 's=-Wl,-blibpath:/usr/ 
lib:/lib==g'

find ./ -name build.make | xargs grep -rl  '&& ../.[\./]*bin' >  
build.make.list
for file in $(cat build.make.list); do
     echo replacing call to binary with poe in $file
     sedfiles  's=\(&&\) \(../[\./]*bin\)=\1 nopoe \2=g' $file
done
gmake
# alternative option:  ignore gmake errors and keep going
# gmake -k


-- 
✐Richard Cook
✇ Lawrence Livermore National Laboratory
Bldg-453 Rm-4024, Mail Stop L-557
7000 East Avenue,  Livermore, CA, 94550, USA
☎ (office) (925) 423-9605
☎ (fax) (925) 423-6961
---
Information Management & Graphics Grp., Services & Development Div.,  
Integrated Computing & Communications Dept.
(opinions expressed herein are mine and not those of LLNL)






More information about the vtkusers mailing list