{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/CNTK/issues/729","repository_url":"https://api.github.com/repos/Microsoft/CNTK","labels_url":"https://api.github.com/repos/Microsoft/CNTK/issues/729/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/CNTK/issues/729/comments","events_url":"https://api.github.com/repos/Microsoft/CNTK/issues/729/events","html_url":"https://github.com/Microsoft/CNTK/issues/729","id":168545101,"number":729,"title":"CNTK compile Error on RedHat Linux","user":{"login":"funguy74","id":17862588,"avatar_url":"https://avatars.githubusercontent.com/u/17862588?v=3","gravatar_id":"","url":"https://api.github.com/users/funguy74","html_url":"https://github.com/funguy74","followers_url":"https://api.github.com/users/funguy74/followers","following_url":"https://api.github.com/users/funguy74/following{/other_user}","gists_url":"https://api.github.com/users/funguy74/gists{/gist_id}","starred_url":"https://api.github.com/users/funguy74/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/funguy74/subscriptions","organizations_url":"https://api.github.com/users/funguy74/orgs","repos_url":"https://api.github.com/users/funguy74/repos","events_url":"https://api.github.com/users/funguy74/events{/privacy}","received_events_url":"https://api.github.com/users/funguy74/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-31T23:47:53Z","updated_at":"2016-07-31T23:47:53Z","closed_at":null,"body":"I tried to install CNTK on redhat linux (6.7).  Due to some restriction of library installation, I installed some libraries needed for CNTK installation in my locals. So, my Config.make becomes like this:\r\n\r\n> BUILDTYPE=release\r\n> MATHLIB=mkl\r\n> MKL_PATH=/home/sr3/jaey1.kim/tools/CNTKCustomMKL\r\n> MKL_THREADING=parallel\r\n> CNTK_CUSTOM_MKL_VERSION=1\r\n> CUDA_PATH=/apps/cuda/cuda7.5\r\n> GDK_PATH=/home/sr3/jaey1.kim/local\r\n> CUB_PATH=/apps/cuda/cub-1.4.1\r\n> CUDNN_PATH=/home/sr3/jaey1.kim/tools/cudnn-4.0\r\n> KALDI_PATH=/home/sr3/jaey1.kim/tools/kaldi-trunk\r\n> OPENCV_PATH=/apps/OpenCV/OpenCV-3.1.0_cuda\r\n\r\n\r\nPreviously, when I install CNTK in Ubuntu, I haven't had any issue but now, I have following compile errors:\r\n\r\n> mpic++ -c Source/Math/CUDAPageLockedMemAllocator.cpp -o .build/Source/Math/CUDAPageLockedMemAllocator.o -D_POSIX_SOURCE -D_XOPEN_SOURCE=600 -D__USE_XOPEN2K -std=c++11 -DUSE_CUDNN -DUSE_MKL -DNDEBUG -DNO_SYNC  -DKALDI_DOUBLEPRECISION=0 -DHAVE_POSIX_MEMALIGN -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_ATLAS -DHAVE_OPENFST_GE_10400 -msse4.1 -mssse3 -std=c++0x -fopenmp -**fpermissive** -fPIC -Werror -fcheck-new -Wno-error=literal-suffix -g -O4 -ISource/Common/Include -ISource/CNTKv2LibraryDll -ISource/CNTKv2LibraryDll/API -ISource/Math -ISource/CNTK -ISource/ActionsLib -ISource/ComputationNetworkLib -ISource/SGDLib -ISource/SequenceTrainingLib -ISource/CNTK/BrainScript -ISource/Readers/ReaderLib -I/home/sr3/jaey1.kim/local/mpi/include -I/home/sr3/jaey1.kim/local/include/nvidia/gdk -I/apps/cuda/cub-1.4.1 -I/apps/cuda/cuda7.5/include -I/home/sr3/jaey1.kim/tools/cudnn-4.0/cuda/include -I/home/sr3/jaey1.kim/tools/CNTKCustomMKL/1/include -I/home/sr3/jaey1.kim/tools/kaldi-trunk/src -I/home/sr3/jaey1.kim/tools/kaldi-trunk/tools/ATLAS/include -I/home/sr3/jaey1.kim/tools/kaldi-trunk/tools/openfst/include -I/apps/OpenCV/OpenCV-3.1.0_cuda/include -ISource/Readers/CNTKTextFormatReader -MD -MP -MF .build/Source/Math/Matrix.d\r\n> In file included from Source/Math/BlockHandlerSSE.h:11:0,\r\n>                  from Source/Math/BlockHandlerSSE.cpp:10:\r\n> Source/Math/BlockMultiplierMatrixUtil.h: In function 'ScalarT* Microsoft::MSR::CNTK::CreateAlignedMatrix(int, int, ScalarT, int)':\r\n> Source/Math/BlockMultiplierMatrixUtil.h:84:85: **error: there are no arguments to'aligned_alloc' that depend on a template parameter, so a declaration of 'aligned_alloc' must be available [-Werror=permissive]**\r\n>          ScalarT* ret = (ScalarT*) aligned_alloc(alignment, sizeof(ScalarT) * (m * n));\r\n\r\nThis type error generating \"there are no arguments to some function that depend on a template parameter...\" comes from 2 phase lookup. What I found for solutions are\r\n\r\n1) -fpermissive make this as warning to go over. Clearly, there is -fpermissive option in the mpic++ compile above but in some how, it is not working now. ( I don't know why). \r\n\r\n2) Second solution is to provide explicit name space such as Base::aligned_alloc ..  I tried std:: but it complained that aligned-alloc is not included in std\r\n\r\nSo, could you give me any suggestion to fix this problem? For example, I like to try second method by providing explicit name space of aligned_alloc. For that case, what name space I need to provide?\r\n\r\nOr, if you have any other suggestion, I will be really appreciating it.\r\n\r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"funguy74"}}