From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by sourceware.org (Postfix) with ESMTPS id 7FCAA3858005 for ; Sat, 24 Sep 2022 10:19:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7FCAA3858005 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-x62a.google.com with SMTP id a26so5221151ejc.4 for ; Sat, 24 Sep 2022 03:19:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date; bh=hWAmYeRNn89M0H1noq54iPFcdlISsqbrXCPYuRDjESw=; b=qC7BL2/5qzgfCKOXGotTQ3NgFGurFYhY7VaucaqCGLPV3aQpi2IohDxdyhSi0ckIpN KZrA76HBCPSfNMF81Vt05fnGAN1hS4DJJeQfJb6q9JqegvfEcNlFZVxEGbid/9t3O6Kp MD/Lu//k9hi/cL/2aPZovT/Qgw3dynpyJgQmSClgBuHPCvSz3JDBxhJn8bEgNwvA0kFG 0dvMcse23ACe6UzoR3ipxTGaxgcskXMWhFKxsei0HaDkTq9CwacSbQDg5kCWwuzOOSaL B702FnxNZRpwvH2C0rLiBrouWP1YlPM41E19NNvPWvjATOEqR6qu7/zlMC2xVlWTsRV9 KIdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date; bh=hWAmYeRNn89M0H1noq54iPFcdlISsqbrXCPYuRDjESw=; b=iHEJxvAkTjyEKdTEUMpp8oHOsQgbi4GiIK/Traj0GPM6vzozyXTSXHHrEFxC2UqOfz PPkZbVK9QJIo2QtZl1VGrDsuZ9Oe8heRo6OZLVJDQZD5nUjCnIWSyhpbu3rGFw/j3Hvm ukafaTVucmXUtR29lR8n2Of97sbOcpLqncIThs/3WSglYfGjz/9k/r9ERaPwawKbm3Y/ YGQ3K85q5/LK89aJ+KXu8uUOZJJZrVjt9Su0JPK9j4iN8uN0dHEoHSP5mFei2lWt/wNu MTGqRVBoS8qUhkO8ZFrHE4RAoKbvG99LYOmFOD6SOiVaWFQr5IpVRjrHnay+3On+9h3X XTwQ== X-Gm-Message-State: ACrzQf2nX/yb9LmWoDZLlTif+EjPK3BAl2E4A0JxhlZh/6rE9SqqWJsX LH/LEALaBM1MC5C2rSiH3V78BQSa81ipwgEqN0q0YPqR X-Google-Smtp-Source: AMsMyM4HMmkv3vOBA8R6pIW+5+osiWQjZ7m7nVW4xKt8eWlQA+3PPmeN0RPYXxQ3vDs4MshWNlhZXJSIrhgHgEJvOF4= X-Received: by 2002:a17:907:968d:b0:782:66dc:4b89 with SMTP id hd13-20020a170907968d00b0078266dc4b89mr9296530ejc.386.1664014781111; Sat, 24 Sep 2022 03:19:41 -0700 (PDT) MIME-Version: 1.0 References: <5696641663896903@2ifjmylsx37py6nh.sas.yp-c.yandex.net> <498751663981402@m5q2bgqovkelfrov.myt.yp-c.yandex.net> In-Reply-To: From: Jonathan Wakely Date: Sat, 24 Sep 2022 11:19:29 +0100 Message-ID: Subject: Re: Can't I build gcc with multilib support? To: alexandre schenberg Cc: gcc-help Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 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: On Sat, 24 Sept 2022 at 11:18, Jonathan Wakely wrote: > If you won't do that, I would figure out why the libraries in /usr/libx86= _64-linux-gnu/4.4.3 are even being considered by the linker. That's not a s= tandard system path, so GCC 4.9.4 should not be looking in there. > > Compile with -v and -Wl,v -Wl,t to see wht paths are being passed to the = linker, and which files the linker is looking at. Try that when compiling a= C program, and when compiling a C++ program. Check that the 'gcc' nd 'g++'= binaries are consistent. It sounds to me like you might have created some = kind of hybrid of GCC 4.4.2 and 4.9.4! And if none of that works, show us **exactly** the configure command you're using, and the output of 'gcc -v' for all existing GCC installations on the system, so we can see what's actually happening. It's hard to debug it from your descriptions so far.