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

error: mac os x memory.h not found fix is not documented. #97

Open
dkdndes opened this issue Dec 2, 2024 · 1 comment
Open

error: mac os x memory.h not found fix is not documented. #97

dkdndes opened this issue Dec 2, 2024 · 1 comment

Comments

@dkdndes
Copy link

dkdndes commented Dec 2, 2024

I did the following, which is not documented in your readme in this way; some steps still need to be completed.

Installation of vcpkg

brew install vcpkg
git clone https://github.com/microsoft/vcpkg "$HOME/vcpkg"
export VCPKG_ROOT="$HOME/vcpkg"
export VCPKG_TOOLCHAIN_PATH $VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake
echo $VCPKG_TOOLCHAIN_PATH # just to check

Clone the repo with submodules

git clone --recurse-submodules [email protected]:duckdb/extension-template.git

Run make, and generated an error:

Programming/Insight/extension-template/duckdb/src/include/duckdb/common/constants.hpp:11:10: fatal error: 'memory' file not found
   11 | #include <memory>
      |          ^~~~~~~~
1 error generated.
make[3]: *** [src/verification/CMakeFiles/duckdb_verification.dir/copied_statement_verifier.cpp.o] Error 1
make[2]: *** [src/verification/CMakeFiles/duckdb_verification.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [release] Error 2

I added the path for the files, and it compiled.

export CXXFLAGS="-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1"

I opened the issue because it is challenging to find/fix, and I thought you might like to add the info somewhere in your documentation.

@dkdndes
Copy link
Author

dkdndes commented Dec 2, 2024

build/release/duckdb
v1.1.3 19864453f7
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
D select quack('Jane') as result;
┌───────────────┐
│ result │
│ varchar │
├───────────────┤
│ Quack Jane 🐥 │
└───────────────┘

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

No branches or pull requests

1 participant