Closed jcheng5 closed 1 year ago
I looked into the -DNDEBUG
thing, messing with the environment variables that are set for the ./configure
call in src/Makevars.
CPPFLAGS="$(CPPFLAGS)"
doesn't fix it, as -DNDEBUG
is not part of it.CPPFLAGS="$(ALL_CPPFLAGS)"
sort of fixes it--it puts -DNDEBUG
in the right place, but using the RDcsan copy of R, the value of ALL_CPPFLAGS
contains double quotes around one of the include paths which messes everything up.CPPFLAGS="-DNDEBUG"
fixes it. I think this might be the best option, because the rest of the stuff in ALL_CPPFLAGS
is include dirs for R that don't pertain to libuv anyway. But I will defer to the experts.How about this?
diff --git a/src/Makevars b/src/Makevars
index 0dd1e62..dfe865d 100644
--- a/src/Makevars
+++ b/src/Makevars
@@ -77,7 +77,7 @@ libuv/Makefile: libuv/m4/lt~obsolete.m4
sh autogen.sh; \
fi; \
chmod +x configure; \
- CC="$(CC)" CFLAGS="$(CFLAGS) $(CPICFLAGS) $(C_VISIBILITY)" AR="$(AR)" RANLIB="$(RANLIB)" LDFLAGS="$(LDFLAGS)" ./configure $(CONFIGURE_FLAGS)
+ CC="$(CC)" CFLAGS="$(CFLAGS) $(CPICFLAGS) $(C_VISIBILITY) -DNDEBUG" AR="$(AR)" RANLIB="$(RANLIB)" LDFLAGS="$(LDFLAGS)" ./configure $(CONFIGURE_FLAGS)
libuv/.libs/libuv.a: libuv/Makefile
$(MAKE) --directory=libuv \
How would I verify in CI that the problem is resolved?
@nealrichardson That would definitely solve it--it was one of the attempts I tried yesterday
-DNDEBUG
to prevent assertions1.6.11 release checklist here: https://github.com/rstudio/httpuv/issues/371