From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from pv50p00im-ztdg10021201.me.com (pv50p00im-ztdg10021201.me.com [17.58.6.45]) by sourceware.org (Postfix) with ESMTPS id 30B7C3847825 for ; Tue, 29 Jun 2021 01:44:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 30B7C3847825 Received: from smtpclient.apple (c-71-231-148-226.hsd1.wa.comcast.net [71.231.148.226]) by pv50p00im-ztdg10021201.me.com (Postfix) with ESMTPSA id 99E66A404AC; Tue, 29 Jun 2021 01:44:40 +0000 (UTC) From: Sam Warner Message-Id: Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Subject: Re: GDB and MacOS 11.4/BigSur Date: Mon, 28 Jun 2021 18:44:39 -0700 In-Reply-To: <0D2FBAAA-3CF1-49E2-83AA-232A3661188E@me.com> Cc: gdb@sourceware.org To: Simon Marchi References: <9717BBC8-70FA-47DD-8C62-33018D746003@me.com> <5180de47-136f-bad7-9f83-78ac02a323c6@polymtl.ca> <460390D0-EBA2-4FDA-9C08-FB23FB59A59D@me.com> <56e03cb6-efd1-4ac0-a355-30fb77684641@polymtl.ca> <810B4416-EE0C-47C1-BF82-05A179498811@me.com> <0D2FBAAA-3CF1-49E2-83AA-232A3661188E@me.com> X-Mailer: Apple Mail (2.3654.100.0.2.22) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-06-28_14:2021-06-25, 2021-06-28 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2009150000 definitions=main-2106290011 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2021 01:44:44 -0000 Hi Simon, Thank you - the added details you gave me really helped, especially = when I both obtained the official 10.2 source set, and followed the = BuildingForDarwin = instructions for ".configure --disable-intl=E2=80=9D. I successfully built now, and off to use the test-suites Sam > On Jun 28, 2021, at 6:34 PM, Sam Warner = wrote: >=20 > Hi, > Shoot - my bad - I wasn=E2=80=99t super careful when I grabbed the = source, just pulling the latest HEAD off the git repository rather than = the true release set of source. >=20 > Sam >=20 > Ps, I did some more reading, and perhaps I skimmed over the second = paragraph on BuildingForDarwin = . The "To avoid such = warnings building 7.0, configure with --disable-intl=E2=80=9D line does = change the build error. =20 >=20 > 1) make clean, .configure (only), and make=E2=80=A6. = Build.withInternationalization.log > 2) make clean, ".configure --disable-intl=E2=80=9D, make =E2=80=A6 = Build.withoutInternationalization.log >=20 > With both still having issues, I reflected back that I wasn=E2=80=99t = super careful when I grabbed the source, just pulling the latest HEAD = off the git repository, and when I re-obtained the source for 10.2 I was = more careful. The build is still progressing at this moment. Which is = a significantly longer duration than before. >=20 >=20 >=20 >> On Jun 28, 2021, at 5:29 PM, Sam Warner > wrote: >>=20 >> Hi, >> I need a bit of help to speed things along. >>=20 >> On macOS, zsh installs an SDK, which apparently is partially = needed - yet - it produces build errors. (Attached build.log, and = config.with.szh.SDKs.log) >> Meanwhile, if I temporarily remove the SDK of zsh, then = =E2=80=98./configure=E2=80=99 fails. (Attached = config.without.szh.SDKs.log) >>=20 >> I was about to start setting up LD and INCLUDE environment = variables, yet I think this is already handled by =E2=80=9C./configure" >>=20 >> I=E2=80=99m a bit lost. Any suggestions? >>=20 >> Sam >> >> >>=20 >>=20 >>> On Jun 28, 2021, at 5:03 PM, Sam Warner > wrote: >>>=20 >>> Never mind - found it - = https://sourceware.org/gdb/wiki/Internals%20Testsuite = =20 >>>=20 >>>> On Jun 28, 2021, at 2:51 PM, Sam Warner > wrote: >>>>=20 >>>> Hi, >>>> One more newbie question. After building, is there a canned set = of tests to make sure what I built matches what=E2=80=99s expected? >>>> (Using gcc-11 from home-brew) >>>>=20 >>>> Sam >>>>=20 >>>>=20 >>>>> On Jun 27, 2021, at 5:48 PM, Simon Marchi > wrote: >>>>>=20 >>>>> On 2021-06-27 6:44 p.m., Sam Warner wrote: >>>>>> Hi Simon, >>>>>>=20 >>>>>> Thanks - yes - I=E2=80=99ll start with that patch first. I = obtain the same call stack >>>>>>=20 >>>>>> My next two things to learn is how to get the equivalent of the = symbol-server working, and then to setup a developer-environment for = GDB. Any pointers would be great. >>>>>=20 >>>>> I don't know what symbol-server is, I can't help you with that. >>>>>=20 >>>>> To build gdb, you normally just need to run these commands at the >>>>> top-level: >>>>>=20 >>>>> ./configure >>>>> make all-gdb >>>>>=20 >>>>> The built gdb will be at gdb/gdb. But there are some additional = quirks >>>>> on macOS though, so it's not as simple as that. GDB requires = libgmp, so >>>>> you need to install that. You need GNU make to build (the make = that >>>>> comes with macOS is not GNU make). You can install those using = Macports >>>>> (or Brew, I guess) or by building them by hand. You can then = probably >>>>> get by using the commands: >>>>>=20 >>>>> ./configure --disable-nls CFLAGS=3D"-g3 -O0" = CXXFLAGS=3D"-std=3Dgnu++17 -g3 -O0" --with-libgmp-prefix=3D/opt/local >>>>> gmake >>>>>=20 >>>>> Update /opt/local to point where your libgmp is installed. gmake = refers >>>>> to GNU make, when installed through Macports. >>>>>=20 >>>>> Simon >>>>=20 >>>=20 >>=20 >=20