charm++ compile problem on x86_64

From: Steven A. DuChene (sduchene_at_scyld.com)
Date: Fri Jan 14 2005 - 15:24:02 CST

In building charm++ with the following command:

./build charm++ net-linux-amd64 clustermatic gcc tcp

I got the following:

make[3]: Entering directory `/usr/local/src/charm/net-linux-amd64-clustermatic-tcp-gcc/tmp/QuickThreads'
rm -f qtmd.h
../system_ln md/setjmp_d.h qtmd.h
../../bin/charmc -seq -I. -c -o qt.o qt.c
../../bin/charmc -seq -I. -c -o qtmds.o md/setjmp64.c
md/setjmp64.c: In function `qt_args_1':
md/setjmp64.c:53: warning: passing arg 1 of `longjmp' from incompatible pointer type
md/setjmp64.c: In function `qt_block':
md/setjmp64.c:88: warning: passing arg 1 of `longjmp' from incompatible pointer type
md/setjmp64.c: In function `qt_abort':
md/setjmp64.c:101: warning: passing arg 1 of `longjmp' from incompatible pointer type
ar q libqt.a qt.o qtmds.o
../../bin/charmc -seq -I. -shared -o libqt.so qt.o qtmds.o
Warning: creating libqt.so
/usr/bin/ld: qtmds.o: relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC
qtmds.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! Failed to compile Charm++ shared library. You can disable shared !!
!! lib compilation by providing --no-build-shared build option like: !!
!! ./build charm++ net-linux --no-build-shared -O !!
!! or reexecute this charmc command with -nobs compile option !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Fatal Error by charmc in directory /usr/local/src/charm/net-linux-amd64-clustermatic-tcp-gcc/tmp/QuickThreads
   Command gcc -rdynamic -o libqt.so -shared -L/usr/local/src/charm/net-linux-amd64-clustermatic-tcp-gcc/lib_so qt.o qtmds.o returned error code 1
charmc exiting...

-- 
Steven A. DuChene

This archive was generated by hypermail 2.1.6 : Wed Feb 29 2012 - 15:39:07 CST