https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125956

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |WAITING

--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to William Root from comment #0)
> Hello,
> I am compiling gcc16 with the PowerPC Ports build system (
> https://github.com/macos-powerpc/powerpc-ports/commit/
> cff9f9cf48a7637f9b430f5edaa1053ad5e93c01 )
> The following sed command in the C++23 Makefile (
> https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-v3/src/c%2B%2B23/
> Makefile.in ) throws an error that stops the compilation process. 
>       sed "s,@MODPATH@,$$relpath," $< > $@
> 
> # The uninstalled manifest uses the relative path to builddir.
> stamp-module-manifest: libstdc++.modules.json.in
>       @-mkdir -p ../.libs
>       sed "s,@MODPATH@,../c++23," $< \
>         > ../.libs/libstdc++.modules.json
>       @$(STAMP) $@
> 
> Specifically, sed doesn't seem to be recognizing escape characters properly.
> Is there a good workaround to try for this?

Are you sure the problem is sed?

I suspect you're using GNU Make 3.80 which doesn't support the $(abspath)
function used in that Makefile.

We need to know the actual error you're getting. Vague descriptions of it
aren't useful.

Reply via email to