Interact with your documents using the power of GPT, 100% privately, no data leaks
54.05k
stars
7.27k
forks
source link
Project is not built. arena.cpp causes "C2485: '__restrict': unrecognized extended attribute" error #701
Closed
gansoper closed 8 months ago
win 10 box.
Tried to install the project and got the following
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iduckdb/src/include -Iduckdb/third_party/fmt/include -Iduckdb/third_party/fsst -Iduckdb/third_party/re2 -Iduckdb/third_party/miniz -Iduckdb/third_party/utf8proc/include -Iduckdb/third_party/utf8proc -Iduckdb/third_party/hyperloglog -Iduckdb/third_party/fastpforlib -Iduckdb/third_party/tdigest -Iduckdb/third_party/libpg_query/include -Iduckdb/third_party/libpg_query -Iduckdb/third_party/concurrentqueue -Iduckdb/third_party/pcg -Iduckdb/third_party/httplib -Iduckdb/third_party/fast_float -Iduckdb/third_party/mbedtls -Iduckdb/third_party/mbedtls/include -Iduckdb/third_party/mbedtls/library -Iduckdb/third_party/jaro_winkler -Iduckdb/third_party/jaro_winkler/details -Iduckdb/extension/parquet/include -Iduckdb/third_party/parquet -Iduckdb/third_party/snappy -Iduckdb/third_party/thrift -Iduckdb/third_party/zstd/include -Iduckdb/extension/icu/include -Iduckdb/extension/icu/third_party/icu/common -Iduckdb/extension/icu/third_party/icu/i18n -Iduckdb/extension/fts/include -Iduckdb/third_party/snowball/libstemmer -Iduckdb/third_party/snowball/runtime -Iduckdb/third_party/snowball/src_c -Iduckdb/extension/tpch/include -Iduckdb/extension/tpch/dbgen/include -Iduckdb/extension/tpcds/include -Iduckdb/extension/tpcds/dsdgen/include -Iduckdb/extension/tpcds/dsdgen/include/dsdgen-c -Iduckdb/extension/json/include -Iduckdb/extension/json/yyjson/include -Iduckdb/extension/jemalloc/include -Iduckdb/extension/jemalloc/jemalloc/include -Iduckdb -IC:\Users\Svarog\AppData\Local\Temp\pip-install-na7h27_t\duckdb_b263da258add40cb914395b995d5f75f\src\include -IC:\Users\Svarog\AppData\Local\Temp\pip-build-env-4h2eqt9e\normal\Lib\site-packages\pybind11\include -IC:\Users\Svarog\AppData\Local\Temp\pip-build-env-4h2eqt9e\normal\Lib\site-packages\pybind11\include "-IC:\Program Files\Python311\include" "-IC:\Program Files\Python311\Include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" /EHsc /Tpduckdb/extension/jemalloc/jemalloc/src/arena.cpp /Fobuild\temp.win-amd64-cpython-311\Release\duckdb/extension/jemalloc/jemalloc/src/arena.obj /wd4244 /wd4267 /wd4200 /wd26451 /wd26495 /D_CRT_SECURE_NO_WARNINGS /utf-8 -DDUCKDB_PYTHON_LIB_NAME=duckdb -DDUCKDB_BUILD_LIBRARY -DWIN32 -DBUILD_PARQUET_EXTENSION -DBUILD_ICU_EXTENSION -DBUILD_FTS_EXTENSION -DBUILD_TPCH_EXTENSION -DBUILD_JSON_EXTENSION arena.cpp duckdb/extension/jemalloc/jemalloc/include\jemalloc/jemalloc.h(267): error C2485: '__restrict': unrecognized extended attribute duckdb/extension/jemalloc/jemalloc/include\jemalloc/jemalloc.h(269): error C2485: '__restrict': unrecognized extended attribute duckdb/extension/jemalloc/jemalloc/include\jemalloc/jemalloc.h(273): error C2485: '__restrict': unrecognized extended attribute duckdb/extension/jemalloc/jemalloc/include\jemalloc/jemalloc.h(275): error C2485: '__restrict': unrecognized extended attribute duckdb/extension/jemalloc/jemalloc/include\jemalloc/jemalloc.h(279): error C2485: '__restrict': unrecognized extended attribute duckdb/extension/jemalloc/jemalloc/include\jemalloc/jemalloc.h(281): error C2485: '__restrict': unrecognized extended attribute duckdb/extension/jemalloc/jemalloc/include\jemalloc/internal/jemalloc_internal_macros.h(36): warning C4005: 'restrict': macro redefinition duckdb/extension/jemalloc/jemalloc/include\jemalloc/internal/jemalloc_internal_decls.h(87): note: see previous definition of 'restrict' error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
not sure what is the reason, as I have latest VS 2022 (Community) with win 10 and win 11 sdk and following components
The MinGW installer is downloaded and gcc component is installed.