Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Ensure destination directory exists before attempting to write. #17527

Closed
wants to merge 1 commit into from

Conversation

josephevans
Copy link
Contributor

Description

Make sure build destination directory exists. Fixes race condition when compiling (with GNU make) with multiple jobs (-jX).

Build fail log:

g++ -shared -fPIC -std=c++11 example/extensions/lib_custom_op/gemm_lib.cc -o build/libcustomop_lib.so -I include/mxnet /usr/bin/ld: cannot open output file build/libcustomop_lib.so: No such file or directory collect2: error: ld returned 1 exit status Makefile:676: recipe for target 'custom_op_lib' failed make: *** [custom_op_lib] Error 1 make: *** Waiting for unfinished jobs....

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant