4 Replies Latest reply on Aug 10, 2012 1:32 AM by santosh.zanjurne

    Compiler driver openCC can't find "ar"

    rboehne

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

      x86_open64-4.5.1-1.x86_64.rpm

       

      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?