AnsweredAssumed Answered

Compiler driver openCC can't find "ar"

Question asked by rboehne on Feb 8, 2012
Latest reply on Aug 10, 2012 by santosh.zanjurne

I'm running Open SuSE 12.1 x86-64.  I downloaded the rpm package for the compiler:



and installed it with rpm -ihv x86_open64-4.5.1-1.x86_64.rpm

as directed in the documentation.  I already have binutils 2.21 installed, so I didn't worry about that.


Often, C++ static archives must be made with the compiler driver, which is what I'm doing here,

but the dirver is unable to find ar at the specific location it's looking in:


$ /opt/x86_open64-4.5.1/bin/openCC -ar -o libfoo.a foo.o

openCC ERROR: cannot exec /opt/x86_open64-4.5.1/bin/ar: No such file or directory

openCC INTERNAL ERROR: /opt/x86_open64-4.5.1/bin/ar returned non-zero status 1



ar is in /usr/bin/ar and works just fine, and is in my PATH, so it appears that this

path is hard-coded in the compiler driver.


Did I miss a package, or did the packager miss something?