-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Build errors: error: unknown type name 'StringPiece' #7692
Comments
CC: @assignUser |
I wonder if this is due to #6725 CC: @majetideepak |
Tried a clean build. Still seeing errors.
|
Actually, the latest errors come after changing cmake to
|
Also seeing these errors:
|
I am taking a look as well. |
@mbasmanova can you delete your |
Why are these changes needed? |
Was just trying to get unblocked. I tried deleting cmake-build-debug already. Still can't build. |
Got it. DuckDB inside the external folder is now fully removed. |
@majetideepak Yes... but the problem is I can no longer build the project. |
I'm seeing changes in .circleci/dist_compile.yml to make CI happy. I wonder if something similar is needed in local setup. |
What does this do? Is this supposed to checkout DuckDB code from GitHub and build it locally? Is this resulting in the following errors?
|
Looks like I have fresh code in cmake-build-debug/_deps/duckdb-src, but it fails to build...
|
Should I be able to build using 'make debug' from inside cmake-build-debug/_deps/duckdb-src ? |
My hunch is that your system re2 |
This is the command used by CLion to build:
|
If I remove it... will it not cause problems building something other than Velox? Or are you saying Velox will re-create these files during buid? |
Is there a safer way to tell Velox not to use system's RE2? |
Interestingly make debug from cmake-build-debug/_deps/duckdb-src is making progress. |
There is a safe way: You can specify |
You should see |
But |
Can you try deleting the |
I'm also seeing
which seems to be in conflict with
|
Deleted cmake-build-debug again. Seeing this now.
|
Does CMake fail? |
Still build fails.
I'm puzzled why are we building duckdb again? It seems like it should have been built during cmake
but looks like it being built again during Velox build
|
| I'm puzzled why are we building duckdb again? It seems like it should have been built during cmake The fetch and prepare of DuckDB happens during CMake. The DuckDB build does happen during the Velox build. |
Got it.. This is still failing then. |
On retry, sometimes I get a different error:
|
Another unblock option is to build DuckDB externally. CI has steps here. |
I see that DuckDB builds the above libraries. I am guessing there could be a conflict if they are available in the system as well. |
Trying to build DuckDB externally.
|
Figured out permission issue. Trying to build with DuckDB_SOURCE=SYSTEM now. |
Different error:
|
A quick workaround is to disable deprecated warnings. This can be done in the folly CMakeLists.txt (for the bundled version) or in the Velox CMakeLists.txt (
|
For the other build issues, does CLion show you the complete command it tried to run (e.g. with all the command line options)? I tried to repro the issue but could not (but I'm not using CLion). I do have re2 and fmt installed into my system under |
I followed Deepak's advice to build and install newer folly. That solved the problem. |
@majetideepak should we bump our folly version dependency then? |
Folks, I'm now trying to build Prestissimo and seeing more errors: prestodb/presto#21492 |
@mbasmanova With the Folly upgrade, we likely have to upgrade fmt as well. We currently use fmt |
This is what I ended up doing yesterday to unblock. It worked. Thanks. |
Problem description
Seeing build errors on latest main. CC: @pedroerp @majetideepak @kgpai
System information
Velox System Info v0.0.2
Commit: 6d4b6eb
CMake Version: 3.26.4
System: Darwin-23.1.0
Arch: x86_64
C++ Compiler: /Library/Developer/CommandLineTools/usr/bin/c++
C++ Compiler Version: 15.0.0.15000040
C Compiler: /Library/Developer/CommandLineTools/usr/bin/cc
C Compiler Version: 15.0.0.15000040
CMake Prefix Path: /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr;/usr/local;/usr;/;/usr/local/Cellar/cmake/3.26.4;/usr/local;/usr/X11R6;/usr/pkg;/opt;/sw;/opt/local
Conda Env
CMake log
The text was updated successfully, but these errors were encountered: