palacios component link error

2 views
Skip to first unread message

Michael Levenhagen

unread,
Apr 4, 2013, 6:50:23 PM4/4/13
to sst-si...@googlegroups.com
I'm trying to build the palacios component which is dependent on libv3_user_host_dev.a.

When I build the component I get the following failure:

make[3]: Entering directory `/home/mjleven/sstSVN/clean/build/sst/elements/palacios'
CXXLD libpalacios.la
/opt/sw/bin/ld: /home/mjleven/sst_palacios/march2013/linux_usr/libv3_user_host_dev.a(v3_user_host_dev.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/home/mjleven/sst_palacios/march2013/linux_usr/libv3_user_host_dev.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libpalacios.la] Error 1
make[3]: Leaving directory `/home/mjleven/sstSVN/clean/build/sst/elements/palacios'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/mjleven/sstSVN/clean/build/sst/elements'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/mjleven/sstSVN/clean/build/sst'
make: *** [install-recursive] Error 1
[mjleven@gato build]$

What's odd, to me anyway, is that this function is referenced from configure without a problem.

configure:23050: checking for v3_user_host_dev_rendezvous in -lv3_user_host_dev
configure:23075: g++ -o conftest -g -O2 -finline-functions -I/home/mjleven/sst_palacios/march2013/linux_usr -I/home/mjleven/sst_palacios/march2013/linux_module -I$(top_builddir) -I$(top_srcdir) -L/home/mjleven/sst_palacios/march2013/linux_usr conftest.cpp -lv3_user_host_dev -ldl >&5
configure:23075: $? = 0
configure:23084: result: yes
configure:23114: checking if palacios can build


Mike

Hammond, Simon David (-EXP)

unread,
Apr 4, 2013, 7:04:00 PM4/4/13
to SST-si...@googlegroups.com, sst-si...@googlegroups.com
Are you calling the same functions in the library in both links? Configure very often does not link any functions ( just check library exists ).

S



Sent with Good (www.good.com)

--
You received this message because you are subscribed to the Google Groups "Structural Simulation Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to SST-simulato...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Michael Levenhagen

unread,
Apr 4, 2013, 7:09:52 PM4/4/13
to SST-si...@googlegroups.com
I was overlooking the obvious, adding -fPIC to the Palacios library makefile, because this worked in the past. It appears that -fPIC has been removed from the makefile. I put it back, problem solved.

Hammond, Simon David (-EXP)

unread,
Apr 4, 2013, 7:16:47 PM4/4/13
to SST-si...@googlegroups.com
Mike,

We should put in configure time checks for this really, ill put these in when I'm back from vacation next week.
Reply all
Reply to author
Forward
0 new messages