Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiler_gym.errors.service_errors.ServiceError #813

Open
18liumin opened this issue Aug 10, 2023 · 3 comments
Open

compiler_gym.errors.service_errors.ServiceError #813

18liumin opened this issue Aug 10, 2023 · 3 comments
Labels
Bug Something isn't working

Comments

@18liumin
Copy link

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

@18liumin 18liumin added the Bug Something isn't working label Aug 10, 2023
@avithemad
Copy link

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
Copy link
Contributor

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

@avithemad
Copy link

No issues, thanks for the reply. I hope it goes well.
Is there a future plan to support mlir based compilers as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants