duckdb / dbt-duckdb

dbt (http://getdbt.com) adapter for DuckDB (http://duckdb.org)
Apache License 2.0
790 stars 70 forks source link

pip install on windows 10 fails with error C2485: '__restrict': unrecognized extended attribute #319

Closed jp187 closed 5 months ago

jp187 commented 5 months ago

Getting failure in pip install dbt-duckdb on windows 10 using VSC 2022 command line build tools.

Error:```

 arena.cpp
  duckdb_build/extension/jemalloc/jemalloc/include\jemalloc/jemalloc.h(267): error C2485: '__restrict': unrecognized extended attribute
  duckdb_build/extension/jemalloc/jemalloc/include\jemalloc/jemalloc.h(269): error C2485: '__restrict': unrecognized extended attribute
  duckdb_build/extension/jemalloc/jemalloc/include\jemalloc/jemalloc.h(273): error C2485: '__restrict': unrecognized extended attribute
  duckdb_build/extension/jemalloc/jemalloc/include\jemalloc/jemalloc.h(275): error C2485: '__restrict': unrecognized extended attribute
  duckdb_build/extension/jemalloc/jemalloc/include\jemalloc/jemalloc.h(279): error C2485: '__restrict': unrecognized extended attribute
  duckdb_build/extension/jemalloc/jemalloc/include\jemalloc/jemalloc.h(281): error C2485: '__restrict': unrecognized extended attribute
  duckdb_build/extension/jemalloc/jemalloc/include\jemalloc/internal/jemalloc_internal_macros.h(36): warning C4005: 'restrict': macro redefinition
  duckdb_build/extension/jemalloc/jemalloc/include\jemalloc/internal/jemalloc_internal_decls.h(87): note: see previous definition of 'restrict'
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
jwills commented 5 months ago

Looks like this: https://github.com/duckdb/duckdb/issues/9301

On Fri, Jan 12, 2024 at 09:54 jp @.***> wrote:

Getting failure in pip install dbt-duckdb on windows 10 using VSC 2022 command line build tools.

Error:```

arena.cpp duckdb_build/extension/jemalloc/jemalloc/include\jemalloc/jemalloc.h(267): error C2485: 'restrict': unrecognized extended attribute duckdb_build/extension/jemalloc/jemalloc/include\jemalloc/jemalloc.h(269): error C2485: '__restrict': unrecognized extended attribute duckdb_build/extension/jemalloc/jemalloc/include\jemalloc/jemalloc.h(273): error C2485: 'restrict': unrecognized extended attribute duckdb_build/extension/jemalloc/jemalloc/include\jemalloc/jemalloc.h(275): error C2485: 'restrict': unrecognized extended attribute duckdb_build/extension/jemalloc/jemalloc/include\jemalloc/jemalloc.h(279): error C2485: '__restrict': unrecognized extended attribute duckdb_build/extension/jemalloc/jemalloc/include\jemalloc/jemalloc.h(281): error C2485: 'restrict': unrecognized extended attribute duckdb_build/extension/jemalloc/jemalloc/include\jemalloc/internal/jemalloc_internal_macros.h(36): warning C4005: 'restrict': macro redefinition duckdb_build/extension/jemalloc/jemalloc/include\jemalloc/internal/jemalloc_internal_decls.h(87): note: see previous definition of 'restrict' error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\bin\HostX86\x64\cl.exe' failed with exit code 2

— Reply to this email directly, view it on GitHub https://github.com/duckdb/dbt-duckdb/issues/319, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAECWZBM4KBQ4EO5V4KEYIDYOF2FZAVCNFSM6AAAAABBYP3RYSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA3TSMZZGA3DANA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

jp187 commented 5 months ago

@jwills Thank you for the quick response! I missed duckdb/duckdb#9301 . I installed python 3.11 and that addressed the issue.