Created attachment 644142 [details] build.log Does not happen with 3.1.2.
Fixed in https://github.com/fish-shell/fish-shell/issues/6609 (needs a few patches).
Fixed in >= 3.3.1 which is already stable in gentoo.