juliamatlab / mexjulia

embedding Julia in the MATLAB process.
MIT License
52 stars 14 forks source link

Problems building using latest Julia #41

Closed musm closed 7 years ago

musm commented 7 years ago

Julia version 0.6.0-dev.2581

>> jl.config
         build_cflags: '-O -I"C:\Julia\julia-0.6-latest\include\julia" -DJULIA_ENABLE_THREADING'
        build_ldflags: '-L"C:\Julia\julia-0.6-latest\bin\..\lib"'
         build_ldlibs: 'libjulia.dll.a'
            build_src: 'C:\Users\Mus\Documents\MATLAB\mexjulia\mexjulia.cpp'
              inc_dir: 'C:\Julia\julia-0.6-latest\include\julia'
             is_debug: 'false'
            julia_bin: 'C:\Julia\julia-0.6-latest\bin\julia.exe'
           julia_home: 'C:\Julia\julia-0.6-latest\bin'
             lib_base: 'julia'
              lib_dir: 'C:\Julia\julia-0.6-latest\bin\..\lib'
             lib_path: 'C:\Julia\julia-0.6-latest\bin\libjulia.dll'
            sys_image: 'C:\Julia\julia-0.6-latest\lib\julia\sys.dll'
    threading_enabled: 'true'

The mex command to be executed:
mex -v -largeArrayDims -L"C:\Julia\julia-0.6-latest\bin\..\lib" -outdir "C:\Users\Mus\Documents\MATLAB\mexjulia" -O -I"C:\Julia\julia-0.6-latest\include\julia" -DJULIA_ENABLE_THREADING C:\Users\Mus\Documents\MATLAB\mexjulia\mexjulia.cpp libjulia.dll.a
Verbose mode is on.
... Looking for compiler 'Microsoft Visual C++ 2015 Professional' ...
... Looking for registry setting 'HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VS7' 14.0 ...No.
... Looking for registry setting 'HKCU\SOFTWARE\Microsoft\VisualStudio\SxS\VS7' 14.0 ...No.
... Looking for registry setting 'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7' 14.0 ...Yes ('C:\Program Files (x86)\Microsoft Visual Studio 14.0\').
... Looking for file 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\cl.exe' ...Yes.
... Looking for folder 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC' ...Yes.
... Looking for registry setting 'HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.1' InstallationFolder ...No.
... Looking for registry setting 'HKCU\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.1' InstallationFolder ...No.
... Looking for registry setting 'HKLM\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v8.1' InstallationFolder ...Yes ('C:\Program Files (x86)\Windows Kits\8.1\').
... Looking for registry setting 'HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VS7' 14.0 ...No.
... Looking for registry setting 'HKCU\SOFTWARE\Microsoft\VisualStudio\SxS\VS7' 14.0 ...No.
... Looking for registry setting 'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7' 14.0 ...Yes ('C:\Program Files (x86)\Microsoft Visual Studio 14.0\').
... Looking for registry setting 'HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VC7' 14.0 ...No.
... Looking for registry setting 'HKCU\SOFTWARE\Microsoft\VisualStudio\SxS\VC7' 14.0 ...No.
... Looking for registry setting 'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VC7' 14.0 ...Yes ('C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\').
... Looking for environment variable 'VS140COMNTOOLS' ...Yes ('C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\').
... Looking for file 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe' ...Yes.
... Looking for registry setting 'HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VS7' 14.0 ...No.
... Looking for registry setting 'HKCU\SOFTWARE\Microsoft\VisualStudio\SxS\VS7' 14.0 ...No.
... Looking for registry setting 'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7' 14.0 ...Yes ('C:\Program Files (x86)\Microsoft Visual Studio 14.0\').
... Looking for file 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat' ...Yes.
... Looking for folder 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC' ...Yes.
... Looking for registry setting 'HKLM\SOFTWARE\Microsoft\Windows Kits\Installed Roots' KitsRoot10 ...Yes ('C:\Program Files (x86)\Windows Kits\10\').
Found installed compiler 'Microsoft Visual C++ 2015 Professional'.
Set PATH = C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\Bin\amd64;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\Bin\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\..\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\..\Common7\Tools;C:\Program Files (x86)\Windows Kits\8.1\\Bin\x64;C:\Program Files (x86)\Windows Kits\8.1\\Bin\x86;;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\libnvvp;C:\Program Files\Microsoft MPI\Bin\;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\libnvvp;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Users\Mustafa\.dnx\bin;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\Skype\Phone\;C:\Anaconda3;C:\Anaconda3\Scripts;C:\Anaconda3\Library\bin;C:\CMake\bin;C:\Program Files (x86)\PharosSystems\Core;C:\Program Files\TortoiseSVN\bin;C:\Program Files\MATLAB\R2016b\runtime\win64;C:\Program Files\MATLAB\R2016b\bin;C:\Program Files (x86)\SumatraPDF;C:\Program Files (x86)\Bitvise SSH Client;C:\Program Files (x86)\Cuminas\Document Express DjVu Plug-in\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Pandoc\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\nodejs\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Perforce;C:\Program Files\Perforce\DVCS\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\MATLAB\R2016b\polyspace\bin;C:\Program Files\ImageMagick-7.0.3-Q16;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\Mus\AppData\Local\Microsoft\WindowsApps;C:\texlive\2016\bin\win32;C:\Julia\Julia-0.5-latest\bin;C:\Program Files\Sublime Text 3;C:\Program Files (x86)\Pandoc\;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Java\jdk1.8.0_45\bin;C:\Hugo\hugo-0.14;C:\Program Files\ZeroMQ 4.0.4\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\ffmpeg\bin;C:\Program Files\ArrayFire\v3\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\nvvm\bin;C:\Program Files\Perforce;C:\iaca-win64;C:\Users\Mus\AppData\Local\atom\bin;C:\Program Files\gs\gs9.18\bin;C:\Program Files\ConEmu\ConEmu;C:\Users\Mus\AppData\Local\Microsoft\WindowsApps;C:\DualSPHysics\DualSPHysics_v4.0_Windows_x64\EXECS;
Set INCLUDE = C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE;C:\Program Files (x86)\Windows Kits\10\\include\10.0.10150.0\ucrt;C:\Program Files (x86)\Windows Kits\8.1\\include\shared;C:\Program Files (x86)\Windows Kits\8.1\\include\um;C:\Program Files (x86)\Windows Kits\8.1\\include\winrt;C:\Program Files\MATLAB\R2016b\extern\include;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE;C:\Program Files (x86)\Windows Kits\10\\include\10.0.10150.0\ucrt;C:\Program Files (x86)\Windows Kits\8.1\\include\shared;C:\Program Files (x86)\Windows Kits\8.1\\include\um;C:\Program Files (x86)\Windows Kits\8.1\\include\winrt;C:\Program Files\MATLAB\R2016b\extern\include;
Set LIB = C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\Lib\amd64;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\Lib\amd64;C:\Program Files (x86)\Windows Kits\10\\Lib\10.0.10150.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\8.1\\lib\winv6.3\um\x64;C:\Program Files\MATLAB\R2016b\lib\win64;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\Lib\amd64;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\Lib\amd64;C:\Program Files (x86)\Windows Kits\10\\Lib\10.0.10150.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\8.1\\lib\winv6.3\um\x64;C:\Program Files\MATLAB\R2016b\lib\win64;
Set LIBPATH = C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\Lib\amd64;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\Lib\amd64;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\Lib\amd64;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\Lib\amd64;
Options file details
-------------------------------------------------------------------
    Compiler location: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\..\
    Options file: C:\Users\Mus\AppData\Roaming\MathWorks\MATLAB\R2016b\mex_C++_win64.xml
    CMDLINE200 : link /nologo /manifest  /DLL  /EXPORT:mexFunction C:\Users\Mus\AppData\Local\Temp\mex_2333604265118_9724\mexjulia.obj C:\Users\Mus\AppData\Local\Temp\mex_2333604265118_9724\cpp_mexapi_version.obj  libjulia.dll.a  /LIBPATH:C:\Julia\julia-0.6-latest\bin\..\lib   /LIBPATH:"C:\Program Files\MATLAB\R2016b\extern\lib\win64\microsoft" libmx.lib libmex.lib libmat.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /out:C:\Users\Mus\Documents\MATLAB\mexjulia\mexjulia.mexw64
    CMDLINE250 : mt -outputresource:C:\Users\Mus\Documents\MATLAB\mexjulia\mexjulia.mexw64;2 -manifest C:\Users\Mus\Documents\MATLAB\mexjulia\mexjulia.mexw64.manifest
    CMDLINE300 : del C:\Users\Mus\Documents\MATLAB\mexjulia\mexjulia.exp C:\Users\Mus\Documents\MATLAB\mexjulia\mexjulia.lib C:\Users\Mus\Documents\MATLAB\mexjulia\mexjulia.mexw64.manifest C:\Users\Mus\Documents\MATLAB\mexjulia\mexjulia.ilk
    COMPILER : cl
    COMPFLAGS : /Zp8 /GR /W3 /EHs /nologo /MD
    COMPDEFINES : /DJULIA_ENABLE_THREADING   /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0   /DMATLAB_MEX_FILE
    MATLABMEX :  /DMATLAB_MEX_FILE
    OPTIMFLAGS : /O2 /Oy- /DNDEBUG
    INCLUDE : -I"C:\Julia\julia-0.6-latest\include\julia"  -I"C:\Program Files\MATLAB\R2016b\extern\include" -I"C:\Program Files\MATLAB\R2016b\simulink\include"
    DEBUGFLAGS : /Z7
    LINKER : link
    LINKFLAGS : /nologo /manifest 
    LINKTYPE : /DLL
    LINKEXPORT : /EXPORT:mexFunction
    LINKLIBS : libjulia.dll.a  /LIBPATH:C:\Julia\julia-0.6-latest\bin\..\lib   /LIBPATH:"C:\Program Files\MATLAB\R2016b\extern\lib\win64\microsoft" libmx.lib libmex.lib libmat.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
    LINKDEBUGFLAGS : /debug /PDB:"C:\Users\Mus\Documents\MATLAB\mexjulia\mexjulia.mexw64.pdb"
    LINKOPTIMFLAGS : 
    OBJEXT : .obj
    LDEXT : .mexw64
    SETENV : set COMPILER=cl 
                set COMPFLAGS=/c /Zp8 /GR /W3 /EHs /nologo /MD /DJULIA_ENABLE_THREADING   /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0   /DMATLAB_MEX_FILE  /DMATLAB_MEX_FILE 
                set OPTIMFLAGS=/O2 /Oy- /DNDEBUG 
                set DEBUGFLAGS=/Z7 
                set LINKER=link 
                set LINKFLAGS=/nologo /manifest  /export:%ENTRYPOINT% /DLL libjulia.dll.a  /LIBPATH:C:\Julia\julia-0.6-latest\bin\..\lib   /LIBPATH:"C:\Program Files\MATLAB\R2016b\extern\lib\win64\microsoft" libmx.lib libmex.lib libmat.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /EXPORT:mexFunction 
                set LINKDEBUGFLAGS=/debug /PDB:"%OUTDIR%%MEX_NAME%.mexw64.pdb" 
                set NAME_OUTPUT=/out:"%OUTDIR%%MEX_NAME%%MEX_EXT%"
    VCROOT : C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
    SDKROOT : C:\Program Files (x86)\Windows Kits\8.1\
    VSINSTALLDIR : C:\Program Files (x86)\Microsoft Visual Studio 14.0\
    VCINSTALLDIR : C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\
    PROF_ENV : C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe
    VCVARSALLDIR : C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
    KITSROOT : C:\Program Files (x86)\Windows Kits\10\
    MATLABROOT : C:\Program Files\MATLAB\R2016b
    ARCH : win64
    SRC : C:\Users\Mus\Documents\MATLAB\mexjulia\mexjulia.cpp;"C:\Program Files\MATLAB\R2016b\extern\version\cpp_mexapi_version.cpp"
    OBJ : C:\Users\Mus\AppData\Local\Temp\mex_2333604265118_9724\mexjulia.obj;C:\Users\Mus\AppData\Local\Temp\mex_2333604265118_9724\cpp_mexapi_version.obj
    OBJS : C:\Users\Mus\AppData\Local\Temp\mex_2333604265118_9724\mexjulia.obj C:\Users\Mus\AppData\Local\Temp\mex_2333604265118_9724\cpp_mexapi_version.obj 
    SRCROOT : C:\Users\Mus\Documents\MATLAB\mexjulia\mexjulia
    DEF : C:\Users\Mus\AppData\Local\Temp\mex_2333604265118_9724\mexjulia.def
    EXP : C:\Users\Mus\Documents\MATLAB\mexjulia\mexjulia.exp
    LIB : C:\Users\Mus\Documents\MATLAB\mexjulia\mexjulia.lib
    EXE : C:\Users\Mus\Documents\MATLAB\mexjulia\mexjulia.mexw64
    ILK : C:\Users\Mus\Documents\MATLAB\mexjulia\mexjulia.ilk
    MANIFEST : C:\Users\Mus\Documents\MATLAB\mexjulia\mexjulia.mexw64.manifest
    TEMPNAME : C:\Users\Mus\Documents\MATLAB\mexjulia\mexjulia
    EXEDIR : C:\Users\Mus\Documents\MATLAB\mexjulia\
    EXENAME : mexjulia
    OPTIM : /O2 /Oy- /DNDEBUG
    LINKOPTIM : 
    CMDLINE100_0 : cl /c /Zp8 /GR /W3 /EHs /nologo /MD /O2 /Oy- /DNDEBUG /DJULIA_ENABLE_THREADING   /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0   /DMATLAB_MEX_FILE -I"C:\Julia\julia-0.6-latest\include\julia"  -I"C:\Program Files\MATLAB\R2016b\extern\include" -I"C:\Program Files\MATLAB\R2016b\simulink\include" C:\Users\Mus\Documents\MATLAB\mexjulia\mexjulia.cpp /FoC:\Users\Mus\AppData\Local\Temp\mex_2333604265118_9724\mexjulia.obj
    CMDLINE100_1 : cl /c /Zp8 /GR /W3 /EHs /nologo /MD /O2 /Oy- /DNDEBUG /DJULIA_ENABLE_THREADING   /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0   /DMATLAB_MEX_FILE -I"C:\Julia\julia-0.6-latest\include\julia"  -I"C:\Program Files\MATLAB\R2016b\extern\include" -I"C:\Program Files\MATLAB\R2016b\simulink\include" "C:\Program Files\MATLAB\R2016b\extern\version\cpp_mexapi_version.cpp" /FoC:\Users\Mus\AppData\Local\Temp\mex_2333604265118_9724\cpp_mexapi_version.obj
-------------------------------------------------------------------
Building with 'Microsoft Visual C++ 2015 Professional'.
cl /c /Zp8 /GR /W3 /EHs /nologo /MD /O2 /Oy- /DNDEBUG /DJULIA_ENABLE_THREADING   /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0   /DMATLAB_MEX_FILE -I"C:\Julia\julia-0.6-latest\include\julia"  -I"C:\Program Files\MATLAB\R2016b\extern\include" -I"C:\Program Files\MATLAB\R2016b\simulink\include" C:\Users\Mus\Documents\MATLAB\mexjulia\mexjulia.cpp /FoC:\Users\Mus\AppData\Local\Temp\mex_2333604265118_9724\mexjulia.obj
Error using mex
mexjulia.cpp
C:\Julia\julia-0.6-latest\include\julia\julia.h(780): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:\Users\Mus\Documents\MATLAB\mexjulia\mexjulia.cpp(46): error C2664: 'jl_value_t *jl_apply_array_type(jl_value_t *,std::size_t)': cannot convert argument 1 from 'jl_datatype_t *'
to 'jl_value_t *'
C:\Users\Mus\Documents\MATLAB\mexjulia\mexjulia.cpp(46): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

Error in jl.build (line 287)
            eval(mex_cmd);

Error in jl.config (line 267)
            jl.build;
travelingspaceman commented 7 years ago

Same problem here with version 0.6.0-dev.2635