From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1856B3858C56; Wed, 4 May 2022 08:50:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1856B3858C56 From: "creatorsmithmdt at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/105474] New: GCC fails to bootstrap with --disable-libstdcxx Date: Wed, 04 May 2022 08:50:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: creatorsmithmdt at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2022 08:50:18 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105474 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=3Dc,c++.=20 g++ -std=3Dc++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-co= mmon -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=3D"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 agai= nst `.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=