-
Notifications
You must be signed in to change notification settings - Fork 18
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
Install TileDB with the top-level install-tiledb
target.
#711
Conversation
Could I ask you to please restore the three files in local/ ? Deleting them has really nothing to do with this PR. I think I later added a .gitignore for the whole directory. |
@@ -47,8 +47,7 @@ fi | |||
mkdir build | |||
cd build | |||
../tiledb-src/bootstrap --force-build-all-deps --enable-s3 --enable-serialization --linkage=shared | |||
make -j 2 | |||
make -C tiledb install | |||
make -j 2 install-tiledb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is good. The script is actually not triggered all that often: CRAN builds get artifacts, and default development builds usually find TileDB in /usr/local
@@ -40,8 +40,7 @@ mkdir build | |||
cd build | |||
export AWSSDK_ROOT_DIR=/usr | |||
../bootstrap --prefix=/usr/local --enable-s3 --enable-serialization --linkage=shared | |||
make -j 8 | |||
make -C tiledb install | |||
make -j 8 install-tiledb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above.
@@ -36,8 +36,7 @@ cd TileDB-${ver} | |||
mkdir build | |||
cd build | |||
../bootstrap --prefix=../../tiledb --disable-tbb | |||
make -j4 | |||
make -C tiledb install | |||
make -j4 install-tiledb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a more local test file. While we are at it, would you mind removing --disable-tbb
?
Feedback addressed. It seems github.dev automatically removed the files in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice stuff
Yes, that is probably a side effect of the .gitignore added after the fact. Will clean that up eventually. Thanks for making the change, and for keeping our build infra well-oiled. It matters. Come to think about it, I will merge this in a minute or two or ten once the queued macOS ran over it too and then add a NEWS entry in the equally-pending #710. |
@teo-tsirpanis Could this be related? I had a first fail in the nightly build in quite some time on this (lines 646 and below under 'Install Package': -- Build files have been written to: /tmp/RtmperrptL/R.INSTALL4ecf1cc6df/tiledb/src/build
bootstrap success. Run "make" to build, "make check" to test, or "make -C tiledb install" to install.
Error: could not load cache
make[3]: *** [CMakeFiles/install-tiledb.dir/build.make:70: CMakeFiles/install-tiledb] Error 1
make[2]: *** [CMakeFiles/Makefile2:141: CMakeFiles/install-tiledb.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:148: CMakeFiles/install-tiledb.dir/rule] Error 2
make: *** [Makefile:150: install-tiledb] Error 2
using inst/tiledb/{lib,include}
configure: creating ./config.status
config.status: creating src/Makevars
** libs
using C compiler: ‘gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0’
using C++ compiler: ‘g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0’
using C++17
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I. -I../inst/include/ -I../inst/tiledb/include -DTILEDB_SILENT_BUILD -I'/usr/lib/R/site-library/Rcpp/include' -I'/usr/lib/R/site-library/RcppInt64/include' -I'/usr/lib/R/site-library/nanoarrow/include' -fpic -g -O2 -ffile-prefix-map=/build/r-base-H8urij/r-base-4.4.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c RcppExports.cpp -o RcppExports.o
In file included from RcppExports.cpp:4:
../inst/include/tiledb.h:8:10: fatal error: tiledb/tiledb: No such file or directory
8 | #include <tiledb/tiledb>
| ^~~~~~~~~~~~~~~
compilation terminated.
make: *** [/usr/lib/R/etc/Makeconf:204: RcppExports.o] Error 1
ERROR: compilation failed for package ‘tiledb’
* removing ‘/usr/local/lib/R/site-library/tiledb’ |
I think I know what the problem is, will open a PR. |
Let's switch to DMs over slack please. I am 15+ mins into a build in a container. I am looking at ## Build
mkdir build
cd build
../tiledb-src/bootstrap --force-build-all-deps --enable-s3 --enable-serialization --linkage=shared
make -j 2 install-tiledb
cd ..
## Install
mkdir -p ../inst/tiledb
cp -ax build/dist/* ../inst/tiledb/
mkdir -p ../tiledb
cp -ax build/dist/* ../tiledb/ and I suspect the (needless dual) debug and release build is to blame. PS And bootstrap success. Run "make" to build, "make check" to test, or "make -C tiledb install" to install.
Error: could not load cache is suspicious. Did cmake miss a build step here? |
Fixed identified and confirmed, follow-up PR coming up. |
Preparation for SC-36913
This PR updates the shell scripts to use the
install-tiledb
target to build and install TileDB, instead of invokingmake
twice – once in the build directory, and once in thetiledb
subdirectory.TileDB is going to remove the superbuild and become a single CMake project without the
tiledb
subdirectory, and with this PR the R API will be prepared for this.