Quantcast

crtbeginT.o: error adding symbols: Bad value

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
grg
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

crtbeginT.o: error adding symbols: Bad value

grg
Hi there,

I've recently installed octave-4.2.1 on my Fedora24 machine.

Today I tried to install the octave-forge package netcdf, but I got the following error:

octave:1> pkg install -forge netcdf
In file included from conftest.cc:1:0:
/usr/local/include/octave-4.2.1/octave/../octave/config.h:28:2: warning: #warning "config.h has been deprecated; there is no need to include it directly" [-Wcpp]
 #warning "config.h has been deprecated; there is no need to include it directly"
  ^~~~~~~
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/6.3.1/crtbeginT.o: relocation R_X86_64_32 against `__TMC_END__' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-redhat-linux/6.3.1/crtbeginT.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [__netcdf__.oct] Error 1
make: Entering directory '/tmp/oct-642GgV/netcdf/src'
/usr/local/bin/mkoctfile-4.2.1 -DHAVE_OCTAVE_ -v -I/home/swdev/ocssw/build/lib3/include __netcdf__.cc -L/home/swdev/ocssw/build/lib3/lib -L/home/swdev/ocssw/build/lib3/lib -static -lnetcdf -lhdf5_hl -lhdf5 -lsz -lm -lz
g++ -c  -fPIC -I/usr/local/include/octave-4.2.1/octave/.. -I/usr/local/include/octave-4.2.1/octave -I/usr/local/include  -pthread -fopenmp -g -O2  -static  -I/home/swdev/ocssw/build/lib3/include  -DHAVE_OCTAVE_ __netcdf__.cc -o __netcdf__.o
g++ -I/usr/local/include/octave-4.2.1/octave/.. -I/usr/local/include/octave-4.2.1/octave -I/usr/local/include  -pthread -fopenmp -g -O2 -shared -Wl,-Bsymbolic  -static -o __netcdf__.oct  __netcdf__.o   -L/home/swdev/ocssw/build/lib3/lib -L/home/swdev/ocssw/build/lib3/lib -lnetcdf -lhdf5_hl -lhdf5 -lsz -lm -lz -L/usr/local/lib/octave/4.2.1 -L/usr/local/lib -loctinterp -loctave  
Makefile:24: recipe for target '__netcdf__.oct' failed
make: Leaving directory '/tmp/oct-642GgV/netcdf/src'

pkg: error running `make' for the netcdf package.
error: called from
    configure_make at line 95 column 9
    install at line 192 column 7
    pkg at line 394 column 9

I am not sure what exactly the error message means.

Does anyone know how to fix it?

Many thanks in advance,
grg

Loading...