Skip to content

docs: C/C++ quickstart results in "No rule to make target 'quickstart'. Stop." #2905

@daipom

Description

@daipom

What happened?

It appears that the target name quickstart is wrong in C/C++ quickstart,

$ mamba install cmake compilers libadbc-driver-manager libadbc-driver-sqlite
$ mkdir build
$ cd build
$ cmake ../docs/source/cpp/recipe
$ cmake --build . --target quickstart
gmake: *** No rule to make target 'quickstart'.  Stop.

It appears that it should be recipe-quickstart.

add_executable(recipe-quickstart quickstart.cc)

$ cmake --build . --target recipe-quickstart
[ 14%] Building C object _deps/nanoarrow-build/CMakeFiles/nanoarrow.dir/src/nanoarrow/array.c.o
[ 28%] Building C object _deps/nanoarrow-build/CMakeFiles/nanoarrow.dir/src/nanoarrow/schema.c.o
[ 42%] Building C object _deps/nanoarrow-build/CMakeFiles/nanoarrow.dir/src/nanoarrow/array_stream.c.o
[ 57%] Building C object _deps/nanoarrow-build/CMakeFiles/nanoarrow.dir/src/nanoarrow/utils.c.o
[ 71%] Linking C static library libnanoarrow.a
[ 71%] Built target nanoarrow
[ 85%] Building CXX object CMakeFiles/recipe-quickstart.dir/quickstart.cc.o
[100%] Linking CXX executable recipe-quickstart
[100%] Built target recipe-quickstart
$ ./recipe-quickstart
Got -1 rows
Result schema: struct<THEANSWER: int64>
Got a batch with 1 rows
THEANSWER[0] = 42

It had changed from quickstart since the following fix.

Stack Trace

Not related.

How can we reproduce the bug?

https://arrow.apache.org/adbc/main/cpp/quickstart.html#quickstart

mamba install cmake compilers libadbc-driver-manager libadbc-driver-sqlite
mkdir build
cd build
cmake ../docs/source/cpp/recipe
cmake --build . --target quickstart

Environment/Setup

  • Ubuntu 22.04.5 LTS
  • mamba 2.1.1 (Miniforge)

Metadata

Metadata

Assignees

Labels

Type: bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions