From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by sourceware.org (Postfix) with ESMTPS id D3343391B44B for ; Sun, 11 Dec 2022 12:05:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D3343391B44B 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-ed1-x52b.google.com with SMTP id e13so9164337edj.7 for ; Sun, 11 Dec 2022 04:05:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=PryU7Mt6XGAjVxe83I/TiIS9TzAoU78WX3HaFVv/vYc=; b=PDU6cRC5HxlDb56O0aOljEv1GF47Nu23cAh+pnyy4Mgy+SUWwPPPi1FvCqXGkNbI+K IRagamFlzPlYpI3scnkQLT8THWokXDgBr5bFLzHGdpQhumxyPk/uItp55S/uiKndQFAe uXD5TsY5zGnrY5JuqZEs+8/LkiII7bhKei/7sgPUYayVskXXxFzxthcSe0M1bZd6dMNZ BekNdKPrkpgEl2teOvnq9AAswdEc/fxo560vBhsREjP9qm4VvNnsj7XNL644+UbI59+S hvaSLAnL2+IVQxSRjpZY8Vgh+YSYcazI49WF6tUiVIeEQtAVoUjeZisU5TgwHMw1hyi+ QNtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PryU7Mt6XGAjVxe83I/TiIS9TzAoU78WX3HaFVv/vYc=; b=BUi1tcUNCpSRXuYDCq4fsesBfS4pJu4kkO38bVkWbF2DUHNC1uRRn4y9MqUamj9cyU NBc2qBDi+5a7Y1JpZFST1N5UvMGWDwpb29xt8CeQ7aGyoTTX7mvV6kpePRkoPKoeyu+m e8mhqSyZcHUw4RvpVScIW99MdOVNVHXv0KDqgug84O9pOxCpUu1TazJUPLciAL8f4h7A 4XMbHZ0zJ5hho0v4FB9SfWd0CpntFS7n0AQ+yvEdYop6SWTcmJ4UERmStbKxqprGxNoR cLXaTr5tJP5STsVG4cL/ufRue46Y/i16h7WlUGQrVeL6aoQblfyK8aSPg4KU8vRtgBY/ OZEg== X-Gm-Message-State: ANoB5pkBJxgA985zAEBp4XiXRi5GJoLPGSCf+hfVi1xf5Z043Feyjcbs dwnu/rsVZT/exogLVx1IR+SZYwOmmfEJkFK7hyg= X-Google-Smtp-Source: AA0mqf4fqoB69JcTNj5ve/SzSOcobBIwirIIRFKeJ/nkNKTDT1xm3sP3uHnt7NDBLI4Z38bV7UHP+v+ziz7acNTOvSw= X-Received: by 2002:aa7:c94a:0:b0:46b:74e1:872c with SMTP id h10-20020aa7c94a000000b0046b74e1872cmr37373111edt.301.1670760304631; Sun, 11 Dec 2022 04:05:04 -0800 (PST) MIME-Version: 1.0 References: <8923dbfa73a844ec9356821014f642d7@mentor.com> In-Reply-To: <8923dbfa73a844ec9356821014f642d7@mentor.com> From: Jonathan Wakely Date: Sun, 11 Dec 2022 12:04:52 +0000 Message-ID: Subject: Re: Usability of --with-specs option To: "Mahmoud, Abdulrahman (DI SW ICS MNA)" Cc: gcc-help Content-Type: multipart/alternative; boundary="0000000000007662ce05ef8c32af" X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,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: --0000000000007662ce05ef8c32af Content-Type: text/plain; charset="UTF-8" On Sun, 11 Dec 2022, 09:54 Mahmoud, Abdulrahman (DI SW ICS MNA), < Abdulrahman_Mahmoud@mentor.com> wrote: > Hi, > > I am facing an issue in the GCC on ubuntu 20 as it can't find the crti.o > and crtn.o during linking. > The GCC I am using is being built on Redhat6.5 so it searches for the > missing files in /lib instead of /lib/x86_64-linux-gnu. > > I was searching for a way to configure the GCC to include the > /lib/x86_64-linux-gnu directory in the search dirs while building on > Redhat6.5. > Maybe you're looking for the --enable-multiarch option, but why are you doing this? If you want a compiler that works with Ubuntu conventions, build it on Ubuntu. I found a configuration option called --with-specs so I was thinking I may > add this line "%:if-exists-else(crti.o /lib/x86_64-linux-gnu/crti.o)" to > the --with-specs to be added to Startfile spec name. > > Is this possible with some sort of syntax and if it's not, is there any > other way that I can add the /lib/x86_64-linux-gnu directory to the search > dirs during the configuration? > --enable-multiarch But I think you're trying to solve the wrong problem. > I would really appreciate your help. > > Thanks, > Abdulrahman > --0000000000007662ce05ef8c32af--