EC1004

1 minute readReference

Synopsis

WARNING EC1004: Could not create temp dir in [path]: [detail]

Description

eMake creates several temporary directories at startup, used for storing build output files during the execution of the build. By default eMake will create one temporary directory per eMake root, so the files can later be moved to their final location using an efficient rename operation.

This warning indicates that eMake was unable to create one of these temporary directories. The error detail provides additional information about the cause of the failure, include the system error message if available. As long as eMake is able to successfully create at least one temporary directory it will proceed to run the build, although performance may be negatively impacted. If eMake is unable to create any temporary directories it will exit with error code EC1005.

Reasons

This warning is produced as a result of an interacting with an external entity (the filesystem on the computer where eMake was invoked), so the cause of the failure could be just about anything. The error detail in the message should provide guidance as to the cause of the failure, such as Permission denied, indicating that the user the invoked eMake does not have write access to the directory.

Fixes

The resolution for this issue depends on the specific cause of the warning. Possible remedial actions include explicitly changing the temporary directory location using the --emake-tmpdir command-line option, or if that option is already in use, specifying a different directory; or implicitly changing the temporary directory location by changing the eMake root setting.