Re: " 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-tp4619p4621.html
Hi,
To anyone in need.
The solution to my problem was to upgrade the system ( probably only upgrade to gcc 3.4.5 will work also ) with
# yum upgrade
this upgraded the compiler form 3.4.4 to 3.4.5
The seg faults in the compiler still were present but now after several restarts the compilation was successful.
S.
Stoytcho Stoev <[hidden email]> wrote:
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 seg faults 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.
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.