brilliant... thanks for your help On 6/13/12, Dmitry Knyaginin <[email protected]> wrote: > You obviously do not need the original line outside the try...except > statement. > > -- > Dmitry Knyaginin > > ________________________________________ > From: [email protected] [[email protected]] on behalf of > Mahmood Naderan [[email protected]] > Sent: Wednesday, June 13, 2012 6:01 PM > To: [email protected]; gem5 users mailing list > Subject: Re: [gem5-users] is it possible to use gcc/g++ 4.6.3 ?? > > That error is fixed, but still get another error: > > 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 98: > major,minor,dot = [int(x) for x in m4env['GCC_VERSION'].split('.')] > > > The modification is: > m4env = main.Clone() > if m4env['GCC']: > try: > major,minor,dot = [ int(x) for x in > m4env['GCC_VERSION'].split('.')] > except ValueError: > major,minor = [ int(x) for x in m4env['GCC_VERSION'].split('.')] > major,minor,dot = [int(x) for x in m4env['GCC_VERSION'].split('.')] > if major >= 4: > m4env.Append(CCFLAGS=['-Wno-pointer-sign']) > > > > On 6/13/12, Ali Saidi <[email protected]> wrote: >> >> >> You really need to try and solve problem by yourself. The error is >> pretty clearly stated: >> >> IndentationError: unindent does not match any >> outer indentation level >> >> and even spending 10 seconds googling for the >> error message returns a result. >> >> Ali >> >> On 13.06.2012 10:42, Mahmood >> Naderan wrote: >> >>> I added like this: >>> if m4env['GCC']: >>> try: >>> >> major,minor,dot = [ int(x) for x in m4env['GCC_VERSION'].split('.')] >>> >> except ValueError: >>> major,minor = [ int(x) for x in >> m4env['GCC_VERSION'].split('.')] >>> major,minor,dot = [int(x) for x in >> m4env['GCC_VERSION'].split('.')] >>> if major >= 4: >>> >> m4env.Append(CCFLAGS=['-Wno-pointer-sign']) >>> >>> but get: >>> Reading >> SConsopts >>> File "/home/mahmood/gem5/build/libelf/SConscript", line 98 >>> >> >>> major,minor,dot = [int(x) for x in m4env['GCC_VERSION'].split('.')] >>> >> >>> ^ >>> >>> IndentationError: unindent does not match any outer >> indentation level >>> >>> On 6/13/12, Dmitry Knyaginin >> <[email protected]> wrote: >>> >>>> You could do the following: >> try: major,minor,dot = [ int(x) for x in >> m4env['GCC_VERSION'].split('.')] except ValueError: major,minor = [ >> int(x) for x in m4env['GCC_VERSION'].split('.')] -- Dmitry Knyaginin >> ________________________________________ From: >> [email protected] [5] [[email protected] [6]] on >> behalf of Mahmood Naderan [[email protected] [7]] Sent: Wednesday, >> June 13, 2012 5:31 PM To: [email protected] [8]; gem5 users mailing list >> Subject: Re: [gem5-users] is it possible to use gcc/g++ 4.6.3 ?? 8821 I >> use Is there any quik way to fix it? at ths time I am not ready to >> update my repository due to modifications. On 6/13/12, Ali Saidi >> <[email protected] [9]> wrote: >>>> >>>>> 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: variant_dir = joinpath(build_root, 'libelf')) File >> "/usr/lib/scons/SCons/Script/SConscript.py", line 260: File >> "/home/mahmood/gem5/build/libelf/SConscript", line 95: >>>>> >>>>>> >> majo >>>>> blockquote> = [int(x) for x in m4env['GCC_VERSION'].split('.')] >> On 6/13/12, Lluís Vilanova < Mahmoo >>>>> >>>>>> 1010ff 2px soli >>>>> t:5px; >> width:100%"> Checking for C header file fenv.h... yes Reading SConsopts >> ValueError: need more than 2 values to unpack: File >>>>> >>>>>> >> /SCons/Script/SConscript >>>>> 1: 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/SConscr >>>>> >>>>>> >> tyle="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; >> width:100%"> >>>>> id; margin-left:5px; width:100%">You could add a "print >> m4env['GCC_VERSION']" i >>>>> >>>>>> rom 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] [1] >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [2][2] -- // >> Naderan *Mahmood; _______________________________________________ >> gem5-users mailing list [email protected] [3] >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [4] Links: ------ >> [1] mailto:gem5-users@g >>>>> >>>>>> an/listinfo/gem5-users >>>>> >>>>>> >>>> >> -- // Naderan *Mahmood; _______________________________________________ >> gem5-users mailing list [email protected] [10] >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [11] >> _______________________________________________ gem5-users mailing list >> [email protected] [12] >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [13] >>> >>> -- // >> 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 >> [3] >> mailto:[email protected] >> [4] >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> [5] >> mailto:[email protected] >> [6] >> mailto:[email protected] >> [7] mailto:[email protected] >> [8] >> mailto:[email protected] >> [9] mailto:[email protected] >> [10] >> mailto:[email protected] >> [11] >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> [12] >> mailto:[email protected] >> [13] >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> > > > -- > // Naderan *Mahmood; > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >
-- // Naderan *Mahmood; _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
