From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward103p.mail.yandex.net (forward103p.mail.yandex.net [77.88.28.106]) by sourceware.org (Postfix) with ESMTPS id 8B1203858D38 for ; Fri, 23 Sep 2022 01:35:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8B1203858D38 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yandex.com Received: from sas1-f45a06513e06.qloud-c.yandex.net (sas1-f45a06513e06.qloud-c.yandex.net [IPv6:2a02:6b8:c08:b315:0:640:f45a:651]) by forward103p.mail.yandex.net (Yandex) with ESMTP id D61B65A2100 for ; Fri, 23 Sep 2022 04:35:03 +0300 (MSK) Received: from 2a02:6b8:c14:6388:0:640:ab95:0 (2a02:6b8:c14:6388:0:640:ab95:0 [2a02:6b8:c14:6388:0:640:ab95:0]) by sas1-f45a06513e06.qloud-c.yandex.net (mxback/Yandex) with HTTP id lYYrrK0fYeA1-Z3f8rF6e; Fri, 23 Sep 2022 04:35:03 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1663896903; bh=Ty+WmVYR1xo8p6xZqMFJFZohXwL2ugsnSrdmjMFUMes=; h=Message-Id:Date:Subject:To:From; b=DggBrES6rtKQd2FDQCLORwSWAb2Hzpu99fZkSiAz/HM8AeCGL4V5orbSoFDBEjNCN STVLHQvSUKEey/29E7nu5b4XozdoxiwHHfbFdNmVlMc0lhn3cOebDNAgR7+3LQj7R6 bLS6OOfRgS6QQoQeyjp6/xdpQDiRAJoNjdVVzgHA= Authentication-Results: sas1-f45a06513e06.qloud-c.yandex.net; dkim=pass header.i=@yandex.com Received: by 2ifjmylsx37py6nh.sas.yp-c.yandex.net with HTTP; Fri, 23 Sep 2022 04:35:03 +0300 From: alexandre schenberg Envelope-From: ale-schenberg@yandex.com To: gcc-help@gcc.gnu.org Subject: Can't I build gcc with multilib support? MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Thu, 22 Sep 2022 22:35:03 -0300 Message-Id: <5696641663896903@2ifjmylsx37py6nh.sas.yp-c.yandex.net> Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi. I am facing a series of error messages when trying to build it with multilib. /usr/bin/ld: skipping incompatible /media/34GB/Arquivos-de-Programas-Linux/Gcc-4.9.4/lib32//libgcc_s.so when searching for -lgcc_s /usr/bin/ld: skipping incompatible /media/34GB/Arquivos-de-Programas-Linux/Gcc-4.9.4/lib32//libgcc_s.so when searching for -lgcc_s checking for default BUILD_CONFIG... bootstrap-debug checking for --enable-vtable-verify... no /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libgcc.a when searching for -lgcc /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libgcc.a when searching for -lgcc /usr/bin/ld: cannot find -lgcc collect2: ld returned 1 exit status configure: error: I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib. This trying to run configure with: LDFLAGS=-L/media/34GB/Arquivos-de-Programas-Linux/Gcc-4.9.4/lib32/ ../configure --prefix=/media/34GB/Arquivos-de-Programas-Linux/Gcc-4.9.4 --disable-checking --enable-languages=c,c++ --enable-multiarch --enable-multlib --with-multilib-list=m32,m64 --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu If I remove the LDFLAGS above I receive: /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libgcc.a when searching for -lgcc /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libgcc.a when searching for -lgcc /usr/bin/ld: cannot find -lgcc collect2: ld returned 1 exit status configure: error: I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib. I have Gcc 4.9.4 installed in the dir mentioned above, but have a symbolic link to it on /usr/local/bin and a sym link to libstdc++.so.6.0.20 on /usr/lib32. I removed the system provided Gcc 4.4.3, but apparently it left behind libgcc.a and other stuff. No idea about why it is complaining about incompatible libgcc_s.so. So, what needs to be done to fix it?