[Ad-dev] [ADIC] #39: build fails with gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
ADIC
trac at mcs.anl.gov
Mon May 17 14:24:48 CDT 2010
#39: build fails with gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
--------------------------+-------------------------------------------------
Reporter: utke | Owner: narayanan
Type: defect | Status: new
Priority: major | Milestone:
Component: OpenAnalysis | Version:
Keywords: |
--------------------------+-------------------------------------------------
gives link error in ADIC:
libtool: link: g++ -shared -nostdlib /usr/lib/gcc/x86_64-linux-
gnu/4.2.4/../../../../lib/crti.o /usr/lib/gcc/x86_64-linux-
gnu/4.2.4/crtbeginS.o .libs/liboarose_la-Sage2OA.o .libs/liboarose_la-
SageOACallGraph.o .libs/liboarose_la-common.o .libs/liboarose_la-
MemSage2OA.o .libs/liboarose_la-OATest.o -Wl,-rpath
-Wl,/disks/utke/Apps/rose_inst/lib -Wl,-rpath
-Wl,/disks/utke/Apps/rose_inst/lib
-L/disks/utke/Argonne/Dev/RoseFE/OpenAD/OpenAnalysis/x86_64-Linux/lib
-lOAul -L/disks/utke/Apps/rose_inst/lib
/disks/utke/Apps/rose_inst/lib/librose.so
-L/usr/lib/jvm/java-6-sun-1.6.0.17/jre/lib/amd64/server
-L/home/derivs/software/linux-Ubuntu_8.04-x86_64/boost_1_36_0/lib
-L/disks/utke/Apps/rose_build/src/3rdPartyLibraries/libharu-2.1.0/src
-ljvm -ldl -lboost_date_time-gcc41-mt-1_36 -lboost_thread-gcc41-mt-1_36
-lboost_filesystem-gcc41-mt-1_36 -lboost_program_options-gcc41-mt-1_36
-lboost_regex-gcc41-mt-1_36 -lboost_system-gcc41-mt-1_36 -lboost_wave-
gcc41-mt-1_36 /disks/utke/Apps/rose_inst/lib/libhpdf.so -lpthread -lrt
-L/usr/lib/gcc/x86_64-linux-gnu/4.2.4 -L/usr/lib/gcc/x86_64-linux-
gnu/4.2.4/../../../../lib -L/lib/../lib -L/usr/lib/../lib
-L/usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../.. -lstdc++ -lm -lc -lgcc_s
/usr/lib/gcc/x86_64-linux-gnu/4.2.4/crtendS.o /usr/lib/gcc/x86_64-linux-
gnu/4.2.4/../../../../lib/crtn.o -Wl,-soname -Wl,liboarose.so.0 -o
.libs/liboarose.so.0.0.0
/usr/bin/ld:
/disks/utke/Argonne/Dev/RoseFE/OpenAD/OpenAnalysis/x86_64-Linux/lib/libOAul.a
(libOAul_a-Annotation.o): relocation R_X86_64_32 against `a local symbol'
can not be used when making a shared object; recompile with -fPIC
But cannot compile OA with -fPIC because that leads to an ICE there.
This is just a placeholder for the issue.
--
Ticket URL: <http://trac.mcs.anl.gov/projects/ADIC/ticket/39>
ADIC <http://trac.mcs.anl.gov/projects/ADIC>
ADIC: Automatic Differentiation for C and C++
More information about the Ad-dev
mailing list