You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/05/11 05:25:21 UTC
[GitHub] szha opened a new issue #10898: usage of thread_local causes
compilation to fail on osx 10.10
szha opened a new issue #10898: usage of thread_local causes compilation to fail on osx 10.10
URL: https://github.com/apache/incubator-mxnet/issues/10898
## Description
(Brief description of the problem in no more than 2 sentences.)
## Environment info (Required)
OSX 10.10
## Build info (Required if built from source)
Compiler (gcc/clang/mingw/visual studio): clang
MXNet commit hash: HEAD as of yesterday
## Error Message:
```bash
...
g++ -std=c++11 -c -DMSHADOW_FORCE_STREAM -Wall -Wsign-compare -O3 -DNDEBUG=1 -I/Users/travis/build/dmlc/mxnet-distro/mxnet-build/3rdparty/mshadow/ -I/Users/travis/build/dmlc/mxnet-distro/mxnet-build/3rdparty/dmlc-core/include -fPIC -I/Users/travis/build/dmlc/mxnet-distro/mxnet-build/3rdparty/nnvm/include -I/Users/travis/build/dmlc/mxnet-distro/mxnet-build/3rdparty/dlpack/include -I/Users/travis/build/dmlc/mxnet-distro/mxnet-build/3rdparty/nnvm/tvm/include -Iinclude -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-local-typedefs -msse3 -mf16c -DMSHADOW_USE_CUDA=0 -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -I/System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks/vecLib.framework/Versions/Current/Headers/ -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMSHADOW_USE_PASCAL=0 -DMXNET_USE_SIGNAL_HANDLER=1 -DMXNET_USE_OPENCV=1 -I/Users/travis/build/dmlc/mxnet-distro/deps/include/opencv -DMXNET_USE_LAPACK -I/Users/travis/build/dmlc/mxnet-distro/deps/include -ffunction-sections -fdata-sections -DMXNET_USE_DIST_KVSTORE -I/Users/travis/build/dmlc/mxnet-distro/mxnet-build/3rdparty/ps-lite/include -I/Users/travis/build/dmlc/mxnet-distro/deps/include -DMXNET_USE_NCCL=0 -DMXNET_USE_LIBJPEG_TURBO=0 -MMD -c src/operator/nn/dropout.cc -o build/src/operator/nn/dropout.o
[0;1;35mwarning: [0munknown warning option '-Wno-unused-local-typedefs' [-Wunknown-warning-option][0m
In file included from src/operator/nn/dropout.cc:27:
In file included from src/operator/nn/./dropout-inl.h:31:
In file included from include/mxnet/operator.h:33:
In file included from /Users/travis/build/dmlc/mxnet-distro/mxnet-build/3rdparty/nnvm/include/nnvm/node.h:13:
In file included from /Users/travis/build/dmlc/mxnet-distro/mxnet-build/3rdparty/nnvm/include/nnvm/./base.h:12:
In file included from /Users/travis/build/dmlc/mxnet-distro/mxnet-build/3rdparty/dmlc-core/include/dmlc/memory.h:12:
[1m/Users/travis/build/dmlc/mxnet-distro/mxnet-build/3rdparty/dmlc-core/include/dmlc/./thread_local.h:26:9: [0m[0;1;35mwarning: [0m[1mWarning: CXX11 thread_local is not formally supported [-W#pragma-messages][0m
#pragma message("Warning: CXX11 thread_local is not formally supported")
[0;1;32m ^
[0mIn file included from src/operator/nn/dropout.cc:27:
[1msrc/operator/nn/./dropout-inl.h:378:12: [0m[0;1;31merror: [0m[1mthread-local storage is not supported for the current target[0m
static thread_local DropoutOp<xpu, DType> op;
[0;1;32m ^
[0m[1m/Users/travis/build/dmlc/mxnet-distro/mxnet-build/3rdparty/mshadow/mshadow/base.h:922:8: [0m[0;1;30mnote: [0mexpanded from macro 'MSHADOW_REAL_TYPE_SWITCH'[0m
{__VA_ARGS__} \
[0;1;32m ^
[0mIn file included from src/operator/nn/dropout.cc:27:
[1msrc/operator/nn/./dropout-inl.h:378:12: [0m[0;1;31merror: [0m[1mthread-local storage is not supported for the current target[0m
[1m/Users/travis/build/dmlc/mxnet-distro/mxnet-build/3rdparty/mshadow/mshadow/base.h:928:8: [0m[0;1;30mnote: [0mexpanded from macro 'MSHADOW_REAL_TYPE_SWITCH'[0m
{__VA_ARGS__} \
[0;1;32m ^
[0mIn file included from src/operator/nn/dropout.cc:27:
[1msrc/operator/nn/./dropout-inl.h:378:12: [0m[0;1;31merror: [0m[1mthread-local storage is not supported for the current target[0m
[1m/Users/travis/build/dmlc/mxnet-distro/mxnet-build/3rdparty/mshadow/mshadow/base.h:934:8: [0m[0;1;30mnote: [0mexpanded from macro 'MSHADOW_REAL_TYPE_SWITCH'[0m
{__VA_ARGS__} \
[0;1;32m ^
[0mIn file included from src/operator/nn/dropout.cc:27:
[1msrc/operator/nn/./dropout-inl.h:400:12: [0m[0;1;31merror: [0m[1mthread-local storage is not supported for the current target[0m
static thread_local DropoutOp<xpu, DType> op;
[0;1;32m ^
[0m[1m/Users/travis/build/dmlc/mxnet-distro/mxnet-build/3rdparty/mshadow/mshadow/base.h:922:8: [0m[0;1;30mnote: [0mexpanded from macro 'MSHADOW_REAL_TYPE_SWITCH'[0m
{__VA_ARGS__} \
[0;1;32m ^
[0mIn file included from src/operator/nn/dropout.cc:27:
[1msrc/operator/nn/./dropout-inl.h:400:12: [0m[0;1;31merror: [0m[1mthread-local storage is not supported for the current target[0m
[1m/Users/travis/build/dmlc/mxnet-distro/mxnet-build/3rdparty/mshadow/mshadow/base.h:928:8: [0m[0;1;30mnote: [0mexpanded from macro 'MSHADOW_REAL_TYPE_SWITCH'[0m
{__VA_ARGS__} \
[0;1;32m ^
[0mIn file included from src/operator/nn/dropout.cc:27:
[1msrc/operator/nn/./dropout-inl.h:400:12: [0m[0;1;31merror: [0m[1mthread-local storage is not supported for the current target[0m
[1m/Users/travis/build/dmlc/mxnet-distro/mxnet-build/3rdparty/mshadow/mshadow/base.h:934:8: [0m[0;1;30mnote: [0mexpanded from macro 'MSHADOW_REAL_TYPE_SWITCH'[0m
{__VA_ARGS__} \
[0;1;32m ^
[0m2 warnings generated.
g++ -std=c++11 -c -DMSHADOW_FORCE_STREAM -Wall -Wsign-compare -O3 -DNDEBUG=1 -I/Users/travis/build/dmlc/mxnet-distro/mxnet-build/3rdparty/mshadow/ -I/Users/travis/build/dmlc/mxnet-distro/mxnet-build/3rdparty/dmlc-core/include -fPIC -I/Users/travis/build/dmlc/mxnet-distro/mxnet-build/3rdparty/nnvm/include -I/Users/travis/build/dmlc/mxnet-distro/mxnet-build/3rdparty/dlpack/include -I/Users/travis/build/dmlc/mxnet-distro/mxnet-build/3rdparty/nnvm/tvm/include -Iinclude -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-local-typedefs -msse3 -mf16c -DMSHADOW_USE_CUDA=0 -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -I/System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks/vecLib.framework/Versions/Current/Headers/ -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMSHADOW_USE_PASCAL=0 -DMXNET_USE_SIGNAL_HANDLER=1 -DMXNET_USE_OPENCV=1 -I/Users/travis/build/dmlc/mxnet-distro/deps/include/opencv -DMXNET_USE_LAPACK -I/Users/travis/build/dmlc/mxnet-distro/deps/include -ffunction-sections -fdata-sections -DMXNET_USE_DIST_KVSTORE -I/Users/travis/build/dmlc/mxnet-distro/mxnet-build/3rdparty/ps-lite/include -I/Users/travis/build/dmlc/mxnet-distro/deps/include -DMXNET_USE_NCCL=0 -DMXNET_USE_LIBJPEG_TURBO=0 -MMD -c src/operator/nn/fully_connected.cc -o build/src/operator/nn/fully_connected.o
[0;1;35mwarning: [0munknown warning option '-Wno-unused-local-typedefs' [-Wunknown-warning-option][0m
2 warnings and 6 errors generated.
make: *** [build/src/operator/nn/dropout.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from src/operator/nn/fully_connected.cc:25:
In file included from src/operator/nn/./fully_connected-inl.h:30:
In file included from include/mxnet/operator.h:33:
In file included from /Users/travis/build/dmlc/mxnet-distro/mxnet-build/3rdparty/nnvm/include/nnvm/node.h:13:
In file included from /Users/travis/build/dmlc/mxnet-distro/mxnet-build/3rdparty/nnvm/include/nnvm/./base.h:12:
In file included from /Users/travis/build/dmlc/mxnet-distro/mxnet-build/3rdparty/dmlc-core/include/dmlc/memory.h:12:
[1m/Users/travis/build/dmlc/mxnet-distro/mxnet-build/3rdparty/dmlc-core/include/dmlc/./thread_local.h:26:9: [0m[0;1;35mwarning: [0m[1mWarning: CXX11 thread_local is not formally supported [-W#pragma-messages][0m
```
Fix is being tracked in #10888
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services