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

            Bug ID: 105474
           Summary: GCC fails to bootstrap with --disable-libstdcxx
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: creatorsmithmdt at gmail dot com
  Target Milestone: ---

On a Debian WSL2 environment (identified as x86_64-pc-linux-gnu and
5.10.102.1-microsoft-standard-WSL2), gcc fails bootstrapping when configured
like so: ../gcc/configure --disable-libstdcxx --enable-languages=c,c++. 

g++ -std=c++11   -g -O2   -DIN_GCC     -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common
 -DHAVE_CONFIG_H  -DGENERATOR_FILE -static-libstdc++ -static-libgcc  -o
build/genchecksum \
    build/genchecksum.o .././libiberty/libiberty.a
mawk -f ../../gcc/gcc/opt-functions.awk -f ../../gcc/gcc/opt-read.awk \
       -f ../../gcc/gcc/optc-save-gen.awk \
       -v header_name="config.h system.h coretypes.h tm.h" < optionlist >
options-save.cc
/usr/bin/ld: .././libiberty/libiberty.a(hashtab.o): relocation R_X86_64_32S
against `.rodata' can not be used when making a PIE object; recompile with
-fPIE
/usr/bin/ld: .././libiberty/libiberty.a(xmalloc.o): relocation R_X86_64_32
against `.rodata.str1.1' can not be used when making a PIE object; recompile
with -fPIE
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:3013: build/genhooks] Error 1
make[3]: *** Waiting for unfinished jobs....
/usr/bin/ld: .././libiberty/libiberty.a(md5.o): relocation R_X86_64_32 against
`.rodata' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: .././libiberty/libiberty.a(xstrerror.o): relocation R_X86_64_32
against `.rodata.str1.1' can not be used when making a PIE object; recompile
with -fPIE
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:3013: build/genchecksum] Error 1
rm gfdl.pod gcc.pod gcov-dump.pod gcov-tool.pod fsf-funding.pod gpl.pod cpp.pod
gcov.pod lto-dump.pod
make[3]: Leaving directory '/home/zopolis4/gccbuild/gcc'
make[2]: *** [Makefile:4954: all-stage2-gcc] Error 2
make[2]: Leaving directory '/home/zopolis4/gccbuild'
make[1]: *** [Makefile:24086: stage2-bubble] Error 2
make[1]: Leaving directory '/home/zopolis4/gccbuild'
make: *** [Makefile:1023: all] Error 2

Reply via email to