Skip to content
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

CRAN firedrill 2023-05 #364

Closed
7 tasks done
jcheng5 opened this issue May 10, 2023 · 4 comments
Closed
7 tasks done

CRAN firedrill 2023-05 #364

jcheng5 opened this issue May 10, 2023 · 4 comments
Assignees

Comments

@jcheng5
Copy link
Member

jcheng5 commented May 10, 2023


1.6.11 release checklist here: #371

@jcheng5
Copy link
Member Author

jcheng5 commented May 10, 2023

I looked into the -DNDEBUG thing, messing with the environment variables that are set for the ./configure call in src/Makevars.

  1. CPPFLAGS="$(CPPFLAGS)" doesn't fix it, as -DNDEBUG is not part of it.
  2. 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.
  3. 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.

@nealrichardson
Copy link
Contributor

nealrichardson commented May 10, 2023

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?

@jcheng5
Copy link
Member Author

jcheng5 commented May 10, 2023

@nealrichardson That would definitely solve it--it was one of the attempts I tried yesterday

@nealrichardson
Copy link
Contributor

Done in #369

@jcheng5 jcheng5 closed this as completed May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants