In case it helps, here are full build logs:
https://github.com/Homebrew/homebrew-core/pull/22542
https://jenkins.brew.sh/job/Homebrew%20Core%20Pull%20Requests/16097/version=high_sierra/console
https://jenkins.brew.sh/job/Homebrew%20Core%20Pull%20Requests/16097/version=sierra/console
https://jenkins.brew.sh/job/Homebrew%20Core%20Pull%20Requests/16097/version=el_capitan/console

I can reproduce it locally, outside of Homebrew, with the release tarball, and the problem occurs during `make install` not `make`.

On Jan 07, 2018, at 12:12 PM, ilove zfs <ilovezfs@icloud.com> wrote:

The build is indeed using https://ftp.gnu.org/gnu/guile/guile-2.2.3.tar.xz

> I don't run into that in my build of 2.2.3 on macosx.

You may have gnu-sed installed then.

On Jan 07, 2018, at 11:41 AM, Dan Kegel <dank@kegel.com> wrote:

Builds from release tarball might not run into this,
as the tarball already includes the file that rule creates;
at any rate, I don't run into that in my build of 2.2.3 on macosx.