From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by sourceware.org (Postfix) with ESMTPS id 15D593858D33 for ; Mon, 9 Jan 2023 04:18:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 15D593858D33 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-wm1-x333.google.com with SMTP id i17-20020a05600c355100b003d99434b1cfso5677653wmq.1 for ; Sun, 08 Jan 2023 20:18:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=/6jjxsLveyfupxn9/q9l8nGvdRtyDX+JVxMBvH1tyTc=; b=oYhVEdW7JsGvOdzAb5oOEPBUZaNNcDAc048xZOEfWb8j/W69zzWwWqJZMnyKhr4797 AdI+dkU1da4IWp04P7xbAgu2vphsdScRSCGqUxM+89SxY78xLGZUk/AYxuNZvvaMgdDv me9OIL6442zft3gWBXfZgxa+UsJBxc7Sa5GcG5c9kGaKe2BhhR9S8OStNbh2hvpUe4N0 ZTRxW6jVp5YKiIZJoXp5tZPst1EimQaUJEWtFKGi7EnAVEzQ+NGA9dK89eKqZqHBR8vD VfA/xovNekiKnnsA2u6acNOcrN6tjkwpTe0JId9okp6K7bXvl+xUI54j/7Mu+MKa8qcu c/1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/6jjxsLveyfupxn9/q9l8nGvdRtyDX+JVxMBvH1tyTc=; b=CYzVkOsJRFLwSDbtN/vgAD8t9nCpNvR8hNP8RQFDjvYsyo6IJG/0x3Q/ozyWoMskGS 057dW1g9iU5CDWD+lLqdc6Wdlny83yOiCpjIfobbmpRzlrRqyd4OAnfO2DcmCL9WedqV CnEqi2jbfUd9D0EGhaUdjfGUeqwlRwPMuV6bUI2GGGI7j3//cQPqOz5OmtxNNeXM1iot Uq6svvdJZ3xozgK0Ata1MVgMpkbAzfMhacR+W/f+KWN5pCCMm2gylP7oIx+dkTabLwLi hF9iSg/ln994xoMuYZxGaOeaC9nkrIUJrgfdiqsiG4Op1VQJcyiKjjhL/E1UJtJJRcJj MdVQ== X-Gm-Message-State: AFqh2kocY0rXMYmrvTEIr7nPtnBZyPquCVzkHkAgB6X1fxhygyOI+diA f5lhs2Bndg3mXqCLJpz8sPcFiu0LP6A= X-Google-Smtp-Source: AMrXdXsf6HENocHbrs+IVHgFsIl+6M8djb09Ucn1VS0pzzHVxfGkIclA2g90zaJ0LCEomTGOXkPq2g== X-Received: by 2002:a7b:c7ca:0:b0:3d3:4cbf:3a51 with SMTP id z10-20020a7bc7ca000000b003d34cbf3a51mr44923776wmk.14.1673237901783; Sun, 08 Jan 2023 20:18:21 -0800 (PST) Received: from lancelot ([195.147.220.46]) by smtp.gmail.com with ESMTPSA id o8-20020a05600c510800b003d9862ec435sm10607299wms.20.2023.01.08.20.18.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Jan 2023 20:18:21 -0800 (PST) Received: from gaius by lancelot with local (Exim 4.94.2) (envelope-from ) id 1pEjc4-009Cvj-Hi; Mon, 09 Jan 2023 04:18:20 +0000 From: Gaius Mulley To: Jeff Law via Gcc-patches Cc: gaiusmod@gmail.com, Jeff Law Subject: Re: Missing dependencies in m2/ ? References: <3fcd3c5b-b792-a157-2f18-2ce3ef85a5a1@gmail.com> Date: Mon, 09 Jan 2023 04:18:20 +0000 In-Reply-To: <3fcd3c5b-b792-a157-2f18-2ce3ef85a5a1@gmail.com> (Jeff Law via Gcc-patches's message of "Sun, 8 Jan 2023 17:11:13 -0700") Message-ID: <87sfgk49yr.fsf@debian> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,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: Jeff Law via Gcc-patches writes: > I've been getting sporatic errors like this since the introduction of > the modula-2 front-end: > >> In file included from ../../..//gcc/gcc/m2/mc-boot/GSFIO.c:29: >> ../../..//gcc/gcc/system.h:556:20: error: conflicting declaration of C function 'const char* strsignal(int)' >> 556 | extern const char *strsignal (int); >> | ^~~~~~~~~ >> In file included from /usr/include/c++/12/cstring:42, >> from ../../..//gcc/gcc/system.h:241: >> /usr/include/string.h:478:14: note: previous declaration 'char* strsignal(int)' >> 478 | extern char *strsignal (int __sig) __THROW; >> | ^~~~~~~~~ >> In file included from ../../..//gcc/gcc/system.h:707: >> ../../..//gcc/gcc/../include/libiberty.h:112:14: error: ambiguating new declaration of 'char* basename(const char*)' >> 112 | extern char *basename (const char *) ATTRIBUTE_RETURNS_NONNULL ATTRIBUTE_NONNULL(1); >> | ^~~~~~~~ >> /usr/include/string.h:524:26: note: old declaration 'const char* basename(const char*)' >> 524 | extern "C++" const char *basename (const char *__filename) >> | ^~~~~~~~ >> make[1]: *** [../../..//gcc/gcc/m2/Make-lang.in:1364: m2/mc-boot/GSFIO.o] Error 1 > > > They seem to come and go without rhyme or reason. For example build > #1885 on lm32-elf failed, while #1884 passed. > > Aside from the fact that I coonfigure with --enable-languages=c,c++ > and yet modula-2 stuff still gets built (can that be fixed?) it seems > like we're missing dependencies to ensure that the generated config.h > file is made before building the modula-2 stuff. > > In a good build you'll see something like this: > > config.status: creating auto-host.h > [ ... ] > Build GSFIO.o: > g++ -g -c -I. -I../../..//gcc/gcc/m2/mc-boot-ch > -I../../..//gcc/gcc/m2/mc-boot -I../../..//gcc/gcc/../include > -I../../..//gcc/gcc -I. -Im2/mc-boot -I../../..//gcc/gcc > -I../../..//gcc/gcc/m2/mc-boot -I../../..//gcc/gcc/../include > -I../../..//gcc/gcc/../libcpp/include -I../../..//gcc/gcc/../libcody > -I../../..//gcc/gcc/../libdecnumber > -I../../..//gcc/gcc/../libdecnumber/dpd -I../libdecnumber > -I../../..//gcc/gcc/../libbacktrace > ../../..//gcc/gcc/m2/mc-boot/GSFIO.c -o m2/mc-boot/GSFIO.o > > Which naturally works just fine. > > In a bad build, auto-host.h is _not_ created before trying to build GSFIO.o. > > Can you please take care of this. It's rather annoying to have builds > failing in the continuous testing system like this, particularly when > modula-2 isn't even enabled. > > Jeff Hi Jeff, many apologies for the breakage - I've now added the Makefile dependencies. I've also regenerated the m2 configure scripts regards, Gaius