Hi All:
        I am trying to compile M5 as a shared library. And I
experience the following error:
scons -j 4 build/X86_SE/libm5_debug.so CPU_MODELS=TimingSimpleCPU
...............
...............
/tool/pandora64/bin/ld:
/tool/pandora64/.package/python-2.4/lib/python2.4/config/libpython2.4.a(abstract.o):
relocation R_X86_64_32 can not be used when making a shared object;
recompile with -fPIC
/tool/pandora64/.package/python-2.4/lib/python2.4/config/libpython2.4.a:
could not read symbols: Bad value
collect2: ld returned 1 exit status
scons: *** [build/X86_SE/libm5_debug.so] Error 1
scons: building terminated because of errors.
mv: cannot stat `build/X86_SE/libm5_debug.so': No such file or directory

       This error occurs even when I added -fPIC support in SConstruct
using main.Append(CCFLAGS='-fPIC') in SConsctruct.
I am using gcc version 4.2.0 and python 2.4.

        Thanks for any comments in advance.



-- 
Regards
James Wang
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to