-
Notifications
You must be signed in to change notification settings - Fork 6.8k
CMake will modify the content in 3rdparty/dmlc-core #15575
Comments
Hey, this is the MXNet Label Bot. |
Here is relevant discussion thread: dmlc/dmlc-core#432 (review) |
This is a big annoyance for MXNet developers. |
@apeforest @larroy I plan to submit a pull request soon so that the CMake generated header will not overwrite |
Filed a PR: dmlc/dmlc-core#551. Once that's merged, we can upgrade dmlc-core submodule inside MXNet. |
@hcho3 Could you please file a PR to upgrade dmlc-core module in MXNet? Let me know if you need help. Thanks! |
@apeforest You should close this, now that #16149 is merged. |
Thanks for the quick fix. |
Description
When building MXNet with CMake on Mac, the file include/dmlc/build_config.h under 3rdparty/dmlc-core is always modified leaving an unclean git trace.
It would be great to fix this to make CMake experience better.
Environment info (Required)
Error Message:
diff --git a/include/dmlc/build_config.h b/include/dmlc/build_config.h
index 999d478..2a6629d 100644
--- a/include/dmlc/build_config.h
+++ b/include/dmlc/build_config.h
@@ -1,36 +1,24 @@
-/*!
#ifndef DMLC_BUILD_CONFIG_H_
#define DMLC_BUILD_CONFIG_H_
-/* default logic for fopen64 */
-#if DMLC_USE_FOPEN64 && \
+/* #undef DMLC_FOPEN_64_PRESENT */
+#if !defined(DMLC_FOPEN_64_PRESENT) && DMLC_USE_FOPEN64
#define DMLC_EMIT_FOPEN64_REDEFINE_WARNING
#define fopen64 std::fopen
#endif
-/* default logic for stack trace */
-#if (defined(GNUC) && !defined(MINGW32)\
+#define DMLC_CXXABI_H_PRESENT
+#define DMLC_EXECINFO_H_PRESENT
Minimum reproducible example
Build mxnet from source using CMake
The text was updated successfully, but these errors were encountered: