help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

octcdf-1.1.4 yields recompile with -fPIC


From: Ismael Núñez-Riboni
Subject: octcdf-1.1.4 yields recompile with -fPIC
Date: Wed, 11 Apr 2012 18:24:46 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2

Hello everyone,

I need some help installing octcdf-1.1.4 on Octave 3.6.1. I get I funny error when I try to install (basically "recompile with -fPIC", the whole error is at the bottom). Here is the output of ver:

----------------------------------------------------------------------
GNU Octave Version 3.6.1
GNU Octave License: GNU General Public License
Operating System: Linux 3.0.0-12-server #20-Ubuntu SMP Fri Oct 7 16:36:30 UTC 2011 x86_64
----------------------------------------------------------------------
Package Name   | Version | Installation directory
---------------+---------+-----------------------
      control *|   2.2.4 | /home/ismael/octave/control-2.2.4
miscellaneous *|  1.0.11 | /home/ismael/octave/miscellaneous-1.0.11
        optim *|  1.0.17 | /home/ismael/octave/optim-1.0.17
       signal *|   1.1.2 | /home/ismael/octave/signal-1.1.2
      specfun *|   1.1.0 | /home/ismael/octave/specfun-1.1.0
   statistics *|   1.1.0 | /home/ismael/octave/statistics-1.1.0
       struct *|   1.0.9 | /home/ismael/octave/struct-1.0.9


The computer has a 64-bit architecture, which is actually the only thing new that I'm facing here in comparison to previous installations where I did not get this error. I also tried with older versions of octcdf with no success. My gcc is the latest (4.6.1). Shall I compile octave with an older gcc? Thanks for the help. Cheers, Ismael.

-------------------------------------

octave:2> pkg([install_dir,'octcdf-1.1.4.tar.gz'],'install')
warning: X11 DISPLAY environment variable not set
warning: X11 DISPLAY environment variable not set
warning: X11 DISPLAY environment variable not set
/usr/bin/ld: /usr/local/lib/libnetcdf.a(attr.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libnetcdf.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [netcdf.oct] Error 1
'make' returned the following error: make: Entering directory `/tmp/oct-Z1A9lS/octcdf/src' /usr/local/bin/mkoctfile-3.6.1 -DHAVE_OCTAVE_ -v -c ov-netcdf.cc -I/usr/local/include -DHAVE_OCTAVE_INT g++ -c -fPIC -I/usr/local/include/octave-3.6.1/octave/.. -I/usr/local/include/octave-3.6.1/octave -I/usr/local/include -I/usr/include/freetype2 -g -O2 -I/usr/local/include -DHAVE_OCTAVE_ -DHAVE_OCTAVE_INT ov-netcdf.cc -o ov-netcdf.o /usr/local/bin/mkoctfile-3.6.1 -DHAVE_OCTAVE_ -v -c ov-ncfile.cc -I/usr/local/include -DHAVE_OCTAVE_INT g++ -c -fPIC -I/usr/local/include/octave-3.6.1/octave/.. -I/usr/local/include/octave-3.6.1/octave -I/usr/local/include -I/usr/include/freetype2 -g -O2 -I/usr/local/include -DHAVE_OCTAVE_ -DHAVE_OCTAVE_INT ov-ncfile.cc -o ov-ncfile.o /usr/local/bin/mkoctfile-3.6.1 -DHAVE_OCTAVE_ -v -c ov-ncvar.cc -I/usr/local/include -DHAVE_OCTAVE_INT g++ -c -fPIC -I/usr/local/include/octave-3.6.1/octave/.. -I/usr/local/include/octave-3.6.1/octave -I/usr/local/include -I/usr/include/freetype2 -g -O2 -I/usr/local/include -DHAVE_OCTAVE_ -DHAVE_OCTAVE_INT ov-ncvar.cc -o ov-ncvar.o /usr/local/bin/mkoctfile-3.6.1 -DHAVE_OCTAVE_ -v -c ov-ncatt.cc -I/usr/local/include -DHAVE_OCTAVE_INT g++ -c -fPIC -I/usr/local/include/octave-3.6.1/octave/.. -I/usr/local/include/octave-3.6.1/octave -I/usr/local/include -I/usr/include/freetype2 -g -O2 -I/usr/local/include -DHAVE_OCTAVE_ -DHAVE_OCTAVE_INT ov-ncatt.cc -o ov-ncatt.o /usr/local/bin/mkoctfile-3.6.1 -DHAVE_OCTAVE_ -v -c ov-ncdim.cc -I/usr/local/include -DHAVE_OCTAVE_INT g++ -c -fPIC -I/usr/local/include/octave-3.6.1/octave/.. -I/usr/local/include/octave-3.6.1/octave -I/usr/local/include -I/usr/include/freetype2 -g -O2 -I/usr/local/include -DHAVE_OCTAVE_ -DHAVE_OCTAVE_INT ov-ncdim.cc -o ov-ncdim.o /usr/local/bin/mkoctfile-3.6.1 -DHAVE_OCTAVE_ -v -o netcdf.oct -I/usr/local/include -DHAVE_OCTAVE_INT ov-netcdf.o ov-ncfile.o ov-ncvar.o ov-ncatt.o ov-ncdim.o -L/usr/local/lib -lnetcdf g++ -shared -Wl,-Bsymbolic -o netcdf.oct ov-netcdf.o ov-ncfile.o ov-ncvar.o ov-ncatt.o ov-ncdim.o -L/usr/local/lib -lnetcdf -L/usr/local/lib/octave/3.6.1 -L/usr/local/lib -loctinterp -loctave -lcruft
make: Leaving directory `/tmp/oct-Z1A9lS/octcdf/src'
error: called from `pkg>configure_make' in file /usr/local/share/octave/3.6.1/m/pkg/pkg.m near line 1385, column 9
error: called from:
error:   /usr/local/share/octave/3.6.1/m/pkg/pkg.m at line 827, column 5
error:   /usr/local/share/octave/3.6.1/m/pkg/pkg.m at line 383, column 9
-----------------------------------------------


reply via email to

[Prev in Thread] Current Thread [Next in Thread]