I build the Inkscape from source code with:
$ cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug ..
$ ninja install
And it return error as below.
[1002/1006] Building CXX object src/CMakeFiles/inkscape_base.dir/verbs.cpp.obj
[1003/1006] Linking CXX shared library bin\libinkscape_base.dll
FAILED: bin/libinkscape_base.dll src/libinkscape_base.dll.a
cmd.exe /C "cd . && C:\msys64\mingw64\bin\g++.exe -fopenmp -m64 -mms-bitfields -mthreads -mwindows -pthread -std=c++11 -g -shared -o bin\libinkscape_base.dll -Wl,--out-implib,src\libinkscape_base.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles/inkscape_base.rsp && cd ."
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: Error: export ordinal too large: 104116
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
What will cause this error and how to solve it?
Note: I can build the Inkscape successfully without -DCMAKE_BUILD_TYPE=Debug.