Re: Fwd: Bug#1050663: dar option --on-fly-isolate creates catalogue with broken slice_layout

Thomas <dar.support.ml-202308-Tv/[email protected]> Wed, 30 Aug 2023 21:03:17 +0200
Newsgroups gmane.comp.sysutils.backup.dar.support
Message-ID <[email protected]>
Hi again!

A quick update about my compiler runs today.

On Tue, Aug 29, 2023 at 11:39:25PM +0200, Thomas wrote:
> On Tue, Aug 29, 2023 at 10:42:31PM +0200, Denis Corbin wrote:
> > On 29/08/2023 04:50, John Goerzen wrote:
> > > On Mon, Aug 28 2023, Denis Corbin wrote:
> > > 
> > > > I could not reproduce it with neither 2.7.9 nor 2.7.10 on my system. Will try
> > > > under Debian to see what's wrong, keep you informed.
> > > 
> > > Interestingly, I could duplicate this with the dar version in
> > > bookworm-backports, but not with the one in sid.  Both are 2.7.10.
> > > That's odd!
> > 
> > Thanks for that, I have installed a pristine Debian 12 adding the backports
> > repo and I could reproduce it:
> > - first using the Debian provided binary
> > - then using the deb-src package and compiling the provided source code
> >   (which include tiny and harmless patch to adapt to Debian rules)
> > - then using the upstream source code alone
> > 
> > The problem disappears just removing the default compilation -O2 options:
> 
> I will try this option tomorrow. I compiled today v2.7.8, v2.7.9 and
> v2.7.11 on my Debian testing and _all_ versions fail the onflytest. So I
> think, too, there is something outside the source which influences.
> 
> > export LDFLAGS=-g
> > export CFLAGS=-g
> > export CXXFLAGS=-g
> > ./configure
> > make
> 
> my compile flags:
> ./configure --prefix=/home/thomas/tmp/dar_compile/inst_temp --disable-build-html --disable-libargon2-linking --disable-libcurl-linking --disable-gpgme-linking --disable-libgcrypt-linking

All tests today are done with DAR 2.7.11 from git.

Onflyisolation works/fails with these compiler/compileflags:

export LDFLAGS=-g # does not matter. I'm skipping this in later tests.
export CFLAGS=-g # does not matter. I'm skipping this in later tests.

g++ 13.1.0 with export CXXFLAGS=-O ---> fails
g++ 13.1.0 with export CXXFLAGS=-g ---> works

g++ 12.3.0 with export CXX="g++-12" ---> fails
g++ 12.3.0 with export CXX="g++-12" and export CXXFLAGS=-g ---> works

g++ 11.4.0 with export CXX="g++-11" ---> fails
g++ 11.4.0 with export CXX="g++-11" and export CXXFLAGS=-g ---> works

g++ 10.4.0 with export CXX="g++-10" ---> works

Summary
=======
g++ 10 works fine with optimization.
g++ 11 or newer work only without optimization.

Hope this helps.

Tom