Boost logo

Boost Testing :

Subject: [Boost-testing] [pgi-10.1] relocations compiler option
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2011-01-12 13:49:54


there are some test in trunck that are failing
Test output: Sandia-pgi-10.1 - chrono - xtime_static / pgi-10.1

It seems that the we need to add -fPIC, but -fpic . I don't know the compiler command syntax, but in case this could help, it will be worth to try.

Could someone change this on trunk?


Test output:
Rev 68033 / Wed, 12 Jan 2011 07:53:19 +0000
Report Time: Wed, 12 Jan 2011 15:19:47 +0000

Compile [2011-01-12 10:41:10 UTC]: succeed
"/sierra/Sntools/extras/compilers/pgi/linux86-64/10.1/bin/pgCC" -INLINE:none -Wc,-a --brief_diagnostics --error_limit1 --compress_names --diag_suppress450 --no_using_std --zc_eh -Kieee -fpic -gopt -DBOOST_ALL_NO_LIB=1 -DBOOST_SYSTEM_DYN_LINK=1 -D__need_IOV_MAX -I".." -c -o "/scratch/boost/results/boost/bin.v2/libs/system/build/pgi-10.1/debug/error_code.o" "../libs/system/src/error_code.cpp"

Link [2011-01-12 10:41:10 UTC]: fail
    "/sierra/Sntools/extras/compilers/pgi/linux86-64/10.1/bin/pgCC" -gopt -fpic --zc_eh -shared -o "/scratch/boost/results/boost/bin.v2/libs/system/build/pgi-10.1/debug/" "/scratch/boost/results/boost/bin.v2/libs/system/build/pgi-10.1/debug/error_code.o" -Wl,-h -Wl, -Bdynamic -lrt -lrt -Bstatic -Bdynamic

/usr/bin/ld: /scratch/boost/results/boost/bin.v2/libs/system/build/pgi-10.1/debug/error_code.o: relocation R_X86_64_PC32 against `__catch_clause_number' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value

Vicente Juan Botet Escribá

Boost-testing list run by mbergal at