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

Mac OS make failed #1579

Closed
mindx0 opened this issue Mar 5, 2016 · 8 comments
Closed

Mac OS make failed #1579

mindx0 opened this issue Mar 5, 2016 · 8 comments

Comments

@mindx0
Copy link

mindx0 commented Mar 5, 2016

include/dmlc/omp.h:13:9: warning: Warning: OpenMP is not available, project will be compiled into single-thread code. Use
OpenMP-enabled compiler to get benefit of multi-threading. [-W#pragma-messages]

pragma message("Warning: OpenMP is not available, " \

...

NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [bin/im2rec] Error 1

@sxjscience
Copy link
Member

The default gcc in OS X installed by XCode command tool does not OpenMP. http://stackoverflow.com/questions/29057437/compile-openmp-programs-with-gcc-compiler-on-os-x-yosemite

My solution is to install the Intel® Parallel Studio XE Composer and change the compilation flags. https://software.intel.com/en-us/qualify-for-free-software/student

@mindx0
Copy link
Author

mindx0 commented Mar 5, 2016

I installed OpenMP with command: brew install clang-omp
now the warning disappeared, but I still have the same error massage:

NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [bin/im2rec] Error 1

@sxjscience
Copy link
Member

Seems to be OpenCV related, can you provide the detailed log?

@mindx0
Copy link
Author

mindx0 commented Mar 5, 2016

Problem solved by editing config.mk like this

export CC = clang-omp
export CXX = clang-omp++
USE_OPENMP = 1

@celestesosmart
Copy link

I've got the same error. Can anyone provide some hints?

@pluskid
Copy link
Contributor

pluskid commented May 4, 2016

I also got the same issue. A hacky solution that works for me is to edit dmlc-core/make/dmlc.mk and remove or commenting out the following lines:

ifndef NO_OPENMP
        DMLC_CFLAGS += -fopenmp
        DMLC_LDFLAGS += -fopenmp
endif

@sxjscience
Copy link
Member

The compilation problem should be solved by #2407

@csaltos
Copy link

csaltos commented May 21, 2017

In my case the Xcode gcc was used instead of the gcc installed by homebrew (which includes support for OpenMP), so I've just added this to the config.mk:

CC=gcc-7
CXX=gcc-7
SHLIB_OPENMP_CFLAGS=-fopenmp
SHLIB_OPENMP_CXXFLAGS=-fopenmp
SHLIB_OPENMP_FCFLAGS=-fopenmp
SHLIB_OPENMP_FFLAGS=-fopenmp

And so far it seems to work.

Another minor fix for building support for Scala, I have to edit the file:

mxnet/scala-package/macros/pom.xml

And replace ${platform} by osx-x86_64 and now the call to "make scalapkg" works.

IMPORTANT: all this "fixes" should be careful reviewed, these are only attempt to make mxnet work on my laptop.

athewsey added a commit to athewsey/incubator-mxnet that referenced this issue Mar 2, 2020
athewsey added a commit to athewsey/incubator-mxnet that referenced this issue Mar 2, 2020
athewsey added a commit to athewsey/incubator-mxnet that referenced this issue Mar 2, 2020
leezu pushed a commit that referenced this issue Mar 18, 2020
* [Gluon] Return filenames from HybridBlock.export (#1579)

* [Gluon] Unittest filenames from HybridBlock.export (#1579)

* [Gluon] Perl HybridBlock.export return filenames (#1579)

* [Gluon] HybridBlock.export docstring grammar fix

* Linting - fix trailing whitespace
MoisesHer pushed a commit to MoisesHer/incubator-mxnet that referenced this issue Apr 10, 2020
* [Gluon] Return filenames from HybridBlock.export (apache#1579)

* [Gluon] Unittest filenames from HybridBlock.export (apache#1579)

* [Gluon] Perl HybridBlock.export return filenames (apache#1579)

* [Gluon] HybridBlock.export docstring grammar fix

* Linting - fix trailing whitespace
anirudh2290 pushed a commit to anirudh2290/mxnet that referenced this issue May 29, 2020
* [Gluon] Return filenames from HybridBlock.export (apache#1579)

* [Gluon] Unittest filenames from HybridBlock.export (apache#1579)

* [Gluon] Perl HybridBlock.export return filenames (apache#1579)

* [Gluon] HybridBlock.export docstring grammar fix

* Linting - fix trailing whitespace
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants