build problem with intel compiler

From: Andre R. Erler <aerler_at_nyahnyahspammersnyahnyah>
Date: Mon Mar 19 2012 - 16:39:15 MDT

Hi All,
I've posted to this list earlier. I made some progress building PyNio and now
I need to build PyNGL itself. Unfortunately I'm getting a rather strange error
I'm running a 64bit kubuntu 11.04 system and I built NCARG/NCL and all the
dependencies as well as PyNIO with the Intel Compiler Suite
(composerxe-2011.4.191). I don't have HDF4 or libcairo and built NCARG and
PyNGL without these options.
The error is this:

/usr/bin/ld: /usr/local/ncarg/lib/libnfpfort.a(dmapgci.o): relocation
R_X86_64_32 against `.rodata.str1.4' can not be used when making a shared
object; recompile with -fPIC
/usr/local/ncarg/lib/libnfpfort.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
error: Command "gcc -pthread -shared -g -L/usr/local/lib -L/usr/lib32/ -O2 -
I/usr/local/include -I/usr/include/xorg/ build/temp.linux-x86_64-2.7/Helper.o
build/temp.linux-x86_64-2.7/hlu_wrap.o build/temp.linux-x86_64-2.7/gsun.o -
L/usr/local/ncarg/lib -L/opt/intel/composerxe-2011.4.191/compiler/lib/intel64/
-L/opt/EPD/epd-7.1-1-rh5-x86_64/lib -lnfpfort -lhlu -lncarg -lncarg_gks -
lncarg_c -lngmath -lX11 -lm -lifcore -lirc -lifport -lpython2.7 -o
build/lib.linux-x86_64-2.7/PyNGL/" failed with exit status 1

I have no idea why this happens or how to fix it. I included -fPIC in all
compiler flags and I'm also wondering why gcc does the linking even though all
the compilation is done with icc/ifort.
I've attached a script with my environment variables and the build-log.
Any help would be greatly appreciated.

pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:

Received on Mon Mar 19 16:39:09 2012

This archive was generated by hypermail 2.1.8 : Wed Apr 11 2012 - 14:41:42 MDT