From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id FAo1M8X4SWckiwQAWB0awg (envelope-from ) for ; Fri, 29 Nov 2024 12:24:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1732901061; bh=2+rQt2OY3EBy+H7cD6Vc9+Yi8ewW1j3A60Ss21LZ3gI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=xPxZuFQcjpzdY+r1DQqeGXijQKdobCr6WanJ33VDCpLizzRB2C2nBZjC2G3HHE9BY J3iiw1YAJiXoSyFG2RPvEaZ5YZQKY2XnUno5po+bbicQYxAqRuIqPwaZ6WKQF9Xwd1 IeWDE33Q2u9tjJLNfW8NBZq6+htqkozfu70lv73c= Received: by simark.ca (Postfix, from userid 112) id B07E01E097; Fri, 29 Nov 2024 12:24:21 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=unavailable autolearn_force=no version=4.0.0 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=Dwegatg8; dkim=pass (1024-bit key) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=irXtXkEx; dkim-atps=neutral Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id EDC091E05C for ; Fri, 29 Nov 2024 12:24:20 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 805193858404 for ; Fri, 29 Nov 2024 17:24:20 +0000 (GMT) Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id B40A83858C66 for ; Fri, 29 Nov 2024 17:23:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B40A83858C66 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B40A83858C66 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1732901029; cv=none; b=c3BaE4EuEi3yyI6ba0MfB9730d4vI6UuFuwKbKU+O/vsIvTBPKp0dPztj5ehrd8VB6p8Ih+ehQeNzAPc1UrxJQ5Xb/YPxJM6Tz0Galqw695De4DwDvbikFGyRKjHmJ45++sdNx0Oi/WeaRUXjXZyAkHZo/xG97KTn2DhlM/lXoA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1732901029; c=relaxed/simple; bh=2+rQt2OY3EBy+H7cD6Vc9+Yi8ewW1j3A60Ss21LZ3gI=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:MIME-Version: Subject:To:From; b=qLYmrkk6xQmAkPzqfrnk1oYBwU4oztNjJ9BjDviIWF2g6udKlQ7nhjYkaNNKNVL9aQ7VPId2yDTW+sA/5K81gFBg/v9Ruui9I0r6uP/rVrbONQlc3A33l1aLxBnub4fpz9D1j90IL7VvbihNb2z1gp0eyW+V9JGJFaMYNjbe9gE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1732901028; bh=2+rQt2OY3EBy+H7cD6Vc9+Yi8ewW1j3A60Ss21LZ3gI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Dwegatg8DkvQU0Gqv8gFazxYgyhNQRgGqdQz9DBeVs1heQaqNauUcYk0Wqb4zcpek RBd/kizX5ts4izivinVDpHZqIlZCDboM8+QicQCRGq3QyMhjtFf8h5iQrrgWSum5nN U4Eq7V+0xQ7by6lKl8F2JK0NcjyD0Bja/m64vTVQ= Received: by simark.ca (Postfix, from userid 112) id 078621E097; Fri, 29 Nov 2024 12:23:48 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1732901027; bh=2+rQt2OY3EBy+H7cD6Vc9+Yi8ewW1j3A60Ss21LZ3gI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=irXtXkExVyEBEryODg/HMUlliJVJQXtxISdbwpRjgSRQD4IjH0AciG1UTME3z/Gkc eU0/D/RD0xAGb7uh1IlBGqFLE7JBHgdtcZZuz+9ldVOGcpg2dJxgFD36UUs5NfiwDh /owfwLe/R7YuVNOKKHpeMtVb+H7PLdVqrK7PJ9R0= Received: from [10.0.0.11] (modemcable238.237-201-24.mc.videotron.ca [24.201.237.238]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id D01C41E05C; Fri, 29 Nov 2024 12:23:46 -0500 (EST) Content-Type: multipart/mixed; boundary="------------Gk06bdCiJrijcBwrdwxXEuJu" Message-ID: <493fa47f-1c21-46e7-a2bf-fac11c5e58f8@simark.ca> Date: Fri, 29 Nov 2024 12:23:46 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/3] [gdbsupport] Add gdb::{waitpid,read,write,close} To: Tom de Vries , Tom Tromey Cc: gdb-patches@sourceware.org References: <20241028174913.27056-1-tdevries@suse.de> <87y122501s.fsf@tromey.com> <9b20eea0-0f14-47d9-ad7f-39e197d2e521@suse.de> <70b41955-4a06-47db-a467-ef8f24ca030a@suse.de> <2a0ca637-82c7-4194-9b5e-6ce6802e3415@suse.de> <2ca59a8a-6d37-4338-83a5-ce613f8d2663@simark.ca> <2958b8ef-32e0-421a-9016-523332d986f4@suse.de> Content-Language: en-US From: Simon Marchi In-Reply-To: <2958b8ef-32e0-421a-9016-523332d986f4@suse.de> X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org This is a multi-part message in MIME format. --------------Gk06bdCiJrijcBwrdwxXEuJu Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit >> The problem is that you might have to cross build the packages gdb >> requires. If you're lucky, your distro also packages them for >> mingw-w64. For instance, it looks like Suse packages libgmp: >> >> https://software.opensuse.org/package/mingw64-gmp?locale=ro >> >> These are the configure flags I currently use for this build: >> >> '--host=x86_64-w64-mingw32' \ >> 'CFLAGS=-g3 -O0' \ >> 'CC=ccache x86_64-w64-mingw32-gcc' \ >> 'CXXFLAGS=-g3 -O0 -fmax-errors=1' \ >> 'CXX=ccache x86_64-w64-mingw32-g++' \ >> '--disable-source-highlight' \ >> '--disable-gold' \ >> '--disable-ld' \ >> '--disable-binutils' \ >> '--disable-gprof' \ >> '--disable-gas' \ >> '--without-python' \ >> '--disable-nls' >> >> I'll try to get it to build inside a Suse container. >> > > Oh, I see, that's a good idea, thanks, I'll try that. > > - Tom Ok, I think I got it to work. See attached Dockerfile. Use with (fixup the path to the source tree in the `-v` flag): $ docker build -t opensuse-gdb-mingw-w64 . $ docker run -v /home/simark/src/binutils-gdb:/src -it opensuse-gdb-mingw-w64:latest # ./build.sh Of course, since you likely have a tumbleweed system already, you can simply install the required packages on that machine. Simon --------------Gk06bdCiJrijcBwrdwxXEuJu Content-Type: text/plain; charset=UTF-8; name="Dockerfile" Content-Disposition: attachment; filename="Dockerfile" Content-Transfer-Encoding: base64 RlJPTSBvcGVuc3VzZS90dW1ibGV3ZWVkOmxhdGVzdAoKUlVOIG1rZGlyIC9idWlsZApXT1JL RElSIC9idWlsZAoKUlVOIHp5cHBlciBpbnN0YWxsIC15IFwKICAgIG1pbmd3NjQtY3Jvc3Mt Z2NjIFwKICAgIG1pbmd3NjQtY3Jvc3MtZ2NjLWMrKyBcCiAgICBtaW5ndzY0LWdtcC1kZXZl bCBcCiAgICBtaW5ndzY0LW1wZnItZGV2ZWwgXAogICAgbWFrZSBcCiAgICBnY2MgXAogICAg bWFrZWluZm8gXAogICAgZmxleCBcCiAgICBiaXNvbgoKUlVOIGVjaG8gIi9zcmMvY29uZmln dXJlICctLWhvc3Q9eDg2XzY0LXc2NC1taW5ndzMyJyIgPiAvYnVpbGQvYnVpbGQuc2gKUlVO IGVjaG8gIm1ha2UgLWogJChucHJvYykiID4+IC9idWlsZC9idWlsZC5zaApSVU4gY2htb2Qg K3ggL2J1aWxkL2J1aWxkLnNoCg== --------------Gk06bdCiJrijcBwrdwxXEuJu--