• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 536
  • Last Modified:

Solaris CC - could not open file "ir.out"

I am trying to build an C++ program (Tuxedo server) which I have inherited.

I get the following error:

Could not open file "ir.out"
SunWS_cache: Error: Error occurred in invoked compiler, exit status = 1(2).  Aborting....
CMDTUX_CAT:1832: ERROR: can't execute CC -w -w  -D_REENTRANT -mt -R/usr/lib/lwp   -I$TUXDIR/include -o

The compiler is /app/SUNWspro/WS6U1/bin/cc

There was an old ir.out of 0 blocks. I get the same error if I remove this.

I would appreciate any pointers as to whether e.g. this is an environmental problem.
0
tonyhoss
Asked:
tonyhoss
1 Solution
 
efnCommented:
I don't know what the real problem is, but I have encountered the same problem and I can give you a workaround that worked for me.

Rig it so the link will fail with an unresolved reference.  In my case, I delete a source file from the list in the makefile and rebuild.  The method may be different in your case.

Then restore whatever was missing and build again.  This makes the ir.out error magically disappear.  At least, it does for me.

--efn
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now