From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from w4.tutanota.de (w4.tutanota.de [81.3.6.165]) by sourceware.org (Postfix) with ESMTPS id 088D33858401 for ; Mon, 13 Dec 2021 01:15:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 088D33858401 Received: from w3.tutanota.de (unknown [192.168.1.164]) by w4.tutanota.de (Postfix) with ESMTP id D758B1060247 for ; Mon, 13 Dec 2021 01:15:29 +0000 (UTC) Date: Mon, 13 Dec 2021 02:15:29 +0100 (CET) From: Jamie Lee To: gcc@gcc.gnu.org Message-ID: Subject: GCC build errors MIME-Version: 1.0 X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2021 01:15:33 -0000 Hello, I am attempting to build GCC 11.2.0 in a chroot environment, for use in som= e projects. Unfortunately, I am running into errors in the chroot environment, and I'm = not sure what's going on. When building GCC, I am getting these errors: /usr/bin/ld: .libs/gets-chk.o: in function `__gets_chk': /src/libssp/gets-chk.c:74: warning: the `gets' function is dangerous and sh= ould not be used. /usr/bin/ld: .libs/ssp.o: relocation R_X86_64_32 against `.rodata.str1.1' c= an not be used when making a shared object; recompile with -fPIC /usr/bin/ld: .libs/gets-chk.o: warning: relocation against `stdin@@GLIBC_2.= 2.5' in read-only section `.text' collect2: error: ld returned 1 exit status make[3]: *** [Makefile:533: libssp.la] Error 1 make[3]: Leaving directory '/build/x86_64-pc-linux-gnu/libssp' make[2]: *** [Makefile:441: all] Error 2 make[2]: Leaving directory '/build/x86_64-pc-linux-gnu/libssp' make[1]: *** [Makefile:13700: all-target-libssp] Error 2 I am using /src/configure --prefix=3D/usr \ LD=3Dld \ --enable-languages=3Dc,c++ \ --disable-multilib \ --disable-bootstrap \ --enable-host-shared \ --enable-shared \ --with-system-zlib and make -j$(nproc) to build GCC. From what I understand, --enable-host-shared and --enable-sha= red should fix the relocation R_X86_64_32 error, but it isn't.=C2=A0 Sorry if this is the wrong mailing list, but I'm not really sure where to g= o for assistance. Thank you very much.