l...@gnu.org (Ludovic Courtès) skribis: > It confirms that the bad code creates a <gexp> structure with the empty > list as its ‘modules’ field instead of '((guix build utils)). > > That’s clearly a Guile bug.
This miscompilation issue involves “syntax parameters” (because ‘with-imported-modules’ uses a syntax parameter), and it very likely has to do with the thread-safety issue I describe here: <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27476#74>. Ludo’.