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

[native] cmake failure: Objects of target "duckdb" referenced but no such target exists #21492

Closed
mbasmanova opened this issue Dec 6, 2023 · 9 comments · Fixed by #21499
Closed
Assignees
Labels

Comments

@mbasmanova
Copy link
Contributor

Trying to build Prestissimo and getting this error. Wondering if there is a fix or workaround.

CMake Error at presto_cpp/main/types/tests/CMakeLists.txt:52 (target_link_libraries):
  Error evaluating generator expression:

    $<TARGET_OBJECTS:duckdb>

  Objects of target "duckdb" referenced but no such target exists.

CC: @majetideepak @pedroerp @assignUser

@mbasmanova
Copy link
Contributor Author

CC: @kgpai

@mbasmanova
Copy link
Contributor Author

Also, seeing other build errors:

In file included from /Users/mbasmanova/java/presto/presto-native-execution/velox/velox/external/md5/md5.cpp:28:
In file included from /usr/local/include/folly/Conv.h:124:
In file included from /usr/local/include/folly/Demangle.h:19:
In file included from /usr/local/include/folly/FBString.h:34:
/usr/local/include/fmt/format.h:1775:12: error: expected unqualified-id
  if (std::signbit(value)) {  // value < 0 is false for NaN so use signbit.
           ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/math.h:171:5: note: expanded from macro 'signbit'
    ( sizeof(x) == sizeof(float)  ? __inline_signbitf((float)(x))        \
    ^

@mbasmanova
Copy link
Contributor Author

CC: @aditi-pandit @karteekmurthys

@assignUser
Copy link
Contributor

$<TARGET_OBJECTS:duckdb>
Objects of target "duckdb" referenced but no such target exists.

Due to the change away from the amalgamation build the way presto uses duckdb has to be changed as I am pretty sure that just updating the related code to use duckdb_static won't work (it might though).

@mbasmanova
Copy link
Contributor Author

Due to the change away from the amalgamation build the way presto uses duckdb has to be changed

@assignUser Jacob, would you help make this change?

@assignUser
Copy link
Contributor

@mbasmanova I can review a fix but I don't have the bw to fix it. You could try to just rename that target to duckdb_static and keep everything else as is. Or another version (which I think would be more likely to succeed due to includes being passed on) would be to replace the whole generator expression with duckdb_static.

@pedroerp
Copy link
Contributor

pedroerp commented Dec 7, 2023

I think @majetideepak was working on this?

@majetideepak
Copy link
Collaborator

I will take a look at this.

@majetideepak
Copy link
Collaborator

I have a PR to fix this here #21499

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants