On Fri, 28 Jun 2013, Andreas Hansson wrote:

Very good question. Thanks for giving it a bash.

Could you have a look at what goes wrong in the sconslog? I've tested it on 
quite a flavour of systems, but obviously that was not enough.



Here is the log:

scons: Configure: Checking for C library python2.7...
build/.scons_config/conftest_6.c <-
  |
  |
  |
  |int
  |main() {
  |
  |return 0;
  |}
  |
^[(B^[[m [ CC] ^[[33m.scons_config/conftest_6^[[33m^[[1m.c^[[34m^[[1m -> ^[[33m^[[1m.o^[(B^[[m ^[(B^[[m [ LINK] ^[[33m^[[33m^[[1m^[[34m^[[1m -> ^[[33m^[[1m.scons_config/conftest_6^[(B^[[m
/usr/bin/ld: cannot find -lpython2.7
collect2: error: ld returned 1 exit status
scons: Configure: no

-------------------------------------------------------------------------------

I am using python which is installed in a non-standard location. The problem is that no '-L' option is being added for the libraries for using python, which is required to access the library from the non-standard location. After restoring the following lines, things start working again.

+from distutils import sysconfig
+py_getvar = sysconfig.get_config_var
+py_lib_path = [ py_getvar('LIBDIR') ]
+main.Append(LIBPATH=py_lib_path)
+

--
Nilay
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to