From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 3E40738B97F9 for ; Thu, 6 Jun 2024 20:16:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3E40738B97F9 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3E40738B97F9 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:142:3::10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1717704996; cv=none; b=vok/Bt8Aul32PTJzW2NOqlepSDL7uPSL8Hn01in2a8DPbzdOiQ+PM90xJM76Gc1KQEbU92gri91ZmdaoEtob4MG0q+VrLkzNfuilty4gZjO+sQFGZbHbeSvTu7OV09YY9k7HYCYdm2wjIIqDy0afKgCASZAE+9l4eK6RVeEiFCo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1717704996; c=relaxed/simple; bh=D2B+My65BrzdY7vGlbjLs9HrFVjjvEyJur6c9BVNKno=; h=DKIM-Signature:Date:Message-Id:From:To:Subject; b=Uy5mzGzKC/1XEVFV39dsY31emiMAQwQw+rlTVEOjBtNrB4d7g95B20l2xCfuKhAP82XMFX2bHM+GZcwkKt4UsrekbJ3hW8ZdptuErayn5ftlR1+Or2371dMb0cc6lHhpEQzu3rBtb4u22CZdUM03+mwLhEk+9O+M/7aY43smt2c= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sFJXG-0008Bl-5V; Thu, 06 Jun 2024 16:16:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=VhxXhZOsSURWxDvbsfK8jYY8ZmKIgO+G1J1CiyaM1eo=; b=dJn2b9Xhk+/u AyXmlfdS7mR9Lz8yLyXUGcg/rv8zbOF+baIGib8YUI3//mTh/L1Yn1vEfWdkokT8Qap+Ww5cbEpsR B/FoO8/pQlnkjyJrM65IZTjZdkMWhCs0pilUcRaE4O5ujVZNBUdHmnQDBhArKS80kmyha95PkfXMQ KvPpNzynwK9h+YXsbFM6WckE6ZRdQcgqVQ5yAamnur1KBa72wT6y5odwZ/+VFSJ2xi2fX302dPSwb ZwzpATHL6pe8zz5iXPwL/HUP+Nvdtt8JIjkRAKGXNlGbxVJkXwrZME8hTSRQ8s9UHoDYI9Pa3+uAI a/4zNz3YI1tP/e3Y6SR7QQ==; Date: Thu, 06 Jun 2024 23:16:31 +0300 Message-Id: <861q59hlnk.fsf@gnu.org> From: Eli Zaretskii To: Joel Brobecker Cc: gdb-patches@sourceware.org In-Reply-To: <20240601155907.B796C81691@takamaka.gnat.com> (message from Joel Brobecker on Sat, 1 Jun 2024 08:59:07 -0700 (PDT)) Subject: Building GDB 15.0.91 on MinGW: CPPFLAGS References: <20240601155907.B796C81691@takamaka.gnat.com> X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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: > From: Joel Brobecker > Date: Sat, 1 Jun 2024 08:59:07 -0700 (PDT) > X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, > DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, > SPF_PASS, TXREP, > T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 > > Hello, > > I have just finished creating the gdb-15.0.91 pre-release. > It is available for download at the following location: > > https://sourceware.org/pub/gdb/snapshots/branch/gdb-15.0.91.tar.xz > > A gzip'ed version is also available: gdb-15.0.91.tar.gz. > > Please give it a test if you can and report any problems you might find. I'm trying to build this pretest, and I need help with setting non-standard CPPFLAGS. (I need that to specify the D__USE_MINGW_ANSI_STDIO=1 preprocessor option, because libctf uses the %z format which needs that.) I thought it was enough to specify CPPFLAGS in the top-level configure command: CFLAGS='-O2 -gdwarf-4 -g3' CXXFLAGS='-O2 -gdwarf-4 -g3' CPPFLAGS='-D__USE_MINGW_ANSI_STDIO=1' ./configure ... However, it sounds like this is not working, because "make V=1" doesn't show the option on the GCC command line. Here's an example: libtool: compile: gcc -DHAVE_CONFIG_H -I. -D_GNU_SOURCE -I. -I./../include -I./../bfd -I../bfd -DNOBFD=0 -Id:/usr/include -std=gnu99 -Wall -W -Wall -Wno-narrowing -Wwrite-strings -Wmissing-format-attribute -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -pedantic -Wno-long-long -O2 -gdwarf-4 -g3 -MT libctf_la-ctf-archive.lo -MD -MP -MF .deps/libctf_la-ctf-archive.Tpo -c ctf-archive.c -o libctf_la-ctf-archive.o Note that CFLAGS I specified to the top-level configure _are_ used. Why doesn't the same happen with CPPFLAGS? Is that some libtool trick or something? I do see in top-level Makefile this: CPPFLAGS_FOR_BUILD = -D__USE_MINGW_ANSI_STDIO=1 PLEASE HELP, I cannot move on without unlocking this mystery. (And yes, there are other issues with this build, so I do have more work on it.) TIA