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

            Bug ID: 105298
           Summary: GCC-12-20220410 FTBFS for
                    --enable-languages=[c,c++,]d: configure: error: can't
                    compile D sources!: gcc/d21:
                    /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.29'
                    not found
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kdevel at vogtner dot de
  Target Milestone: ---

Different from GCC 11.2 GCC 12 does not seem to build gdc without having
already a gdc installed. In order to overcome this I use a GCC 11.2 which is
installed in a non-std. For this puropose I set

   PATH=<path_to_gcc-11.2>:$PATH
   export LD_RUN_PATH=<path_to_gcc-11.2>/lib64:<path_to_gcc-11.2>/lib

before

   gcc-12-20220410/configure --prefix=$inst --enable-languages=c,c++,d

where $inst ist a non-std. directory.

   make bootstrap

then fails with error 2 and

   configure: error: can't compile D sources!

This is caused by gcc/d21 in the objdir referencing /usr/lib64/libstdc++.so
instead of <path_to_gcc-11.2>/libstdc++.so, which is caused by RPATH
set to $inst/lib64 instead of <path_to_gcc-11.2>/lib64.

Reply via email to