error: declarations for shader output `gl_BackSecondaryColor` are in gl_PerVertex and gl_PerVertex It looks like the same problem as bug 104668 and bug 104777. 4195eed961ccfe404ae81b9112189fc93a254ded fixes the problem.