From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by sourceware.org (Postfix) with ESMTPS id C50D13858D37 for ; Wed, 21 Sep 2022 11:42:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C50D13858D37 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-oi1-x22b.google.com with SMTP id o184so7599307oif.13 for ; Wed, 21 Sep 2022 04:42:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date; bh=/dg8yZrU8ouWjPn+puI31Za9MHjTRjxTtR+PCW1uI9Q=; b=lvVOUduB3p2XVdcHaU0bXjKrqI5Ry5KHTRAagM509Mg3tzsEW5OqKht82iHFS7wUgL bPSX7xhvpulwQbaaGn48zB8kcpx3Hk3m8HVh25D7CF2IfmJ/E4RGHJh/RYCRbbyXXhbT uBoZaHo089bWLjiu51vRFMXPfiKc0yVURZkiZX0dj2P6deY0R3cY9bVryDjJiSR8tkad J5uhKkkAnaOEmrvIVMgIjLDpuV6eXPG9hSvUS4/qIAPdCw0ySyRmLRkdrFx42F3fuH9V TBuarlsKEsJuA57OcMye01oJ7tWP3OnKHoCVkMjbPThW7BTukScHR+BdJeURBULDXxdh Z6zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date; bh=/dg8yZrU8ouWjPn+puI31Za9MHjTRjxTtR+PCW1uI9Q=; b=sK2E5SR7mnsK9/R1/IKGjtw6w7iShaz/i5Dr4ITS1o0HQgsInhv3Jm22Nx8V1q9Zcv AJpkS/rA6SfUpAb8Rxte9rG4LvwNQoBR3B5d5MPH/SwB+i/G7PMu0y5zOkiU2Whw7vfp GX10JjVnTC2dX/flSyvR4z8UYH22+QUhRJLE0fNVCOhNR6OJgD4zmGrA9rKS1wKjEHrN n0cyFtz8fBALOqIZLBpE45v7oWAJ53VR9GikxXtl/IBUSEuYgpeHD3BGH9KPu5Aw/2BC igA+JlDUe6yi8+OGo+7QHh3W/AZuNhhYvF16yvLX7AaIrJMrrcJaj3fJ+u2lKEDyPmy6 txuw== X-Gm-Message-State: ACrzQf1BFSSB1KhOMdDaoLnD6kNSIXTTwhHWrlsi7tWx66Bl3tSC+aUv rcj5zOOi7vtlebPg0WwJdcmNFjJrnbMH568zzHzLDRI+ X-Google-Smtp-Source: AMsMyM4LF+MYGPHZhk5E+qsAHrbttgyZPd2uqfGwqk6qUARSBy7EqwvZsgTHXk/MQXLXu0DMbyVlb6FqVRrvnz/tljQ= X-Received: by 2002:a54:4388:0:b0:345:20f6:775f with SMTP id u8-20020a544388000000b0034520f6775fmr3687454oiv.259.1663760576603; Wed, 21 Sep 2022 04:42:56 -0700 (PDT) MIME-Version: 1.0 From: Nuno Silva Date: Wed, 21 Sep 2022 12:42:45 +0100 Message-ID: Subject: GCC builds with relative searchpaths instead of absolute To: gcc-help@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.2 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: Hello, This is my first post in this mailing list, so I apologize if I do anything wrong. 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. 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: configure --host=x86_64-toast --prefix=/usr --target=x86_64-toast --with-sysroot=/ --with-build-sysroot= --enable-languages=c,c++ --enable-initfini-array --disable-multilib --disable-nls --enable-lto --with-system-zlib CFLAGS=-O2 CXXFLAGS=-O2 Then running make all-gcc all-target-libgcc all-target-libcstdc++-v3 Is there some sort of setting I could use to change the searchdirs to absolute? Thank you very much for your time.