Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not export deletes to allow crosscompile #2906

Merged
merged 3 commits into from
Jan 13, 2022
Merged

Conversation

kimmolinna
Copy link
Contributor

I have to comment these two lines to allow crosscompile from WSL2/Ubuntu to Windows with Zig. After this zig buildis working for Ubuntu and zig build -Dtarget=x86_64-windows-gnu is working for Windows.

@Mytherin
Copy link
Collaborator

Those deletes are there for a reason (these objects should not be copied because it is not necessarily safe to do so). Where exactly does the code/compilation fail if the copy constructors are deleted?

@kimmolinna
Copy link
Contributor Author

When I'am crosscompiling for Windows I will get the following error message:

error(compilation): clang failed with stderr: In file included from /home/kimmo/duckdb/extension/parquet/parquet_writer.cpp:1:
In file included from /home/kimmo/duckdb/extension/parquet/include/parquet_writer.hpp:11:
In file included from /home/kimmo/duckdb/src/include/duckdb.hpp:11:
In file included from /home/kimmo/duckdb/src/include/duckdb/main/connection.hpp:14:
In file included from /home/kimmo/duckdb/src/include/duckdb/function/udf_function.hpp:11:
In file included from /home/kimmo/duckdb/src/include/duckdb/function/scalar_function.hpp:11:
In file included from /home/kimmo/duckdb/src/include/duckdb/common/vector_operations/binary_executor.hpp:12:
/home/kimmo/duckdb/src/include/duckdb/common/types/vector.hpp:72:13: error: attribute 'dllexport' cannot be applied to a deleted function

@Mytherin
Copy link
Collaborator

The fix is likely to remove the DUCKDB_API from those lines, rather than remove those lines entirely.

@kimmolinna
Copy link
Contributor Author

I can confirm that crosscompiling with MinGW is working with the lines without DUCKDB_API.

@hannes hannes changed the title remove deletes to allow crosscompile not export deletes to allow crosscompile Jan 13, 2022
@hannes hannes merged commit 18ea12e into duckdb:master Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants