RFR: 8296478: Rework 8282948 and 8282700 to use the new autoconf UTIL_ARG_WITH
Magnus Ihse Bursie
ihse at openjdk.org
Wed Nov 16 19:48:16 UTC 2022
On Fri, 11 Nov 2022 14:56:29 GMT, Julian Waters <jwaters at openjdk.org> wrote:
> For one reason or another this particular flag simply refuses to work properly with UTIL_ARG_WITH, and after numerous attempts I'm completely lost as to how to make it function without crashing autoconf halfway through before the configure script is even generated
This sounds like the typical case that happens if you inadvertently write the name of a macro ("function") that gets expanded. Like this:
AC_DEFUN([TEST_FOO],
[
echo Debug: we are running in TEST_FOO
])
will fail to compile with a stack overflow, since the `TEST_FOO` in the debug output will be recursively expanded with the function we're trying to expand. (Been there, done that, has produced profanities over autoconf enough to guarantee me a very hot place in the afterlife, before I figured that one out...)
So check if you are trying to write a "keyword" where a substring matches some other defined macro.
-------------
PR: https://git.openjdk.org/jdk/pull/11020
More information about the build-dev
mailing list