I could still do some bisecting if anyone could help me building the packages ati-dri and libg. I'm using a modified PKGBUILD. I guess I don't need everything build by that script. In order to get around some compilation errors that occurs in parts I don't need anyway it would probably help to tailor the building exactly for what I need. But I don't know what is needed. Maybe someone can help on this. I attach PKGBUILD.