" final link failed: Bad value" error on Linux x86

Posted by Stoytcho Stoev on
URL: http://quantlib.414.s1.nabble.com/Re-N-dimensional-Interpolation-Template-Library-tp4619p4620.html

Hi,

Any help will be highly appreciated!

the error appears in the  process of making .libs/libQuantLib-0.3.11.so:

g++ -shared -nostdlib /usr/lib/gcc/i386-redhat-linux/3.4.4/../../../crti.o /usr/lib/gcc/i386-redhat-linux/3.4.4/crtbeginS.o  .libs/calendar.o .libs/currency.o .libs/date.o .libs/discretizedasset.o  .... ( and many other libraries ) ...
-Wl,--no-whole-archive  -L/usr/lib/gcc/i386-redhat-linux/3.4.4 -L/usr/lib/gcc/i386-redhat-linux/3.4.4/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i386-redhat-linux/3.4.4/crtendS.o /usr/lib/gcc/i386-redhat-linux/3.4.4/../../../crtn.o  -Wl,-soname -Wl,libQuantLib-0.3.11.so -o .libs/libQuantLib-0.3.11.so

/usr/bin/ld: PricingEngines/.libs/libPricingEngines.a(analytic_discr_geom_av_price.o): unrecognized relocation (0xc) in section `.text'

The error is persistent with meaning that is repetitive. I generated
PricingEngines/.libs/*.*
second time with the same result. I can submit more info if it is required.

Just to note: In the process of making I had several core dumps from the compiler. After restarting the make, though, it usually overcome the problematic place. But this is not the case in the error above.

System info:
uname -a
Linux nano2 2.6.9-22.ELsmp #1 SMP Sat Oct 8 19:11:43 CDT 2005 i686 athlon i386 GNU/Linux

g++ -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.4/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)




Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.