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

Fix duckdb build failure #11059

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

yingsu00
Copy link
Contributor

@yingsu00 yingsu00 commented Sep 21, 2024

Improve dependency install and build (#10920) installs all dependencies in
deps-install subfolder, and set the include directory to it in front of
other include directories. This caused duckdb build failed with "error:
use of undeclared identifier 'FMT_SNPRINTF'". This commit removes the
BEFORE keyword to fix the problem.

Fixes #11058

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 21, 2024
Copy link

netlify bot commented Sep 21, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 816bc69
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/66ef75fa3ca46a00084836e7

@@ -50,7 +50,7 @@ if(DEFINED ENV{INSTALL_PREFIX})
list(APPEND CMAKE_PREFIX_PATH "$ENV{INSTALL_PREFIX}")
# Allow installed package headers to be picked up before brew/system package
# headers
include_directories(BEFORE "$ENV{INSTALL_PREFIX}/include")
include_directories("$ENV{INSTALL_PREFIX}/include")
Copy link
Contributor

@zuyu zuyu Sep 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also remove the comment regarding the before ordering above.

Just curious, since we already have CMAKE_PREFIX_PATH to include $INSTALL_PREFIX, do we need include_directories("$ENV{INSTALL_PREFIX}/include") at all?

cc @assignUser @majetideepak

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also remove the comment regarding the before ordering above.

Just curious, since we already have CMAKE_PREFIX_PATH to include $INSTALL_PREFIX, do we need include_directories("$ENV{INSTALL_PREFIX}/include") at all?

cc @assignUser @majetideepak

Good catch. I actually think include_directories("$ENV{INSTALL_PREFIX}/include") is not needed. I will try it on a new repo tomorrow.

Upgrade FBOS dependencies to 2024.09.16.00 installs all dependencies in
deps-install subfolder, and set the include directory to it in front of
other include directories. This caused duckdb build failed with "error:
use of undeclared identifier 'FMT_SNPRINTF'". This commit removes the
BEFORE keyword to fix the problem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duckdb build failure "error: use of undeclared identifier 'FMT_SNPRINTF'"
3 participants