Re: build problem with intel compiler

From: Andre R. Erler <aerler_at_nyahnyahspammersnyahnyah>
Date: Thu Mar 22 2012 - 12:20:29 MDT

As far as I am aware, PyNGL doesn't give me any configuration options, so I
don't know which options are used for PyNGL.
I used the same environment and compiler flags to build NCL/NCARG and PyNGL.
I built NCL/NCARG without PNG/libcairo-related stuff and without HDF4 and HDF-
EOS. There was no mention of requirements in the readme so I didn't think this
was a problem.
  - Andre

On March 21, 2012 11:46:14 PM Mary Haley wrote:
> It looks like NCL wasn't built with the same options as PyNGL.
>
> How did you build NCL? What options did you use?
>
> --Mary
>
> On Mar 19, 2012, at 5:39 PM, Andre R. Erler wrote:
> > 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 message.
> > 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/_hlu.so" 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.
> > <log.setup.py><installPyNGL.sh>__________________________________________
> > _____ pyngl-talk mailing list
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Thu Mar 22 12:20:36 2012

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