Please could you attach/reference buildable sources? that's only the case if build with -pg? > However if I export the CFLAGS variable with -O0 it works properly. please could you recheck with -O1, and then add the optimization flags which make up -O2 one by one? see the docs.