Thanks! I think you are right, since I found out that /usr/local/bin/gcc was v4.8.5 while /usr/bin/gcc was v5.4.0. This is my mistake and edited the original post to avoid confusion. And for the parameterised geometry with vecgeom, I have tried it with G4Tet(I have erased the error message in ComputeDimension() in G4Tet to remove the bug according to the previous post), and it seemed to be not working. For this, I will use the provided link. Thanks!