apache / mxnet

Lightweight, Portable, Flexible Distributed/Mobile Deep Learning with Dynamic, Mutation-aware Dataflow Dep Scheduler; for Python, R, Julia, Scala, Go, Javascript and more
https://mxnet.apache.org
Apache License 2.0
20.78k stars 6.79k forks source link

Error compiling mxnet #7044

Open BenEngbers opened 7 years ago

BenEngbers commented 7 years ago

After adding Openblas, OpenCV, leptonica-devel and tesseract-devel I have tried to compile mxnet from source. On both my machines this process fails.

Environment info

Operating System: Fedora 25

Compiler: Standard gcc?

Package used (Python/R/Scala/Julia): NA

MXNet version: NA

Or if installed from source:

MXNet commit hash (git rev-parse HEAD): cac919b1cfe70d213058aaed363fe84a73a14ab3

Error Message:

Please paste the full error message, including stack trace. g++ -std=c++11 -c -DMSHADOW_FORCE_STREAM -Wall -Wsign-compare -O3 -DNDEBUG=1 -I/home/bengbers/tmp/mxnet/mshadow/ -I/home/bengbers/tmp/mxnet/dmlc-core/include -fPIC -I/home/bengbers/tmp/mxnet/nnvm/include -I/home/bengbers/tmp/mxnet/dlpack/include -Iinclude -funroll-loops -Wno-unused-variable -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-local-typedefs -msse3 -DMSHADOW_USE_CUDA=0 -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMSHADOW_USE_PASCAL=0 -DMXNET_USE_OPENCV=1 -I/usr/include/opencv -fopenmp -I/usr/include/openblas -DMXNET_USE_NVRTC=0 -MMD -c src/operator/contrib/count_sketch.cc -o build/src/operator/contrib/count_sketch.o g++ -std=c++11 -c -DMSHADOW_FORCE_STREAM -Wall -Wsign-compare -O3 -DNDEBUG=1 -I/home/bengbers/tmp/mxnet/mshadow/ -I/home/bengbers/tmp/mxnet/dmlc-core/include -fPIC -I/home/bengbers/tmp/mxnet/nnvm/include -I/home/bengbers/tmp/mxnet/dlpack/include -Iinclude -funroll-loops -Wno-unused-variable -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-local-typedefs -msse3 -DMSHADOW_USE_CUDA=0 -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMSHADOW_USE_PASCAL=0 -DMXNET_USE_OPENCV=1 -I/usr/include/opencv -fopenmp -I/usr/include/openblas -DMXNET_USE_NVRTC=0 -MMD -c src/operator/contrib/dequantize.cc -o build/src/operator/contrib/dequantize.o g++: interne compilerfout: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. Zie http://bugzilla.redhat.com/bugzilla voor instructies. Makefile:270: recept voor doel 'build/src/operator/tensor/control_flow_op.o' is mislukt make: [build/src/operator/tensor/control_flow_op.o] Fout 4 make: Wachten op onvoltooide taken...

Minimum reproducible example

if you are using your own code, please provide a short script that reproduces the error.

Steps to reproduce

or if you are running standard examples, please provide the commands you have run that lead to the error.

  1. Add the following lines to config.mk: USE_BLAS=openblas ADD_CFLAGS +=-I/usr/include/openblas ADD_LDFLAGS += -lopencv_core -lopencv_imgproc -lopencv_imgcodecs
  2. make -j$(nproc)

What have you tried to solve it?

1. 2. 3.

BenEngbers commented 7 years ago

I have upgraded both my machines to Fedora 26. Both machines still produce the same error

szha commented 7 years ago

This issue is closed due to lack of activity in the last 90 days. Feel free to ping me to reopen if this is still an active issue. Thanks! Also, do please check out our forum (and Chinese version) for general "how-to" questions.

ajinkyaghorpade commented 6 years ago

I'm getting similar issue. @BenEngbers did you manage to resolve the issue?

BenEngbers commented 6 years ago

No, and I never heard anything of Buzilla ;-(

Ben

Ajinkya Ghorpade schreef op 28-11-2017 6:38:

I'm getting similar issue. @BenEngbers [1] did you manage to resolve the issue?

-- You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub [2], or mute the thread [3].

*

Links:

[1] https://github.com/benengbers [2] https://github.com/apache/incubator-mxnet/issues/7044#issuecomment-347419283 [3] https://github.com/notifications/unsubscribe-auth/ALk8YWXRDdv5kDVztOslJzFVnUixa_reks5s65xRgaJpZM4OYTaF

szha commented 6 years ago

leptonica-devel and tesseract-devel

I'm not familiar with these packages. What do they provide? Looks like your complier got killed. Do you have enough RAM for compilation?

BenEngbers commented 6 years ago

Leptonica is a pedagogically-oriented open source site containing software that is broadly useful for image processing and image analysis applications.

tesseract-ocl is an Open Source OCR Engine

Sheng Zha schreef op 28-11-2017 9:06:

leptonica-devel and tesseract-devel I'm not familiar with these packages. What do they provide? Looks like your complier got killed. Do you have enough RAM for compilation?

-- You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub [1], or mute the thread [2].

*

Links:

[1] https://github.com/apache/incubator-mxnet/issues/7044#issuecomment-347444122 [2] https://github.com/notifications/unsubscribe-auth/ALk8YcjyBTSivVBX3UI06d_4i_clO94lks5s677ogaJpZM4OYTaF

lanking520 commented 5 years ago

@BenEngbers Are you still facing the same problem?