From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id E06E33858C62 for ; Wed, 21 Sep 2022 15:36:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E06E33858C62 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=franke.ms Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=franke.ms Received: from serveronline.org ([136.243.37.185]:50481 helo=franke.ms) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ob1mH-0003qq-5R for gcc-help@gcc.gnu.org; Wed, 21 Sep 2022 11:36:46 -0400 Received: from HP (i59F6C135.versanet.de [89.246.193.53]) by serveronline.org (BEJY V1.6.12-SNAPSHOT (c) 2000-2021 by BebboSoft, Stefan "Bebbo" Franke, all rights reserved) with SMTP id 18360acf2fcafc343d8d753f79d from stefan@franke.ms for gcc-help@gcc.gnu.org; Wed, 21 Sep 2022 16:31:30 +0100 From: To: References: In-Reply-To: Subject: AW: GCC builds with relative searchpaths instead of absolute Date: Wed, 21 Sep 2022 17:31:30 +0200 Message-ID: <009101d8cdcf$38ea8e90$aabfabb0$@franke.ms> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQEfuK3Tw7ccG/8+Msl8vkkB/tPtJ69cLNgA Content-Language: de Received-SPF: pass client-ip=136.243.37.185; envelope-from=stefan@franke.ms; helo=franke.ms X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9,SPF_HELO_PASS=-0.001,SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,SPF_FAIL,SPF_HELO_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > -----Urspr=C3=BCngliche Nachricht----- > Von: Gcc-help Im > Auftrag von Nuno Silva via Gcc-help > Gesendet: Mittwoch, 21. September 2022 13:43 > An: gcc-help@gcc.gnu.org > Betreff: GCC builds with relative searchpaths instead of absolute >=20 > Hello, > This is my first post in this mailing list, so I apologize if I do = anything wrong. >=20 > I'm working on a hobby operating system and, as part of making apps = for it, > I'm trying to port gcc to it. To be clear: I already have my cross = compiler, I just > want to make gcc run inside the OS. >=20 > However, gcc doesn't seem to find cc1, and when I look into the = searchdirs it > shows relative paths (prepended with ".."), which means it would never = find > cc1. > I'm configuring GCC with the following: >=20 > configure --host=3Dx86_64-toast --prefix=3D/usr = --target=3Dx86_64-toast --with- > sysroot=3D/ --with-build-sysroot=3D = --enable-languages=3Dc,c++ -- > enable-initfini-array --disable-multilib --disable-nls --enable-lto = --with- > system-zlib CFLAGS=3D-O2 CXXFLAGS=3D-O2 >=20 > Then running make all-gcc all-target-libgcc all-target-libcstdc++-v3 >=20 > Is there some sort of setting I could use to change the searchdirs to > absolute? >=20 > Thank you very much for your time. Really: --prefix=3D/usr ??? Installing locally built applications with prefix /usr is a really bad = idea as the files installed may easily overwrite files installed by = package managers.