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

            Bug ID: 125956
           Summary: Build Failures When Building GCC16 on
                    apple-darwin-powerpc 10.4.11
           Product: gcc
           Version: 16.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: william.root1996 at gmail dot com
  Target Milestone: ---

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?

Also, the Makefile for C++20 (
https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-v3/src/c%2B%2B20/Makefile.in
) compiled fine when -fpermissive was added to the AM_CXXFLAGS at line 460, but
had a build failure otherwise. Is it safe to build this directory with
-fpermissive or would another situation be preferred?
My apologies for any problems in this report, it is my first time filing one.
Thank you for any help.

Reply via email to