gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to track down problem with packed.com from testsuite


From: john o goyo
Subject: Re: Trying to track down problem with packed.com from testsuite
Date: Wed, 4 Sep 2024 10:38:19 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

On 2024-09-02 09:00, Gaius Mulley wrote (in part):
I prefer to debug without optimization - but obviously if it fails with
-O2 or greater then this doesn't apply.  For my clarity is it that gm2
-O2 fails or is it that the build process using -O2 fails.  If it is gm2
-O2 then it would be worth building gcc/gm2 with full debugging (as the
-O2 throws away too much useful info).

For clarity, gm2-14.2.0 (specifically, cc1gm2 sigsevs) with -O2 and above.  It does not fail with -O0 or -O1.

I built gm2-14.2.0 with the default configuration, which put the following in the Makefile:
CFLAGS_FOR_BUILD = -g -O2
BOOT_CFLAGS= -g -O2
CFLAGS = -g -O2

Here is my debug build script which might be adapted (it generates all
.o files without optimization and will enable gdb debugging):

#!/bin/bash

if [ -d $HOME/GCC/gcc-read-write ] ; then
     cd $HOME/GCC/gcc-read-write
     ./contrib/download_prerequisites
     echo "about to remove all files under" `pwd`/build
     echo "press enter to continue"
     read ans
     rm -rf build
     mkdir build
     cd build
     CFLAGS=-g CXXFLAGS=-g ../configure --prefix=$HOME/opt --disable-bootstrap 
--with-build-config="bootstrap-debug" --enable-languages=m2 && make -j 30 > 
$HOME/log 2> $HOME/err
fi

I will try the above and report.

does this help?
Thank you.

Sincerely,
john




reply via email to

[Prev in Thread] Current Thread [Next in Thread]