Hello,

I have some problems building M5 on my Windows system. I pulled the latest 
development version of M5 (at least I think so: from  http://repo.m5sim.org I 
clicked "m5" and then "bz2"; there's no documentation on this :-) ). The first 
problem I ran into is that the Python script SConstruct in the root directory 
(not the one under src/) is written under the false assumption that all OSs use 
"/" as directory separator in paths. In the script, I replaced this:

    path_dirs = t.split('/')
    try:
        build_top = rfind(path_dirs, 'build', -2)
    except:
        print "Error: no non-leaf 'build' dir found on target path", t
        Exit(1)
    this_build_root = joinpath('/',*path_dirs[:build_top+1])

with this:

    split_path = splitpath(t)
    variant = ""
    while split_path[1] != "build" and (split_path[0] != "" or split_path[1] != 
""):
        variant = split_path[1]
        split_path = splitpath(split_path[0])
    if split_path[1] == "":
        print "Error: no non-leaf 'build' dir found on target path", t
        Exit(1)
    this_build_root = joinpath(split_path[0], split_path[1])

I also replaced this:

    variant_path = joinpath('/',*path_dirs[:build_top+2])

with this:

    variant_path = joinpath(this_build_root, variant)

The problem with the previous code is that the variable t doesn't get split, so 
the "build" directory is not found with rfind (apparently you are also supposed 
to manually create the "build" etc. directories before running scons, something 
I think should be mentioned in the compilation instructions). With the above 
changes (which I think should work on Unix systems as well), I got a little 
further. However, now I get:

Error: Don't know what compiler options to use for your compiler.
       Please fix SConstruct and src/SConscript and try again.

Any ideas on how to get past this? Thankful for any help!

My platform is the following:

Windows 7 64-bit
Cygwin g++ version 4.3.4
Win32 Python version 2.7
Cygwin SWIG version 1.3.40
Cygwin zlib version 1.2.3
Cygwin m4 version 1.4.14

Kind regards
/Linus

                                          
_________________________________________________________________
Messenger i mobilen på 5 sekunder!
http://new.windowslivemobile.msn.com/se-SE/Default.aspx
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to