facebookresearch / CompilerGym

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

GLIBC version not found (required by ./compiler_gym-llvm-service) #791

Closed dejangrubisic closed 1 year ago

dejangrubisic commented 1 year ago

❓ Questions and Help

I am trying to install CompilerGym on the school cluster with GLIBC_2.17. I am able to pip install CompilerGym, but when I run:

compiler_gym.make("llvm-v0") # or gym.make("llvm-v0")

I am getting the error:

 ./compiler_gym-llvm-service: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by ./compiler_gym-llvm-service)
./compiler_gym-llvm-service: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by ./compiler_gym-llvm-service)

Since GLIBC is the core library of OS, it is hard to install it without sudo rights. Do you know the way this problem could be bypassed?

ChrisCummins commented 1 year ago

It sounds like your school's cluster is running an older OS. Currently we only support fairly recent distros. Your two options are:

  1. Build from source on the school OS.
  2. Run inside a container like docker.

The second option may be easier.

Cheers, Chris

dejangrubisic commented 1 year ago

Thank you, Chris, this makes sense. I ended up creating a container that works as expected :)

ChrisCummins commented 1 year ago

Glad to hear!