I'm guessing that you're using an older version of gem5. That code
is a bit dated and the current version does a better job handling these
kinds of cases.
Ali
On 13.06.2012 10:23, Mahmood Naderan wrote:
>
Actually gem5/ext/libelf/SConscript
>
> Here is the output:
>
>
Checking for C header file fenv.h... yes
> Reading SConsopts
> 4.6
>
>
ValueError: need more than 2 values to unpack:
> File
"/home/mahmood/gem5/SConstruct", line 898:
> variant_dir =
joinpath(build_root, 'libelf'))
> File
"/usr/lib/scons/SCons/Script/SConscript.py", line 551:
> return
_SConscript(self.fs, *files, **subst_kw)
> File
"/usr/lib/scons/SCons/Script/SConscript.py", line 260:
> exec _file_ in
call_stack[-1].globals
> File
"/home/mahmood/gem5/build/libelf/SConscript", line 95:
> major,minor,dot
= [int(x) for x in m4env['GCC_VERSION'].split('.')]
>
> You are right.
it takes 2 numbers. any wayt to fix that?
>
> On 6/13/12, Lluís
Vilanova <[email protected]> wrote:
>
>> Mahmood Naderan writes:
>>
>>> Hi, With gcc-4.6.3 and g++-4.6.3, I get this error:
>>
>>>
Checking for C header file fenv.h... yes Reading SConsopts ValueError:
need more than 2 values to unpack: File "/home/mahmood/gem5/SConstruct",
line 898: variant_dir = joinpath(build_root, 'libelf')) File
"/usr/lib/scons/SCons/Script/SConscript.py", line 551: return
_SConscript(self.fs, *files, **subst_kw) File
"/usr/lib/scons/SCons/Script/SConscript.py", line 260: exec _file_ in
call_stack[-1].globals File
"/home/mahmood/gem5/build/libelf/SConscript", line 94: major,minor,dot =
[int(x) for x in m4env['GCC_VERSION'].split('.')]
>> You could add a
"print m4env['GCC_VERSION']" in line 93 of file
/home/mahmood/gem5/build/libelf/SConscript to see what exactly is the
version being used. From the error I'd say it contains 2 numbers instead
of 3. Lluis -- "And it's much the same thing with knowledge, for
whenever you learn something new, the whole world becomes that much
richer." -- The Princess of Pure Reason, as told by Norton Juster in The
Phantom Tollbooth _______________________________________________
gem5-users mailing list [email protected] [1]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [2]
>
> -- //
Naderan *Mahmood; _______________________________________________
gem5-users mailing list [email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Links:
------
[1] mailto:[email protected]
[2]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users