From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by sourceware.org (Postfix) with ESMTPS id 6DDFC3858C52 for ; Tue, 10 Jan 2023 01:49:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6DDFC3858C52 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-x431.google.com with SMTP id x4so3491734pfj.1 for ; Mon, 09 Jan 2023 17:49:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=6d7U0xHW8+FVFbEf32uhgUDxBqR3ybMw0Z3pkJHTw6w=; b=Cyg1Qu1Fu+ukrUbbQZGQS7/WSKbCqWPvp/IcjWkAkpOliUrZDZLItABYfW2b10XpIf B/Pt0jVeXQXszn1YAxBVIzM9LnMb3d4SEA2xGsC7a3Mp6oWhPoFn0s6mW3uonXQ35omp BTQD0+oixuZUSPGHS06RpQ7g/O9oY7fDzJ8ppXSVZVd41lM9gyKKnBSddFOrbS2MY5er f2JUwpfiiIs1kv/Rf+MnEVf8Q2WKS783rrKhKQNE3Wrb3RWXTXYcL3C8M07toKqOVDf/ SAyx71UGDOdTPr5tmRpet56300ku3PgpSDaESbJhkaMMKY2/Xl5HwKI4xke/ugN8w03N MDMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6d7U0xHW8+FVFbEf32uhgUDxBqR3ybMw0Z3pkJHTw6w=; b=sJemRESCljMjwIMA9O3opIqatnBx/mI4Aht7R66ukQWVTEe9pZCwBP9Ah8gjg1CwIB ERq7zV+OqRteIxSz9vtPsY1NO5GSZI5KgOQr9Am0MlvcoBChF8lvt4DT+zMX8Gd6Uica R9Mj4Qzc1jtLwWTqkD7j0NTaJuABDATsomw2BpW/08v87mYwgtm6BYSRGYhv3UU1kUJJ Ps7oil7XEyvlwFYsq4tPwnSuXrwOob47B9rLGzczgyLSCzNwC4ChGbBq/UpPjwVLYlld WCv16KxzoqdxyRdrUC97+2zgdBWyOQ+H9Gh/H17p8y0/nbwdoFZBmGXwAznsxCvivlQc L2yg== X-Gm-Message-State: AFqh2kqrxyE0hKUxoO4/2Y/xPbojwflOx6V2v7/mAGGPhNvePdlxEC2Q GUSdkpU79dlUjLBXGuhaHtc= X-Google-Smtp-Source: AMrXdXsNfMmlHS99UC0uE/Qho78/8XveUObrH0A77bxuNlUUIE1noGXF8MAu+V15f4U5USUrZD8Wew== X-Received: by 2002:a05:6a00:bdd:b0:582:e67b:205f with SMTP id x29-20020a056a000bdd00b00582e67b205fmr20877822pfu.1.1673315394252; Mon, 09 Jan 2023 17:49:54 -0800 (PST) Received: from ?IPV6:2601:681:8600:13d0::f0a? ([2601:681:8600:13d0::f0a]) by smtp.gmail.com with ESMTPSA id c202-20020a621cd3000000b0057255b82bd1sm6659468pfc.217.2023.01.09.17.49.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Jan 2023 17:49:53 -0800 (PST) Message-ID: Date: Mon, 9 Jan 2023 18:49:52 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: Missing dependencies in m2/ ? Content-Language: en-US To: Gaius Mulley , Jeff Law via Gcc-patches Cc: gaiusmod@gmail.com References: <3fcd3c5b-b792-a157-2f18-2ce3ef85a5a1@gmail.com> <87sfgk49yr.fsf@debian> From: Jeff Law In-Reply-To: <87sfgk49yr.fsf@debian> 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,NICE_REPLY_A,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: On 1/8/23 21:18, Gaius Mulley wrote: > 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 I'm still seeing it as of about 2 hours ago: http://law-sandy.freeddns.org:8080/job/avr-elf/2125/console A good run (yesterday): http://law-sandy.freeddns.org:8080/job/avr-elf/2124/console However, I did find that my scripts were enabling all languages -- sorry I stated otherwise and blamed it on the M2 front-end. THe only issue we need to resolve is the dependency problems. jeff