[gem5-users] Re: How to modify the simulator to load shared libs

2020-06-14 Thread Shougang Yuan via gem5-users
Hi, Ciro, I tried as what you mentioned again and again, I symlinked all the libraries to a directory and use the "--redirects" option to redirect the /lib64 to this directory, but the simulation still shows the same error, it can not load these shared libs. So this --redirect option may not be a

[gem5-users] Re: How to modify the simulator to load shared libs

2020-06-09 Thread Ciro Santilli via gem5-users
Hmmm, it is there on develop: https://github.com/gem5/gem5/blob/96fce476785a834f102ae69a895e661cf08e47cd/configs/common/Options.py#L402 On Tue, Jun 9, 2020 at 4:31 PM Shougang Yuan wrote: > > I tried as you said, but the error message is "error: no such option: > --redirects", and I check the op

[gem5-users] Re: How to modify the simulator to load shared libs

2020-06-09 Thread Shougang Yuan via gem5-users
I tried as you said, but the error message is "error: no such option: --redirects", and I check the options.py file in the configs/common directory, it seems that this option has been deprecated? Or is there anything I misunderstand? Best regards. Shougang On Tue, Jun 9, 2020 at 10:40 AM Ciro San

[gem5-users] Re: How to modify the simulator to load shared libs

2020-06-09 Thread Ciro Santilli via gem5-users
--redirects /lib64=/path/to/where/you/symlinked/everything The linker will search in /lib64 normally, then gem5 will redirect that file read to the path with all symlinks. On Tue, Jun 9, 2020 at 3:26 PM Shougang Yuan wrote: > > Hi, Crio, > > Could you please give more hints about redirect /lib64

[gem5-users] Re: How to modify the simulator to load shared libs

2020-06-09 Thread Shougang Yuan via gem5-users
Hi, Crio, Could you please give more hints about redirect /lib64 or that directory? I can understand syslink the needed shared library into a directory, and after that, you mean I need to redirect the lib64 to this directory or? Best regards. Shougang On Tue, Jun 9, 2020 at 2:36 AM Ciro Santilli

[gem5-users] Re: How to modify the simulator to load shared libs

2020-06-08 Thread Ciro Santilli via gem5-users
One thing to try if you are desperate: symlink every needed shared library into a directory, and then redirect /lib64 or that directory. I'm pretty sure this should work. I'm not sure why LD_LIBRARY_PATH does not work. I would dig dieeper and try to understand that, theoretically it feels like it