Repository navigation
fix: Fix compiler error in debug build - #1368
Conversation
This is to fix a compiler error in debug build. Here is the offending line (line 178): D_ASSERT(dest_offset == nrows); The variable rows is renamed to nrows to make it consistent with ncols.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1368 +/- ##
===========================================
- Coverage 63.61% 52.62% -11.00%
===========================================
Files 123 146 +23
Lines 5266 10017 +4751
===========================================
+ Hits 3350 5271 +1921
- Misses 1916 4746 +2830 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Thanks. How do you enable the debug build? |
In RStudio in the Build tab I select More... -> Load All. In the console I get the following output (note the "(debug build)"): > devtools::load_all(".")
ℹ Loading duckdb
ℹ Re-compiling duckdb (debug build)
── R CMD INSTALL... Here you can see -DNDEBUG at the very beginning and then -UNDEBUG at the very end. I would assume that the compiler interprets is as if we first define NDEBUG and then change our mind and undefined it. There are similar odd things going on because we first -g -O2 (which is really odd - debug symbols with optimization level 2) then later we change our mind and do -g -O0 (which makes more sense). |
|
Thanks. The |
No ~/.R/Makevars, not even a ~/.R dir. I believe what you are looking for is line 56 in compile-dll.R in package pkgbuild. Here are my compiler flags: |
This is to fix a compiler error in debug build. Here is the offending line (line 178):
D_ASSERT(dest_offset == nrows);
The variable rows is renamed to nrows to make it consistent with ncols.