A small work around if someone is stumped by this bug. I found out that using libraries under /usr/lib/atlas fixes the problem. For example, instead of statically linking against /usr/lib/liblapack.a, /usr/lib/libblas.a , use /usr/lib/atlas/liblapack.a /usr/lib/atlas/libblas.a respectively. raju