BUGGED selection of MinGW-w64 toolchain

Sysprogs forums Forums VisualGDB BUGGED selection of MinGW-w64 toolchain

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #21427
    b.timofte
    Participant

    HI all

    I am trying to use Mathworks MinGW-w64  compiler

    “C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\bin>gcc -v
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=c:/ProgramData/MATLAB/SupportPackages/R2018a/3P.instrset/mingw_w64.instrset/bin/../libexec/gcc/x86_64-w64-mingw32/5.3.0/lto-wrapper.exe
    Target: x86_64-w64-mingw32
    Configured with: ../../../src/gcc-5.3.0/configure –host=x86_64-w64-mingw32 –build=x86_64-w64-mingw32 –target=x86_64-w64-mingw32 –prefix=/mingw64 –with-sysroot=/c/mingw530/x86_64-530-posix-seh-rt_v4-rev0/mingw64 –with-gxx-include-dir=/mingw64/x86_64-w64-mingw32/include/c++ –enable-shared –enable-static –disable-multilib –enable-languages=c,c++,fortran,lto –enable-libstdcxx-time=yes –enable-threads=posix –enable-libgomp –enable-libatomic –enable-lto –enable-graphite –enable-checking=release –enable-fully-dynamic-string –enable-version-specific-runtime-libs –disable-isl-version-check –disable-libstdcxx-pch –disable-libstdcxx-debug –enable-bootstrap –disable-rpath –disable-win32-registry –disable-nls –disable-werror –disable-symvers –with-gnu-as –with-gnu-ld –with-arch=nocona –with-tune=core2 –with-libiconv –with-system-zlib –with-gmp=/c/mingw530/prerequisites/x86_64-w64-mingw32-static –with-mpfr=/c/mingw530/prerequisites/x86_64-w64-mingw32-static –with-mpc=/c/mingw530/prerequisites/x86_64-w64-mingw32-static –with-isl=/c/mingw530/prerequisites/x86_64-w64-mingw32-static –with-pkgversion=’x86_64-posix-seh-rev0, Built by MinGW-W64 project’ –with-bugurl=http://sourceforge.net/projects/mingw-w64 CFLAGS=’-O2 -pipe -I/c/mingw530/x86_64-530-posix-seh-rt_v4-rev0/mingw64/opt/include -I/c/mingw530/prerequisites/x86_64-zlib-static/include -I/c/mingw530/prerequisites/x86_64-w64-mingw32-static/include’ CXXFLAGS=’-O2 -pipe -I/c/mingw530/x86_64-530-posix-seh-rt_v4-rev0/mingw64/opt/include -I/c/mingw530/prerequisites/x86_64-zlib-static/include -I/c/mingw530/prerequisites/x86_64-w64-mingw32-static/include’ CPPFLAGS= LDFLAGS=’-pipe -L/c/mingw530/x86_64-530-posix-seh-rt_v4-rev0/mingw64/opt/lib -L/c/mingw530/prerequisites/x86_64-zlib-static/lib -L/c/mingw530/prerequisites/x86_64-w64-mingw32-static/lib ‘
    Thread model: posix
    gcc version 5.3.0 (x86_64-posix-seh-rev0, Built by MinGW-W64 project)”

    I selected in the project add new toolchanin by Locating it and it detected it ok

     

    When i try to build the project i get this error :

    “1>—— Build started: Project: SFunction, Configuration: Debug VisualGDB ——
    1>C:\Program Files (x86)\Sysprogs\VisualGDB\MSBuild\SysprogsPlatform.targets(39,3): warning MSB4011: “C:\Users\xxx\AppData\Local\VisualGDB\FindComponents.props” cannot be imported again. It was already imported at “C:\Users\xxx\Desktop\Study\MATLAB\Matlab_To_C\SFunction\Simple_Function\SFunction\SFunction\SFunction.vcxproj (41,5)”. This is most likely a build authoring error. This subsequent import will be ignored.
    1>ue2+k1
    1>ue2+k1: Could not find the toolchain com.sysprogs.imported.mingw 5.3.0/7.10.1/r0
    1>   at ue2.x(RemoteHostSettings c, ToolchainKey a, ToolchainType d, sv b)
    1>   at e22..ctor(VisualGDBProjectSettings2 b, to e, js1 c, s2 f, sv a, IDELevelProjectInfoForBuilding d)
    1>   at yf2..ctor(VisualGDBProjectSettings2 a, to c, IDELevelProjectInfoForBuilding d, js1 b)
    1>   at VisualGDB.MSBuild.BuildHelper..ctor(String vgdbSettingsFile, IDELevelProjectInfoForBuilding info)
    1>   at Sysprogs.build.tasks.shared.LaunchVisualGDB.Execute()
    1>C:\Program Files (x86)\Sysprogs\VisualGDB\MSBuild\Targets\external.targets(5,3): error : Could not find the toolchain com.sysprogs.imported.mingw 5.3.0/7.10.1/r0
    1>Done building project “SFunction.vcxproj” — FAILED.
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========”

     

     

     

    Attachments:
    You must be logged in to view attached files.
    #21429
    support
    Keymaster

    Hi,

    It looks like Visual Studio might have cached the old toolchain list. Please try restarting it.

    #21484
    b.timofte
    Participant

    Ok Worked .

     

    Another issue is when i attach to Matlab.exe it takes 20 minutes to load all dlls. Is this a bug in gdb.exe?

    This is how part of the log looks …. It goes on for 20 minutes on a core i7 2.8 Ghz … Wtf 🙁

     

     

    ibrary-loaded,id=”C:\\MATLAB\\bin\\win64\\sl_units.dll”,target-name=”C:\\MATLAB\\bin\\win64\\sl_units.dll”,host-name=”C:\\MATLAB\\bin\\win64\\sl_units.dll”,symbols-loaded=”0″,thread-group=”i1″
    =library-loaded,id=”C:\\MATLAB\\bin\\win64\\cgir_vm.dll”,target-name=”C:\\MATLAB\\bin\\win64\\cgir_vm.dll”,host-name=”C:\\MATLAB\\bin\\win64\\cgir_vm.dll”,symbols-loaded=”0″,thread-group=”i1″
    =library-loaded,id=”C:\\MATLAB\\bin\\win64\\fitools.dll”,target-name=”C:\\MATLAB\\bin\\win64\\fitools.dll”,host-name=”C:\\MATLAB\\bin\\win64\\fitools.dll”,symbols-loaded=”0″,thread-group=”i1″
    =library-loaded,id=”C:\\MATLAB\\bin\\win64\\libmwslexec_simbridge.dll”,target-name=”C:\\MATLAB\\bin\\win64\\libmwslexec_simbridge.dll”,host-name=”C:\\MATLAB\\bin\\win64\\libmwslexec_simbridge.dll”,symbols-loaded=”0″,thread-group=”i1″
    =library-loaded,id=”C:\\MATLAB\\bin\\win64\\m3i.dll”,target-name=”C:\\MATLAB\\bin\\win64\\m3i.dll”,host-name=”C:\\MATLAB\\bin\\win64\\m3i.dll”,symbols-loaded=”0″,thread-group=”i1″
    =library-loaded,id=”C:\\MATLAB\\bin\\win64\\libmwslexec_solver.dll”,target-name=”C:\\MATLAB\\bin\\win64\\libmwslexec_solver.dll”,host-name=”C:\\MATLAB\\bin\\win64\\libmwslexec_solver.dll”,symbols-loaded=”0″,thread-group=”i1″
    =library-loaded,id=”C:\\MATLAB\\bin\\win64\\sltp_mm.dll”,target-name=”C:\\MATLAB\\bin\\win64\\sltp_mm.dll”,host-name=”C:\\MATLAB\\bin\\win64\\sltp_mm.dll”,symbols-loaded=”0″,thread-group=”i1″
    =library-loaded,id=”C:\\MATLAB\\bin\\win64\\libemlrt.dll”,target-name=”C:\\MATLAB\\bin\\win64\\libemlrt.dll”,host-name=”C:\\MATLAB\\bin\\win64\\libemlrt.dll”,symbols-loaded=”0″,thread-group=”i1″
    =library-loaded,id=”C:\\MATLAB\\bin\\win64\\shared_code_manager.dll”,target-name=”C:\\MATLAB\\bin\\win64\\shared_code_manager.dll”,host-name=”C:\\MATLAB\\bin\\win64\\shared_code_manager.dll”,symbols-loaded=”0″,thread-group=”i1″
    =library-loaded,id=”C:\\MATLAB\\bin\\win64\\cgir_support.dll”,target-name=”C:\\MATLAB\\bin\\win64\\cgir_support.dll”,host-name=”C:\\MATLAB\\bin\\win64\\cgir_support.dll”,symbols-loaded=”0″,thread-group=”i1″
    =library-loaded,id=”C:\\MATLAB\\bin\\win64\\performance_tracer.dll”,target-name=”C:\\MATLAB\\bin\\win64\\performance_tracer.dll”,host-name=”C:\\MATLAB\\bin\\win64\\performance_tracer.dll”,symbols-loaded=”0″,thread-group=”i1″
    =library-loaded,id=”C:\\MATLAB\\bin\\win64\\libmwslio_core.dll”,target-name=”C:\\MATLAB\\bin\\win64\\libmwslio_core.dll”,host-name=”C:\\MATLAB\\bin\\win64\\libmwslio_core.dll”,symbols-loaded=”0″,thread-group=”i1″
    =library-loaded,id=”C:\\MATLAB\\bin\\win64\\gmp.dll”,target-name=”C:\\MATLAB\\bin\\win64\\gmp.dll”,host-name=”C:\\MATLAB\\bin\\win64\\gmp.dll”,symbols-loaded=”0″,thread-group=”i1″
    =library-loaded,id=”C:\\MATLAB\\bin\\win64\\libmwsigstream.dll”,target-name=”C:\\MATLAB\\bin\\win64\\libmwsigstream.dll”,host-name=”C:\\MATLAB\\bin\\win64\\libmwsigstream.dll”,symbols-loaded=”0″,thread-group=”i1″

    =library-loaded,id=”C:\\MATLAB\\bin\\win64\\Qt5WebEngineWidgetsMW.dll”,target-name=”C:\\MATLAB\\bin\\win64\\Qt5WebEngineWidgetsMW.dll”,host-name=”C:\\MATLAB\\bin\\win64\\Qt5WebEngineWidgetsMW.dll”,symbols-loaded=”0″,thread-group=”i1″
    =library-loaded,id=”C:\\MATLAB\\bin\\win64\\Qt5QuickMW.dll”,target-name=”C:\\MATLAB\\bin\\win64\\Qt5QuickMW.dll”,host-name=”C:\\MATLAB\\bin\\win64\\Qt5QuickMW.dll”,symbols-loaded=”0″,thread-group=”i1″
    =library-loaded,id=”C:\\MATLAB\\bin\\win64\\Qt5WebChannelMW.dll”,target-name=”C:\\MATLAB\\bin\\win64\\Qt5WebChannelMW.dll”,host-name=”C:\\MATLAB\\bin\\win64\\Qt5WebChannelMW.dll”,symbols-loaded=”0″,thread-group=”i1″
    =library-loaded,id=”C:\\MATLAB\\bin\\win64\\Qt5QmlMW.dll”,target-name=”C:\\MATLAB\\bin\\win64\\Qt5QmlMW.dll”,host-name=”C:\\MATLAB\\bin\\win64\\Qt5QmlMW.dll”,symbols-loaded=”0″,thread-group=”i1″
    =library-unloaded,id=”C:\\MATLAB\\bin\\win64\\Qt5QmlMW.dll”,target-name=”C:\\MATLAB\\bin\\win64\\Qt5QmlMW.dll”,host-name=”C:\\MATLAB\\bin\\win64\\Qt5QmlMW.dll”,thread-group=”i1″
    =library-loaded,id=”C:\\MATLAB\\bin\\win64\\Qt5WebEngineCoreMW.dll”,target-name=”C:\\MATLAB\\bin\\win64\\Qt5WebEngineCoreMW.dll”,host-name=”C:\\MATLAB\\bin\\win64\\Qt5WebEngineCoreMW.dll”,symbols-loaded=”0″,thread-group=”i1″
    =library-loaded,id=”C:\\MATLAB\\bin\\win64\\Qt5OpenGLMW.dll”,target-name=”C:\\MATLAB\\bin\\win64\\Qt5OpenGLMW.dll”,host-name=”C:\\MATLAB\\bin\\win64\\Qt5OpenGLMW.dll”,symbols-loaded=”0″,thread-group=”i1″
    =library-unloaded,id=”C:\\MATLAB\\bin\\win64\\Qt5OpenGLMW.dll”,target-name=”C:\\MATLAB\\bin\\win64\\Qt5OpenGLMW.dll”,host-name=”C:\\MATLAB\\bin\\win64\\Qt5OpenGLMW.dll”,thread-group=”i1″
    =library-loaded,id=”C:\\WINDOWS\\SYSTEM32\\secur32.dll”,target-name=”C:\\WINDOWS\\SYSTEM32\\secur32.dll”,host-name=”C:\\WINDOWS\\SYSTEM32\\secur32.dll”,symbols-loaded=”0″,thread-group=”i1″
    =library-loaded,id=”C:\\WINDOWS\\SYSTEM32\\usp10.dll”,target-name=”C:\\WINDOWS\\SYSTEM32\\usp10.dll”,host-name=”C:\\WINDOWS\\SYSTEM32\\usp10.dll”,symbols-loaded=”0″,thread-group=”i1″
    =library-loaded,id=”C:\\MATLAB\\bin\\win64\\libmwslexec_parallel.dll”,target-name=”C:\\MATLAB\\bin\\win64\\libmwslexec_parallel.dll”,host-name=”C:\\MATLAB\\bin\\win64\\libmwslexec_parallel.dll”,symbols-loaded=”0″,thread-group=”i1″
    =library-loaded,id=”C:\\MATLAB\\bin\\win64\\mpfr.dll”,target-name=”C:\\MATLAB\\bin\\win64\\mpfr.dll”,host-name=”C:\\MATLAB\\bin\\win64\\mpfr.dll”,symbols-loaded=”0″,thread-group=”i1″
    =library-loaded,id=”C:\\MATLAB\\bin\\win64\\libmwslexec_runtime.dll”,target-name=”C:\\MATLAB\\bin\\win64\\libmwslexec_runtime.dll”,host-name=”C:\\MATLAB\\bin\\win64\\libmwslexec_runtime.dll”,symbols-loaded=”0″,thread-group=”i1″
    =library-loaded,id=”C:\\MATLAB\\bin\\win64\\sl_unit_repository.dll”,target-name=”C:\\MATLAB\\bin\\win64\\sl_unit_repository.dll”,host-name=”C:\\MATLAB\\bin\\win64\\sl_unit_repository.dll”,symbols-loaded=”0″,thread-group=”i1″
    =library-loaded,id=”C:\\MATLAB\\bin\\win64\\libmwdesuite_kernel_util.dll”,target-name=”C:\\MATLAB\\bin\\win64\\libmwdesuite_kernel_util.dll”,host-name=”C:\\MATLAB\\bin\\win64\\libmwdesuite_kernel_util.dll”,symbols-loaded=”0″,thread-group=”i1″
    =library-loaded,id=”C:\\MATLAB\\bin\\win64\\libmwmfl_fft.dll”,target-name=”C:\\MATLAB\\bin\\win64\\libmwmfl_fft.dll”,host-name=”C:\\MATLAB\\bin\\win64\\libmwmfl_fft.dll”,symbols-loaded=”0″,thread-group=”i1″

     

     

    …..

     

    #21485
    support
    Keymaster

    Hi,

    The best way to diagnose this would be to narrow it down to a specific component. Please try attaching to the target process by running gdb directly from command line. Do you observe the same behavior?

    If not, please enable the GDB command timing view in the GDB Session window and check if the delay comes after any specific command (you can also enable the creation of detailed gdb logs via Advanced GDB Settings – the created logs will contain timestamps for every line).

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.