# 0403-005 Cannot create the specified file

**URL:** <https://community.unix.com/t/0403-005-cannot-create-the-specified-file/384006>\
**Category:** AIX\
**Created:** [September 24, 2021, 9:51am UTC](https://community.unix.com/t/0403-005-cannot-create-the-specified-file/384006 "2021-09-24T09:51:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![big123456](https://community.unix.com/letter_avatar/big123456/32/6_22734026db12803ebb3e059622ac3534.png) [@big123456](https://community.unix.com/u/big123456)\
**Post date:** [September 24, 2021, 9:51am UTC](https://community.unix.com/t/0403-005-cannot-create-the-specified-file/384006/1 "2021-09-24T09:51:10Z")

</div>

Hi,  
uname -a  
AIX sever3 1 7 00F9857E4C00

make command fails with:  
The file access permissions do not allow the specified action.  
xlc\_r: /usr/vac/bin/cc: 0403-005 Cannot create the specified file.  
make: 1254-004 The error code from the last command is 1.  
But /usr/vac/bin/cc exists and is not a folder to write on it. Where make is going to create file?  
Thanks.

---

<div class="post-metadata">

**Author:** ![Azhrei](https://community.unix.com/letter_avatar/azhrei/32/6_22734026db12803ebb3e059622ac3534.png) [@Azhrei](https://community.unix.com/u/Azhrei)\
**Post date:** [September 24, 2021, 6:01pm UTC](https://community.unix.com/t/0403-005-cannot-create-the-specified-file/384006/2 "2021-09-24T18:01:09Z")

</div>

The make command isn't producing the error, the C/Set compiler is (hence the message starting with "xlc\_r").

My bet is that the Makefile (which you didn't provide) has an error in one of the rules and the command line is telling the compiler to write the output to that file. This is an easy mistake to make as the built in variables in make can be quite... confusing... so if the rules are using said variables, they can be directing output to the wrong place.

Another possible problem is using variables without putting double quotes around them. (A command such as `sort -o $A inputfile` fails when the `A` variable is empty as the shell removes it and the command becomes `sort -o inputfile`.)

---

<div class="post-metadata">

**Author:** ![bendingrodriguez](https://community.unix.com/user_avatar/community.unix.com/bendingrodriguez/32/21971_2.png) [@bendingrodriguez](https://community.unix.com/u/bendingrodriguez)\
**Post date:** [September 25, 2021, 3:19pm UTC](https://community.unix.com/t/0403-005-cannot-create-the-specified-file/384006/3 "2021-09-25T15:19:51Z")

</div>

Hi @big123456,

please post the output (or the relevant section of it) of `make -d`.
