Pytorch cpp extension not working

When playing with https://github.com/happy-jihye/Cartoon-StyleGAN, PyTorch CPP extension does not work out of the box. Running under docker at least let me import the module. Update:It seems that gcc-11 causing the problem. Using gcc-10 seems to work. But I need to modify environment variables explicitly.