[gem5-users] Re: simulation error in gem5 v21.1

2021-08-27 Thread Boya Chen via gem5-users
Hi, Gabriel

Thanks for telling me the reason.

Best Regards
Boya
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s


[gem5-users] Re: simulation error in gem5 v21.1

2021-08-13 Thread Gabriel Busnot via gem5-users
Hi Boya,

This is indeed an argparse glitch. I am not aware of a way to specify an option 
so that the next CL argument must be considered as an argument for that option. 
https://stackoverflow.com/a/16175115/11350445 confirms this behavior and 
recommends using an '=' sign to specify an option's argument in that case. 
Prepending a space to the argument as you did also is a valid workaround.

I believe this behavior is not directly specified by argparse as "--an-option 
'--foo bar'" will fail if --foo is a valid option and succeed if not while 
"--an-option '--foo' will always fail, whether foo is a valid argument or not 
(according to my very rapid testing). This might be a bug so if you feel like 
doing a little more testing, you could fill an issue on the python bug tracker.

Best,
Gabriel
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s


[gem5-users] Re: simulation error in gem5 v21.1

2021-08-13 Thread Boya Chen via gem5-users
found the fail was caused by the -I./lib, if put -I directly after quote, then 
the se will fail.
if add one space between quote and -I,  the simulator can run.
while previous versions don't have this problem.
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s