# Fail to compile TileDB-R against dev

**URL:** <https://forum.tiledb.com/t/fail-to-compile-tiledb-r-against-dev/163>\
**Category:** Uncategorized\
**Created:** [April 21, 2020, 7:14pm UTC](https://forum.tiledb.com/t/fail-to-compile-tiledb-r-against-dev/163 "2020-04-21T19:14:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikejiang](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.tiledb.com/mikejiang/32/102_2.png) [@mikejiang](https://forum.tiledb.com/u/mikejiang)\
**Post date:** [April 21, 2020, 7:14pm UTC](https://forum.tiledb.com/t/fail-to-compile-tiledb-r-against-dev/163/1 "2020-04-21T19:14:57Z")

</div>

successfully built TileDB/dev and installed int /usr, then R CMD INSTALL TileDB-R  
libtiledb.cpp: In function ‘SEXPREC\* libtiledb\_dim\_get\_domain(Rcpp::XPtrtiledb::Dimension)’:  
libtiledb.cpp:664:10: error: ‘TILEDB\_DATETIME\_YEAR’ was not declared in this scope  
case TILEDB\_DATETIME\_YEAR:

And I was trying to locate the header from /usr/include/tiledb where TILEDB\_DATETIME\_YEAR is defined but didn’t succeed,

Then I went ahead to install TileDB/release-1.7.5 , but it failed the installation  
[70%] Built target ep\_zstd  
CMake Error at ep\_tbb-stamp/ep\_tbb-download-Release.cmake:16 (message):  
Command failed: 1

‘/usr/bin/cmake’ ‘-Dmake=’ ‘-Dconfig=’ ‘-P’ ‘/home/wjiang2/rglab/workspace/TileDB/build/externals/src/ep\_tbb-stamp/ep\_tbb-download-Release-impl.cmake’

See also

```
/home/wjiang2/rglab/workspace/TileDB/build/externals/src/ep_tbb-stamp/ep_tbb-download-*.log

```

CMakeFiles/ep\_tbb.dir/build.make:89: recipe for target ‘externals/src/ep\_tbb-stamp/ep\_tbb-download’ failed  
make[2]: \*\*\* [externals/src/ep\_tbb-stamp/ep\_tbb-download] Error 1  
CMakeFiles/Makefile2:269: recipe for target ‘CMakeFiles/ep\_tbb.dir/all’ failed  
make[1]: \*\*\* [CMakeFiles/ep\_tbb.dir/all] Error 2  
Makefile:83: recipe for target ‘all’ failed  
make: \*\*\* [all] Error 2

---

<div class="post-metadata">

**Author:** ![Dirk\_Eddelbuettel](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.tiledb.com/dirk_eddelbuettel/32/54_2.png) [@Dirk\_Eddelbuettel](https://forum.tiledb.com/u/Dirk_Eddelbuettel)\
**Post date:** [April 21, 2020, 7:33pm UTC](https://forum.tiledb.com/t/fail-to-compile-tiledb-r-against-dev/163/2 "2020-04-21T19:33:30Z")

</div>

Hi Mike,

I tend work with both the main TileDB ‘dev’ as well, and the current R master, and have never seen that issue of `TILEDB_DATETIME_YEAR` being undefined.

Is it possibly you may have your include paths crossed or something else set up oddly?

```
edd@rob:~$ grep -l TILEDB_DATETIME_YEAR /usr/local/include/tiledb/*
/usr/local/include/tiledb/dimension.h
/usr/local/include/tiledb/type.h
edd@rob:~$ grep -l TILEDB_DATETIME_YEAR /usr/local/include/tiledb/* | xargs ls -l
-rw-r--r-- 1 root root 14379 Mar 24 13:29 /usr/local/include/tiledb/dimension.h
-rw-r--r-- 1 root root 12186 Mar 18 23:28 /usr/local/include/tiledb/type.h
edd@rob:~$ 

```

I also keep a grid of releases for simple CI checks (as Docker containers). These are narrower with fewer optional components turned on, but cover of course the TileDB releases from 1.7.5, 1.7.6, 1.7.7 and dev. In those, the `grep` above succeeds the same way. Can you maybe backtrack and double check simple things (such as building our examples) work?

Cheers, Dirk

---

<div class="post-metadata">

**Author:** ![mikejiang](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.tiledb.com/mikejiang/32/102_2.png) [@mikejiang](https://forum.tiledb.com/u/mikejiang)\
**Post date:** [April 21, 2020, 8:47pm UTC](https://forum.tiledb.com/t/fail-to-compile-tiledb-r-against-dev/163/3 "2020-04-21T20:47:45Z")

</div>

Thanks for the quick reply!Yes, you reminded me of the old version of tiledb installed (one year ago) at /usr/local, which seems to precede the /usr where new version lives during header lookup.  
Anyway, after the removal, it works now!

---

<div class="post-metadata">

**Author:** ![Dirk\_Eddelbuettel](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.tiledb.com/dirk_eddelbuettel/32/54_2.png) [@Dirk\_Eddelbuettel](https://forum.tiledb.com/u/Dirk_Eddelbuettel)\
**Post date:** [April 21, 2020, 8:50pm UTC](https://forum.tiledb.com/t/fail-to-compile-tiledb-r-against-dev/163/4 "2020-04-21T20:50:23Z")

</div>

Awesome – very glad to hear it is sorted out!
