Hi there!
I get the following error while compiling MSVC. It refers to an incorrect version even though in theory I have the right one as can be seen on the initial command line.
C:\FreeLing\FreeLing-4.2\build>cmake .. -DCMAKE_INSTALL_PREFIX=C:\FreeLing\FreeLing-4.2\freeling -DZLIB_ROOT=C:\FreeLing\FreeLing-4.2\dependencies\zlib -DBOOST_ROOT=C:\FreeLing\FreeLing-4.2\dependencies\boost -DICU_ROOT=C:\FreeLing\FreeLing-4.2\dependencies\icu -G "NMake Makefiles" -DSWIG_EXECUTABLE=C:\FreeLing\swigwin-4.0.2\swig.exe -DPYTHON3_API=ON -DSWIG_DIR=C:\FreeLing\swigwin-4.0.2 -DCMAKE_CXX_COMPILER:FILEPATH="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\Hostx64\x64\cl.exe"
-- The C compiler identification is MSVC 19.28.29333.0
-- The CXX compiler identification is MSVC 19.28.29333.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - donethe initial command
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) at CMakeLists.txt:37 (find_package):
Policy CMP0074 is not set: find_package uses _ROOT variables.
Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
CMake variable ZLIB_ROOT is set to:
C:\FreeLing\FreeLing-4.2\dependencies\zlib
For compatibility, CMake is ignoring the variable.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found ZLIB: C:/FreeLing/FreeLing-4.2/dependencies/zlib/lib/zlib.lib (found version "1.2.11")
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Found Boost: C:/FreeLing/FreeLing-4.2/dependencies/boost/include/boost-1_61 (found version "1.61.0") found components: regex filesystem thread program_options system chrono date_time atomic
CMake Warning (dev) at CMakeLists.txt:50 (find_package):
Policy CMP0074 is not set: find_package uses _ROOT variables.
Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
CMake variable ICU_ROOT is set to:
C:\FreeLing\FreeLing-4.2\dependencies\icu
For compatibility, CMake is ignoring the variable.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found the following ICU libraries:
-- dt (required)
-- in (required)
-- uc (required)
-- Found ICU: C:/FreeLing/FreeLing-4.2/dependencies/icu/include (found version "57.1")
CMake Deprecation Warning at src/libdynet/CMakeLists.txt:2 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
-- BACKEND not specified, defaulting to eigen.
-- Eigen dir is C:/FreeLing/FreeLing-4.2/src/eigen3
-- Found SWIG: C:/FreeLing/swigwin-4.0.2/swig.exe (found version "4.0.2")
-- Found PythonLibs: C:/Users/Patricia/anaconda3/libs/python38.lib (found suitable version "3.8.3", minimum required is "3")
CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.19/Modules/UseSWIG.cmake:661 (message):
Policy CMP0078 is not set: UseSWIG generates standard target names. Run
"cmake --help-policy CMP0078" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Call Stack (most recent call first):
APIs/python3/CMakeLists.txt:9 (SWIG_ADD_LIBRARY)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.19/Modules/UseSWIG.cmake:513 (message):
Policy CMP0086 is not set: UseSWIG honors SWIG_MODULE_NAME via -module
flag. Run "cmake --help-policy CMP0086" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.19/Modules/UseSWIG.cmake:764 (SWIG_ADD_SOURCE_TO_MODULE)
APIs/python3/CMakeLists.txt:9 (SWIG_ADD_LIBRARY)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
-- Generating done
-- Build files have been written to: C:/FreeLing/FreeLing-4.2/build
C:\FreeLing\FreeLing-4.2\build>nmake install
Utilidad de mantenimiento de programas de Microsoft (R) versión 14.28.29333.0
(C) Microsoft Corporation. Todos los derechos reservados.
Scanning dependencies of target dynet
[ 0%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/aligned-mem-pool.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
aligned-mem-pool.cc
[ 0%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/cfsm-builder.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
cfsm-builder.cc
[ 1%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/deep-lstm.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
deep-lstm.cc
[ 1%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/devices.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
devices.cc
[ 1%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/dict.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
dict.cc
[ 2%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/dim.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
dim.cc
[ 2%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/dynet.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
dynet.cc
[ 3%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/exec.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
exec.cc
[ 3%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/expr.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
expr.cc
[ 3%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/fast-lstm.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
fast-lstm.cc
[ 4%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/globals.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
globals.cc
[ 4%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/grad-check.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
grad-check.cc
[ 4%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/graph.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
graph.cc
[ 5%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/gru.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
gru.cc
[ 5%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/hsm-builder.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
hsm-builder.cc
[ 5%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/init.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
init.cc
[ 6%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/io.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
io.cc
[ 6%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/lstm.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
lstm.cc
[ 6%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/mem.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
mem.cc
[ 7%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/model.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
model.cc
[ 7%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-activations.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-activations.cc
[ 7%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-affinetransform.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-affinetransform.cc
[ 8%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-argmax.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-argmax.cc
[ 8%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-arith-const.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-arith-const.cc
[ 8%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-arith-cwise.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-arith-cwise.cc
[ 9%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-arith-sum.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-arith-sum.cc
[ 9%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-arith-unary.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-arith-unary.cc
[ 9%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-concat.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-concat.cc
[ 10%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-const.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-const.cc
[ 10%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-contract.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-contract.cc
[ 10%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-conv.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-conv.cc
[ 11%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-conv2d.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-conv2d.cc
[ 11%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-dropout.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-dropout.cc
[ 11%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-flow.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-flow.cc
[ 12%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-hinge.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-hinge.cc
[ 12%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-linalg.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-linalg.cc
[ 12%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-logsumexp.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-logsumexp.cc
[ 13%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-losses.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-losses.cc
[ 13%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-lstm.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-lstm.cc
[ 13%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-matrixmultiply.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-matrixmultiply.cc
[ 14%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-maxpooling2d.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-maxpooling2d.cc
[ 14%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-minmax.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-minmax.cc
[ 14%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-moments.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-moments.cc
[ 15%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-cumulative.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-cumulative.cc
[ 15%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-normalization.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-normalization.cc
[ 15%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-norms.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-norms.cc
[ 16%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-pickneglogsoftmax.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-pickneglogsoftmax.cc
[ 16%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-random.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-random.cc
[ 17%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-select.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-select.cc
[ 17%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-similarities.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-similarities.cc
[ 17%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-softmaxes.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-softmaxes.cc
[ 18%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-to-device.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-to-device.cc
[ 18%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/nodes-trig.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
nodes-trig.cc
[ 18%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/param-init.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
param-init.cc
[ 19%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/param-nodes.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
param-nodes.cc
[ 19%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/pretrain.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
pretrain.cc
[ 19%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/rnn-state-machine.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
rnn-state-machine.cc
[ 20%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/rnn.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
rnn.cc
[ 20%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/saxe-init.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
saxe-init.cc
[ 20%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/shadow-params.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
shadow-params.cc
[ 21%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/tensor.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
tensor.cc
[ 21%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/training.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
training.cc
[ 21%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/treelstm.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
treelstm.cc
[ 22%] Building CXX object src/libdynet/dynet/CMakeFiles/dynet.dir/weight-decay.cc.obj
cl : Línea de comandos warning D9025 : invalidando '/W3' con '/W1'
weight-decay.cc
[ 22%] Linking CXX shared library dynet.dll
Creando biblioteca dynet.lib y objeto dynet.exp
Creando biblioteca dynet.lib y objeto dynet.exp
[ 22%] Built target dynet
Scanning dependencies of target crfsuite
[ 22%] Building C object src/crfsuite/CMakeFiles/crfsuite.dir/crfsuite/cqdb/cqdb.c.obj
cqdb.c
[ 23%] Building C object src/crfsuite/CMakeFiles/crfsuite.dir/crfsuite/cqdb/lookup3.c.obj
lookup3.c
[ 23%] Building C object src/crfsuite/CMakeFiles/crfsuite.dir/crfsuite/crf/crf1d_context.c.obj
crf1d_context.c
[ 23%] Building C object src/crfsuite/CMakeFiles/crfsuite.dir/crfsuite/crf/crf1d_encode.c.obj
crf1d_encode.c
C:\FreeLing\FreeLing-4.2\src\crfsuite\crfsuite\crf\crf1d_encode.c(889): warning C4101: 'i': variable local sin referencia
[ 24%] Building C object src/crfsuite/CMakeFiles/crfsuite.dir/crfsuite/crf/crf1d_feature.c.obj
crf1d_feature.c
[ 24%] Building C object src/crfsuite/CMakeFiles/crfsuite.dir/crfsuite/crf/crf1d_model.c.obj
crf1d_model.c
C:\FreeLing\FreeLing-4.2\src\crfsuite\crfsuite\crf\crf1d_model.c(435): warning C4267: 'función': conversión de 'size_t' a 'long'; posible pérdida de datos
C:\FreeLing\FreeLing-4.2\src\crfsuite\crfsuite\crf\crf1d_model.c(542): warning C4267: 'función': conversión de 'size_t' a 'long'; posible pérdida de datos
[ 24%] Building C object src/crfsuite/CMakeFiles/crfsuite.dir/crfsuite/crf/crf1d_tag.c.obj
crf1d_tag.c
[ 25%] Building C object src/crfsuite/CMakeFiles/crfsuite.dir/crfsuite/crf/crfsuite.c.obj
crfsuite.c
[ 25%] Building C object src/crfsuite/CMakeFiles/crfsuite.dir/crfsuite/crf/crfsuite_train.c.obj
crfsuite_train.c
[ 25%] Building C object src/crfsuite/CMakeFiles/crfsuite.dir/crfsuite/crf/dataset.c.obj
dataset.c
[ 26%] Building C object src/crfsuite/CMakeFiles/crfsuite.dir/crfsuite/crf/dictionary.c.obj
dictionary.c
[ 26%] Building C object src/crfsuite/CMakeFiles/crfsuite.dir/crfsuite/crf/holdout.c.obj
holdout.c
[ 26%] Building C object src/crfsuite/CMakeFiles/crfsuite.dir/crfsuite/crf/logging.c.obj
logging.c
[ 27%] Building C object src/crfsuite/CMakeFiles/crfsuite.dir/crfsuite/crf/params.c.obj
params.c
[ 27%] Building C object src/crfsuite/CMakeFiles/crfsuite.dir/crfsuite/crf/quark.c.obj
quark.c
[ 27%] Building C object src/crfsuite/CMakeFiles/crfsuite.dir/crfsuite/crf/rumavl.c.obj
rumavl.c
[ 28%] Building C object src/crfsuite/CMakeFiles/crfsuite.dir/crfsuite/crf/train_arow.c.obj
train_arow.c
C:\FreeLing\FreeLing-4.2\src\crfsuite\crfsuite\crf\train_arow.c(312): warning C4101: 'tau': variable local sin referencia
C:\FreeLing\FreeLing-4.2\src\crfsuite\crfsuite\crf\train_arow.c(311): warning C4101: 'norm2': variable local sin referencia
[ 28%] Building C object src/crfsuite/CMakeFiles/crfsuite.dir/crfsuite/crf/train_averaged_perceptron.c.obj
train_averaged_perceptron.c
[ 28%] Building C object src/crfsuite/CMakeFiles/crfsuite.dir/crfsuite/crf/train_l2sgd.c.obj
train_l2sgd.c
C:\FreeLing\FreeLing-4.2\src\crfsuite\crfsuite\crf\train_l2sgd.c(292): warning C4101: 's': variable local sin referencia
[ 29%] Building C object src/crfsuite/CMakeFiles/crfsuite.dir/crfsuite/crf/train_lbfgs.c.obj
train_lbfgs.c
[ 29%] Building C object src/crfsuite/CMakeFiles/crfsuite.dir/crfsuite/crf/train_passive_aggressive.c.obj
train_passive_aggressive.c
[ 29%] Building CXX object src/crfsuite/CMakeFiles/crfsuite.dir/crfsuite/crfsuite_api.cpp.obj
crfsuite_api.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\yvals_core.h(509): fatal error C1189: #error: STL1001: Unexpected compiler version, expected MSVC 19.28 or newer.
NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~3\2019\COMMUN~1\VC\Tools\MSVC\1428~1.293\bin\Hostx64\x64\cl.exe' : código devuelto '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX64\x64\nmake.exe"' : código devuelto '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX64\x64\nmake.exe"' : código devuelto '0x2'
Stop.
This seems related to your…
This seems related to your installation of MSVC, more than a FreeLing issue.
You are using MSVC19, but it seems to be including files from 14 "... \Tools\MSVC\14.28.29333\include\yvals_core.... "
Maybe you have a mixed installation of MSVC versions... (?)
Thank you very much!…
Thank you very much!
Unfortunately after all uninstalling Visual Studio in my computer and trying 16.8 first and the16.9 with no success I have tried the latest version (Visual Studio Community 2019 - 16.9.0 Preview 1.0) but I am still getting the same error (attached below). Is there any specific version you would recommend for Windows and development in Python?
The bit where you can see the MSVC version:
C:\FreeLing\FreeLing-4.2\build>cmake .. -DCMAKE_INSTALL_PREFIX=C:\FreeLing\FreeLing-4.2\freeling -DZLIB_ROOT=C:\FreeLing\FreeLing-4.2\dependencies\zlib -DBOOST_ROOT=C:\FreeLing\FreeLing-4.2\dependencies\boost -DICU_ROOT=C:\FreeLing\FreeLing-4.2\dependencies\icu -DSWIG_DIR=C:\FreeLing\swigwin-4.0.2 -DSWIG_EXECUTABLE=C:\FreeLing\swigwin-4.0.2\swig.exe -DPYTHON3_API=ON -G "NMake Makefiles"
-- The C compiler identification is MSVC 19.28.29515.1
-- The CXX compiler identification is MSVC 19.28.29515.1
And the error:
[ 29%] Building CXX object src/crfsuite/CMakeFiles/crfsuite.dir/crfsuite/crfsuite_api.cpp.obj
crfsuite_api.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.28.29515\include\yvals_core.h(512): fatal error C1189: #error: STL1001: Unexpected compiler version, expected MSVC 19.28 or newer.
NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~3\2019\Preview\VC\Tools\MSVC\1428~1.295\bin\Hostx64\x64\cl.exe' : código devuelto '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.28.29515\bin\HostX64\x64\nmake.exe"' : código devuelto '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.28.29515\bin\HostX64\x64\nmake.exe"' : código devuelto '0x2'
Stop.
Googling a bit, you can find…
Googling a bit, you can find people with similar problems,
https://github.com/tensorflow/tensorflow/issues/30599
There is one who says: "I ran into this problem when there were multiple versions of visual studio installed. When I removed the extra visual studio installations (or the command line tools for 2017 or 2015 that you can install with vs 2019) it worked OK for me."
In any case, this is a MSVC issue, you might get better luck in a forum related to MSVC.