[gem5-users] Re: How to add shared libs that used by benchmarks to the simulator

2020-06-08 Thread Ciro Santilli via gem5-users
OK, the previous --redirects idea makes no sense, nevermind, I wish I could edit emails. On Mon, Jun 8, 2020 at 4:39 PM Ciro Santilli wrote: > > --redirects can be used multiple times. But not 100% sure it will be > able to replace LD_LIBRARY_PATH. Just one thing worth trying along > --redirects

[gem5-users] Re: How to add shared libs that used by benchmarks to the simulator

2020-06-08 Thread Ciro Santilli via gem5-users
--redirects can be used multiple times. But not 100% sure it will be able to replace LD_LIBRARY_PATH. Just one thing worth trying along --redirects /path/in/ld/libray/path=/usr/lib --env does change env vars, but not 100% sure is it enough to make LD_LIBRARY_PATH work. In theory it might, but not s

[gem5-users] Re: How to add shared libs that used by benchmarks to the simulator

2020-06-08 Thread Shougang Yuan via gem5-users
I do see that forum, but I need to add multiple shared libs with "LD_LIBRARY_PATH" environment variable, can I use multiple redirects to add it multiple times? I mean, Can I use it like "--redirects LD_LIBRARY_PATH=/some/path; --redirects LD_LIBRARY_PATH=/some/path" ? And also, I noticed someone i

[gem5-users] Re: How to add shared libs that used by benchmarks to the simulator

2020-06-08 Thread Ciro Santilli via gem5-users
Have you tried --redirects as mentioned at https://stackoverflow.com/questions/5054/how-to-run-a-dynamically-linked-executable-syscall-emulation-mode-se-py-in-gem5/50696098#50696098 ? On Mon, Jun 8, 2020 at 2:31 PM Shougang Yuan wrote: > > In syscall emulation mode. I tried to use --env optio

[gem5-users] Re: How to add shared libs that used by benchmarks to the simulator

2020-06-08 Thread Shougang Yuan via gem5-users
In syscall emulation mode. I tried to use --env option with myse.py, but it still shows the same error. On Mon, Jun 8, 2020 at 3:39 AM Ciro Santilli wrote: > Syscall emulation or full system? > > On Sun, Jun 7, 2020 at 10:01 PM Shougang Yuan via gem5-users > wrote: > > > > HI, All, > > > > I am

[gem5-users] Re: How to add shared libs that used by benchmarks to the simulator

2020-06-08 Thread Ciro Santilli via gem5-users
Syscall emulation or full system? On Sun, Jun 7, 2020 at 10:01 PM Shougang Yuan via gem5-users wrote: > > HI, All, > > I am trying to run some benchmarks that need some shared libs, and these > shared libs are imported by setting the environment variables > "LD_LIBRARY_PATH" if I run it on phys