From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by sourceware.org (Postfix) with ESMTPS id CFE323858D33 for ; Mon, 9 Jan 2023 00:11:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CFE323858D33 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-pf1-x430.google.com with SMTP id h7so785116pfq.4 for ; Sun, 08 Jan 2023 16:11:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=XfcQRW2KgUczASN0dXHVvlVvkfFd7pVX0JD2yeakUO4=; b=LUmnWVkw/VY86Jl8cGN8ikNP1QRWOri2E9iiy6ctzdd+ptiEnZ8/oL7QVDr28KXlY4 sQk5lD52kQw6yAqn/W21T62QL1fyRVmag9lfoSoCDDlorVSnsC66nlH89U8OyUyJS2tL C0CFFYbYGc6hlD9wYAjjgr4KmLD8dSyiNXXKW/ufaulwIxzBUzvVvNeF4UIuNfLXTgeM 6LWTHDhsCzetU2UiTW6kdTupdkrxeAXV704fApjANBHNBXNh3tNxucm1q9eRglfGX8Vq JcRLkdmamuQcn7nAjlRPZp4lWrgPRA78cpOL50cdee285/zVYxuEjEfBuOZXHtq6xhhD S8Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=XfcQRW2KgUczASN0dXHVvlVvkfFd7pVX0JD2yeakUO4=; b=1GLNSZvutraYNLnM2YbjL3G6Q+qp4pCPXefu0y2MO6z9ucQLP/ZJpWKX9jc0wPsxGi S4AHQShVQlGP1cAzGCDICl+fEuqooZnhXMYnk7gxCpubh+da9GGEHy2h85KF6EuQ/o+s l3kcTLBvI2uOxP7KiTBLc1qqGSkVtHR2T4hQ+dpeV/QZ5wt4x6SFMhQrXraDPsev0jPA m2H7LNMl1k4Wun4DO+wcC/l7Pg7t4jOu/9JjcSQ/kCPnZ2SUliWqyLpxnIb8vfn8hPGp EsfGE0RCR48HbIm5WwLSK16KFzMv/0GuilalVWz/I2rpRA93rU/pTwxBYXX4tLbKVZLk sa3w== X-Gm-Message-State: AFqh2kp+KwVADHqNRdHyT8AuXu08SlGWZnGo9y4qKQTq5c9ljqT8tEKL CVNZFvcxioEI68LSEoOH6ko= X-Google-Smtp-Source: AMrXdXvKc6yHDyTREHjWAxfcSZueXPxta6Zta9AZLO8jt+eR/oT6UmgtV7z+QpIdGfyVeiA0aqzSfw== X-Received: by 2002:a62:506:0:b0:56d:d678:aecd with SMTP id 6-20020a620506000000b0056dd678aecdmr60288759pff.23.1673223075106; Sun, 08 Jan 2023 16:11:15 -0800 (PST) Received: from ?IPV6:2601:681:8600:13d0::f0a? ([2601:681:8600:13d0::f0a]) by smtp.gmail.com with ESMTPSA id y186-20020a6232c3000000b00571cdbd0771sm4709214pfy.102.2023.01.08.16.11.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Jan 2023 16:11:14 -0800 (PST) Message-ID: <3fcd3c5b-b792-a157-2f18-2ce3ef85a5a1@gmail.com> Date: Sun, 8 Jan 2023 17:11:13 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Content-Language: en-US To: gaiusmod@gmail.com, "gcc-patches@gcc.gnu.org" From: Jeff Law Subject: Missing dependencies in m2/ ? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GB_TO_NAME_FREEMAIL,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: 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