tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Help needed with understanding of config(1) debug output



On Thu, 27 Sep 2018, Valery Ushakov wrote:

On Thu, Sep 27, 2018 at 16:20:50 +0800, Paul Goyette wrote:

I've got a problem where something I've changed over the last six months
(or more) on the [pgoyette-compat] branch has broken the release build
for at least ``build.sh -m algor'' port.  For some unknown reason it is
defining COMPAT_NETBSD32 in opt_compat_netbsd32.h even though the option
is not selected in the kernel definition file.

I've tried to understand the debug output from ``config -ddddd ...'' but
I simply don't understand the output.  (The output looks more like it is
intended to debug config(1) itself, and not for debugging issues with
config's input files.)  I find the following snippet in the debug output

   dependopts:326: debug: depend attr `COMPAT_NETBSD32'
   dependopts:326: debug: option selected `compat_netbsd32'
   dependopts:326: debug: depend `COMPAT_NETBSD32' searched

This seems to indicate that attribute COMPAT_NETBSD32 was previously
"needed" and therefore we need to include option `compat_netbsd32'.  But
there is no earlier mention of COMPAT_NETBSD32 in the debug output.

You made EXEC_ELF32 depend on COMPAT_NETBSD32 and since you enable
EXEC_ELF32, it pulls in COMPAT_NETBSD32 that it now depends on.

Aha!  That's it!

Now, to figure out why I did that, and what I should have done instead.

Thanks for the help!  You've saved me a lot of bisect-time.



+------------------+--------------------------+----------------------------+
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:          |
| (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee dot com   |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd dot org |
+------------------+--------------------------+----------------------------+


Home | Main Index | Thread Index | Old Index