From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by sourceware.org (Postfix) with ESMTP id 3305C385842C for ; Mon, 9 Aug 2021 09:46:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3305C385842C Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-199-ecZq4dXxPziS7x3WSQbHyw-1; Mon, 09 Aug 2021 05:46:06 -0400 X-MC-Unique: ecZq4dXxPziS7x3WSQbHyw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5B65D8799E0; Mon, 9 Aug 2021 09:46:04 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.39.194.2]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8555069FAD; Mon, 9 Aug 2021 09:46:03 +0000 (UTC) From: Florian Weimer To: Chris Packham via Libc-help Cc: Chris Packham Subject: Re: Errors cross-compiling gdbserver with glibc-2.34 References: <0cca89f0-2e67-1e09-58dd-2d7c80ce710b@alliedtelesis.co.nz> Date: Mon, 09 Aug 2021 11:46:01 +0200 In-Reply-To: <0cca89f0-2e67-1e09-58dd-2d7c80ce710b@alliedtelesis.co.nz> (Chris Packham via Libc-help's message of "Mon, 9 Aug 2021 09:29:33 +0000") Message-ID: <87im0frlwm.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00, BODY_8BITS, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2021 09:46:10 -0000 * Chris Packham via Libc-help: > I'm looking at updating crosstool-ng to add glibc-2.34. I can generate a= =20 > toolchain fine but when I try to build gdbserver (which can be enabled=20 > as part of the crosstool-ng build) I get some odd gnulib build errors. > > https://github.com/crosstool-ng/crosstool-ng/pull/1570#issuecomment-89378= 4531 > > I can disable building gdbserver as part of crosstool-ng and=20 > successfully generate a toolchain. But when I use that toolchain to=20 > manually build gdbserver I get the same error (included below as it has= =20 > a bit more useful output than on the link above). > > =C2=A0 CXX=C2=A0=C2=A0=C2=A0 amd64-linux-siginfo.o > In file included from=20 > /home/ctng/x-tools/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/sysr= oot/usr/include/bits/sigstksz.h:24, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 from=20 > /home/ctng/x-tools/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/sysr= oot/usr/include/signal.h:328, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 from build-gnulib-gdbserver/import/signal.h:52, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 from=20 > ../../../gdb-9.2/gdb/gdbserver/../nat/amd64-linux-siginfo.c:20: > build-gnulib-gdbserver/import/unistd.h:135:3: error: #error "Please=20 > include config.h first." gnulib apparently overrides with an incompatible header. There is nothing that glibc can do about this. Thanks, Florian