From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by sourceware.org (Postfix) with ESMTPS id 025BE385800F for ; Wed, 29 Nov 2023 15:55:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 025BE385800F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 025BE385800F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::633 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701273340; cv=none; b=B4ezu9TdSH92+sWO6Wq6rG9CQwIfogrfqvnAQhieDj6CUOgyjRsGyyvX4jwhOglGJnUN0xHOrs8SryKVcQUUAg1qgtiMoIbZbJQmzOotOoHFF2NDTa++fYDFLBJlkQLSMZu+KuDF5sDHsJctxdfL5gpOu2YKu2Usk/uw+IowYOw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701273340; c=relaxed/simple; bh=VuZ0jf1Td0gTOmLpNaK+8gdf4c2st0uucrCdPSrf1vs=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=CAH29IOLe7LIJuGjGKAVZlTepeN1puMXNczUHyC/u0AKyfx+NMQnHAUhRc+PhelN/HKbIf588+Jes0cgbPf4YgCxCYKQPZfJpZv+ta1cRSZWZleRWAHTbGv7OrtRHzrzoHH/sSLwsSI4f772RI/R8zOxyfoiveJAbJVeEErMI4w= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-a132acb67b5so322780566b.3 for ; Wed, 29 Nov 2023 07:55:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701273335; x=1701878135; darn=gcc.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=eg4UligKT/cfh+UHLWS+QBRhfwqvZ32PLFkUGKBIJCQ=; b=Utar92P4qAnOakNP9QLmEj3MQ3cMrAKZNnKXEbbo6ugdRYWV4qdFfeVaFKGk+tUi3l VXkWs2Hhuor978VKwfALcvppZHflbuYh4x5l3Og4OptEh+hXSPMAEGW3cxabtc2xQAA0 M4Wve2QqhyhTFCDN/a2fQDQOB32a5H2/8j96D3GEVi7vkYJPnXfGDch9mlaD0EtYMUZf FNm9pGxheropbDuOb60ArobTRXFOlLWKSMhKN/CyGxo7BRLVtD6fkF7QCnMHgQ797TOJ tSysqq9mel3ovC3dQrA3kTc5esB92sBYvAObYPl6i90UYB6LhSD7FXubtwT4pd3CSXNf 0tdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701273335; x=1701878135; 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:message-id:reply-to; bh=eg4UligKT/cfh+UHLWS+QBRhfwqvZ32PLFkUGKBIJCQ=; b=mx6HyPuWhh0uLggzJv3w6brtIpLBFZiJQwnM0ub/wu2WdUbuNQTDN3gaZr1ntgB1Pf CaMeRVJWt2U0vXNq6+FLq8l6LWuvsVpqoMfKX3v6Cl4ac+V3QbMVqna9rjf2jtrUypj5 MkZ2ydlakQsySNhMWsR4J7z6vLCiEz9+c3EVj6GqUIBtQ/WeX/WQewYgKV3b7vKCPS9x +vRMrEcIw5HhAOyhEdRh5aNf7B4/YJyDEqhE0Jh/SvNpZ30tDYM0lDH9LxK6qI6Cj4cP QLflBNJbLIS2j45bmnGNJfKxTZKWzNnFAzPQuNm2T3oID8P/cCILiJHryiGBo/VNnaiv VaJg== X-Gm-Message-State: AOJu0YzvIS063PkB5ioNYMsr757spFXbOFLd/JzbaLlIWIElVjhyGP5X May5bDCB5yhGoQYxXiDm9sgruuxX6ajO4qG+TKw= X-Google-Smtp-Source: AGHT+IHm+K+5Qt1gEqpQ9NA53Rzz7iIf7SfHJxAj7tuGQfYByMmRPXe+sW3hZoRAlo7qEF6MLjgD6gcNrJXp0qKkAjs= X-Received: by 2002:a17:907:6023:b0:a01:b8c6:7724 with SMTP id fs35-20020a170907602300b00a01b8c67724mr12932333ejc.73.1701273335471; Wed, 29 Nov 2023 07:55:35 -0800 (PST) MIME-Version: 1.0 References: <9eed991c-7def-440a-bb3b-96ea4f26a19e@jguk.org> <8b1d2871-b1e1-4f6a-985a-a66d1b2fe40e@jguk.org> In-Reply-To: <8b1d2871-b1e1-4f6a-985a-a66d1b2fe40e@jguk.org> From: Jonathan Wakely Date: Wed, 29 Nov 2023 15:55:24 +0000 Message-ID: Subject: Re: host-x86_64-pc-linux-gnu/gcc/xgcc: No such file or directory To: Jonny Grant Cc: GCC 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,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE 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 Wed, 29 Nov 2023 at 14:44, Jonny Grant wrote: > > > > On 29/11/2023 13:05, Jonathan Wakely wrote: > > On Wed, 29 Nov 2023 at 12:59, Jonny Grant wrote: > >> > >> Hello > >> > >> Has anyone encountered this when compiling gcc from source? libgomp do= esn't build due to xgcc missing > >> > >> I got latest git, did > >> ./configure --disable-multilib > > > > Don't build in the source directory: https://gcc.gnu.org/wiki/FAQ#confi= gure > > > >> make html > > > > Try make all-gcc before make html. > > > Sure. > > It gets stuck on genmodes.cc > > > > ../gcc_doc/configure --prefix=3D/home/jonny/code/repos/gcc_tests/gcc_inst= all --disable-multilib This belongs on the gcc-help list, not here. Are you sure you ran configure in an empty dir, not one you'd already fouled up with previous configurations or previous 'make html' commands? You should start in a completely empty directory. And I assume ../gcc_doc is not the same directory as . The errors you're getting should not happen unless you've messed up the configure step somehow. > > $ make all-gcc > > make[1]: Entering directory '/home/jonny/code/repos/gcc_tests/gcc_build/g= cc' > g++ -std=3Dc++11 -c -g -O2 -DIN_GCC -fno-exceptions -fno-rtti -fas= ynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qua= l -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual= -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno= -common -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../gcc_doc/gcc = -I../../gcc_doc/gcc/build -I../../gcc_doc/gcc/../include -I../../gcc_doc/g= cc/../libcpp/include \ > -o build/genmodes.o ../../gcc_doc/gcc/genmodes.cc > In file included from ../../gcc_doc/gcc/bconfig.h:3, > from ../../gcc_doc/gcc/genmodes.cc:20: > ../../gcc_doc/gcc/auto-host.h:2717:16: error: declaration does not declar= e anything [-fpermissive] > 2717 | #define rlim_t long > | ^~~~ > In file included from ../../gcc_doc/gcc/genmodes.cc:21: > ../../gcc_doc/gcc/system.h:500:14: error: conflicting declaration of C fu= nction =E2=80=98void* sbrk(int)=E2=80=99 > 500 | extern void *sbrk (int); > | ^~~~ > In file included from ../../gcc_doc/gcc/system.h:302: > /usr/include/unistd.h:1076:14: note: previous declaration =E2=80=98void* = sbrk(intptr_t)=E2=80=99 > 1076 | extern void *sbrk (intptr_t __delta) __THROW; > | ^~~~ > ../../gcc_doc/gcc/system.h:508:14: error: ambiguating new declaration of = =E2=80=98char* strstr(const char*, const char*)=E2=80=99 > 508 | extern char *strstr (const char *, const char *); > | ^~~~~~ > In file included from /usr/include/c++/13/cstring:42, > from ../../gcc_doc/gcc/system.h:241: > /usr/include/string.h:343:1: note: old declaration =E2=80=98const char* s= trstr(const char*, const char*)=E2=80=99 > 343 | strstr (const char *__haystack, const char *__needle) __THROW > | ^~~~~~ > ../../gcc_doc/gcc/system.h:556:20: error: conflicting declaration of C fu= nction =E2=80=98const char* strsignal(int)=E2=80=99 > 556 | extern const char *strsignal (int); > | ^~~~~~~~~ > /usr/include/string.h:478:14: note: previous declaration =E2=80=98char* s= trsignal(int)=E2=80=99 > 478 | extern char *strsignal (int __sig) __THROW; > | ^~~~~~~~~ > In file included from ../../gcc_doc/gcc/system.h:729: > ../../gcc_doc/gcc/../include/libiberty.h:112:14: error: ambiguating new d= eclaration of =E2=80=98char* basename(const char*)=E2=80=99 > 112 | extern char *basename (const char *) ATTRIBUTE_RETURNS_NONNULL AT= TRIBUTE_NONNULL(1); > | ^~~~~~~~ > /usr/include/string.h:537:26: note: old declaration =E2=80=98const char* = basename(const char*)=E2=80=99 > 537 | extern "C++" const char *basename (const char *__filename) > | ^~~~~~~~ > make[1]: *** [Makefile:2987: build/genmodes.o] Error 1 > make[1]: Leaving directory '/home/jonny/code/repos/gcc_tests/gcc_build/gc= c' > make: *** [Makefile:4996: all-gcc] Error 2 > > > Kind regards, Jonny