Link to home
Start Free TrialLog in
Avatar of naseeam
naseeamFlag for United States of America

asked on

Why isn't object file created?

I'm using WindRiver 5.9.4.8 Compiler to cross compile large embedded 'C' language project.

The source code is in the hard disk on my windows computer.  The compiler is in Oracle Linux Server.

I invoke WinSCP to access Linux Server.  Now, there are Two Windows on my screen.  Window on the left has my windows directory tree.  Window on the right has my Linux directory tree.  I drag source code from my Windows machine to Linux Directory Tree.

WinSCP comes with a command shell.  I invoke make program from the command shell.  The compiler starts executing because I see dcc command on the command window.  It tries to compile first .c file but object file or .o file isn't created.  The error message is as follows:

"/tmp/dtmpBAAa25644", error:  cannot create output file  ./BOOT/Object/filename.o

Why?  Do I lack some permissions in Linux Server ?
SOLUTION
Avatar of Scott Silva
Scott Silva
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of naseeam

ASKER

I just found out that compiler license file is in different server.  In my bash profile file, the value of compiler license file variable is server which I don't have access to.  I'll talk to our IT guys if I need access to the Linux Server that contains the compiler license file.

The error message doesn't say anything about the license file.  Maybe license file isn't necessary to start compiling but it is needed to create .o file.
Avatar of naseeam

ASKER

After speaking to my IT department, I shouldn't need access to server that contains the license.  They're saying license file is accessed without me having access to the Linux Server that contains the license file.  This means it shouldn't be license file access issue.

Is it a write access issue?  I dragged source code from Windows to Linux Server.  This means I have access beyond home directory?

What is the root cause of problem?  If I use something like puTTy, is it going to solve the problem?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of naseeam

ASKER

It is writing output to Object folder but it doesn't exist.  I created Object folder.  Then, the build worked.

I was expecting makefile to create Object folder but I didn't see any make directory command in the makefile.
Avatar of naseeam

ASKER

Expert found the root cause of the problem.

There could have been so many possibilities but the expert pointed to the root cause.