This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
compiling error with the latest git checkout code #354
Comments
Please update mshadow, dmlc-core, ps-lite to newest version too. |
I think it was due std::function was not included in default namespace. I will push a fix soon. |
@kaishijeng This should be fixed, can you check again? |
TQ, It is OK now. Thanks, |
anirudh2290
pushed a commit
to anirudh2290/mxnet
that referenced
this issue
Jan 11, 2018
apache#354) * 3rd party s3 * keep the env variable backward compatible
iblislin
added a commit
to iblislin/incubator-mxnet
that referenced
this issue
Mar 18, 2018
joseph-wakeling-sociomantic
added a commit
to joseph-wakeling-sociomantic/mxnet
that referenced
this issue
Mar 23, 2018
https://github.com/apache/incubator-mxnet/releases/tag/1.1.0 A quite extended amount of manual work was needed here to resolve all the conflicts, almost none due to the tsunami fork! Some diffs seemed to survive the merge, and were fixed via manually checking out the files in question from the upstream 1.1.0 tag. * 3rdparty/cub ()...05eb57fa(05eb57fa) (1 commits) > Merge pull request sociomantic-tsunami#1 from ptrendx/update * 3rdparty/googletest ()...release-1.8.0(ec44c6c) (1 commits) > Merge pull request apache#821 from mazong1123/master * 3rdparty/openmp ()...37c7212(37c7212) (1 commits) > Merging r317115: * 3rdparty/cub ()...05eb57fa(05eb57fa) (1 commits) > Merge pull request sociomantic-tsunami#1 from ptrendx/update * 3rdparty/googletest ()...release-1.8.0(ec44c6c) (1 commits) > Merge pull request apache#821 from mazong1123/master * 3rdparty/openmp ()...37c7212(37c7212) (1 commits) > Merging r317115: * dmlc-core 87b7ffa(87b7ffa)...6389c10(6389c10) (20 commits) > Fix symbol demangling on stacktraces under Linux. (apache#356) > Add more environment variables to support 3rd-party S3 implementations (apache#354) > add qid as ranklib format (apache#317) > Make choice of archiver configurable (apache#352) > Fix warnings in unittest_lockfree.cc, fix travis CI (apache#347) (...) * mshadow 2d7780c(2d7780c)...16ac8cd(16ac8cd) (5 commits) > Add fully qualified type on define default_real_t (apache#317) > fix AddTakeGradLargeBatch for CPU. close apache#235 (apache#316) > fix float16 min and max values (apache#315) > [Windows] make Packet::size constexpr (apache#313) > add GetRndEngine (apache#308) * nnvm e4a138a(e4a138a)...7a052d6(7a052d6) (3 commits) > [SYMBOL] Add __iter__ and GetChildren for symbol (apache#268) > API call to get symbol output count (apache#270) > [FRONTEND] Fix mxnet multi outputs (apache#271)
eric-haibin-lin
pushed a commit
to eric-haibin-lin/mxnet
that referenced
this issue
Apr 4, 2018
x = np.transpose(img, (2, 0, 1))[np.newaxis, :] TypeError: an integer is required
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I just checkout the code and issue make -j4 to compile on my ubuntu machine (14.04).
It gives me the following errors:
g++ -std=c++0x -c -DMSHADOW_FORCE_STREAM -Wall -O3 -I./mshadow/ -I./dmlc-core/include -fPIC -Iinclude -msse3 -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -DMSHADOW_USE_CUDA=0 -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMXNET_USE_OPENCV=1
pkg-config --cflags opencv
-fopenmp -c src/ndarray/unary_function.cc -o build/ndarray/unary_function.oIn file included from src/ndarray/./unary_function-inl.h:9:0,
from src/ndarray/unary_function.cc:7:
src/ndarray/./../common/tblob_op_registry.h:86:16: error: ‘function’ in namespace ‘std’ does not name a template type
typedef std::function<void (const std::vector &in,
^
src/ndarray/./../common/tblob_op_registry.h:90:3: error: ‘OpType’ does not name a type
OpType op;
^
src/ndarray/./../common/tblob_op_registry.h:96:3: warning: ‘mxnet::ndarray::make_TBlobOpRegEntry_square__DEVICE’ defined but not used [-Wunused-variable]
make_ ## TBlobOpRegEntry ## _ ## Name ## __ ## DEV ## =
^
src/ndarray/./unary_function-inl.h:33:3: note: in expansion of macro ‘MXNET_REGISTER_TBLOB_FUN’
MXNET_REGISTER_TBLOB_FUN(Name, DEVICE)
^
src/ndarray/./unary_function-inl.h:38:1: note: in expansion of macro ‘REGISTER_MSHADOW_UNARY’
REGISTER_MSHADOW_UNARY(square, op::mshadow_op::square)
^
src/ndarray/./../common/tblob_op_registry.h:96:3: warning: ‘mxnet::ndarray::make_TBlobOpRegEntry_sqrt__DEVICE’ defined but not used [-Wunused-variable]
make_ ## TBlobOpRegEntry ## _ ## Name ## __ ## DEV ## =
^
src/ndarray/./unary_function-inl.h:33:3: note: in expansion of macro ‘MXNET_REGISTER_TBLOB_FUN’
MXNET_REGISTER_TBLOB_FUN(Name, DEVICE)
^
src/ndarray/./unary_function-inl.h:41:1: note: in expansion of macro ‘REGISTER_MSHADOW_UNARY’
REGISTER_MSHADOW_UNARY(sqrt, op::mshadow_op::square_root)
^
Makefile:104: recipe for target 'build/ndarray/unary_function.o' failed
make: *** [build/ndarray/unary_function.o] Error 1
make: *** Waiting for unfinished jobs....
Appreciate if someone can fix the above issue
Thanks,
Kaishi
The text was updated successfully, but these errors were encountered: