facebookresearch / CompilerGym

Reinforcement learning environments for compiler and program optimization tasks
https://compilergym.ai/
MIT License
879 stars 123 forks source link

compiler_gym.errors.service_errors.ServiceError #813

Open 18liumin opened 11 months ago

18liumin commented 11 months ago

compiler_gym.COMPILER_GYM_ENVS ['gcc-v0', 'llvm-v0', 'llvm-ic-v0', 'llvm-codesize-v0', 'llvm-autophase-ic-v0', 'llvm-autophase-codesize-v0', 'llvm-ir-ic-v0', 'llvm-ir-codesize-v0', 'loop_tool-v0'] env = gym.make("llvm-autophase-ic-v0") ./compiler_gym-llvm-service: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory ServiceError Service terminated with returncode: 127 (attempt 1) ./compiler_gym-llvm-service: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory ServiceError Service terminated with returncode: 127 (attempt 2) ./compiler_gym-llvm-service: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory ServiceError Service terminated with returncode: 127 (attempt 3) ./compiler_gym-llvm-service: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory ServiceError Service terminated with returncode: 127 (attempt 4) ./compiler_gym-llvm-service: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory ServiceError Service terminated with returncode: 127 (attempt 5) Traceback (most recent call last): File "", line 1, in File "/usr1/l00683357/anaconda3/envs/python3/lib/python3.7/site-packages/gym/envs/registration.py", line 235, in make return registry.make(id, kwargs) File "/usr1/l00683357/anaconda3/envs/python3/lib/python3.7/site-packages/gym/envs/registration.py", line 129, in make env = spec.make(kwargs) File "/usr1/l00683357/anaconda3/envs/python3/lib/python3.7/site-packages/gym/envs/registration.py", line 90, in make env = cls(**_kwargs) File "/usr1/l00683357/anaconda3/envs/python3/lib/python3.7/site-packages/compiler_gym/envs/llvm/llvm_env.py", line 334, in init "token_value": [], File "/usr1/l00683357/anaconda3/envs/python3/lib/python3.7/site-packages/compiler_gym/service/client_service_compiler_env.py", line 210, in init opts=self._connection_settings, File "/usr1/l00683357/anaconda3/envs/python3/lib/python3.7/site-packages/compiler_gym/service/connection.py", line 646, in init self._establish_connection() File "/usr1/l00683357/anaconda3/envs/python3/lib/python3.7/site-packages/compiler_gym/service/connection.py", line 657, in _establish_connection self.connection = self._create_connection(self.endpoint, self.opts) File "/usr1/l00683357/anaconda3/envs/python3/lib/python3.7/site-packages/compiler_gym/service/connection.py", line 719, in _create_connection f"Failed to create connection to {endpoint_name} after " compiler_gym.errors.service_errors.ServiceError: Failed to create connection to compiler_gym-llvm-service after 0.5 seconds (5 attempts made). Last error (ServiceError): Service terminated with returncode: 127

avithemad commented 2 months ago

Is this repository no longer active? I just went through the getting started and I get this same issue. LLVM should work out of the box right @ChrisCummins

ChrisCummins commented 1 month ago

Apologies @avithemad, I've had a lot on my plate recently and CompilerGym work has had to take a backseat. Sorry about this, you're right, LLVM should work right out of the box. I'll hopefully get around to taking a look at this issue soon.

Cheers, Chris