https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125956
--- Comment #13 from Jonathan Wakely <redi at gcc dot gnu.org> --- :info:build relpath=$(/opt/local/var/macports/build/libge3xURi/work/gcc-16.1.0/libstdc++-v3/../contrib/relpath.sh ) && \ :info:build sed "s,@MODPATH@,$relpath," /opt/local/var/macports/build/libge3xURi/work/gcc-16.1.0/libstdc++-v3/src/c++23/libstdc++.modules.json.in > libstdc++.modules.json :info:build sed: 1: "s,@MODPATH@,Usage: relp ...": unescaped newline inside substitute pattern :info:build make[6]: *** [libstdc++.modules.json] Error 1 The command it's running is: $(/opt/local/var/macports/build/libge3xURi/work/gcc-16.1.0/libstdc++-v3/../contrib/relpath.sh ) The second argument is missing, so relpath.sh prints this message then exits: Usage: relpath.sh FROM TO Print the relative path from FROM to TO FROM must be a directory, but need not exist Then sed is being asked to replace @MODPATH@ with the message above, which contains embedded newlines.
