On Wed, 5 Mar 2025 11:43:16 +0100
Richard Biener <richard.guent...@gmail.com> wrote:

> > In short, despite not trying to support DESTDIR, we do anyway, by
> > happy accident.  And we are now better informed.
> 
> Thanks.  Checking cobol-patched again I see

Hi Richard,

I have regenerated and force-pushed cobol-patched.  It is now based on

        commit 49ac89e03f2f171b401ac8b9d7c3cef72efbdc63
        Author: Jakub Jelinek <ja...@redhat.com>
        Date:   Thu Mar 6 17:29:03 2025 +0100

https://gitlab.cobolworx.com/COBOLworx/gcc-cobol/-/tree/cobol-patched?ref_type=heads

There are still 15 patches.  The texi file updates that I thought would
cause a problem merged cleanly.  Yay, git.

At your suggestion, we tested a bootstrap build with multilib.

Our thanks to you and Jakub for your patience and guidance.  

The issues raised are addressed: 

- test for 32-bit code generation in the compiler instead of checking
for -m32 in gcobol.
- use GCC_WITH_TOOLEXECLIBDIR in libgcobol/configure.am
- support DESTDIR in libgcobol/Automake.am
- verify --enable-version-specific-runtime-libs 

Status of issues, with reference to email:

On Wed, Mar 05, 2025 at 12:46:48PM +0100, Richard Biener wrote:
> and the installed compiler behaves as intended.  I can trick -m32 to
"work"
> by using the generic gcc driver:
>
> > ./install/gcc-cobol/usr/local/bin/gcc -x cobol t.cob -m32 -c

Fixed by applying Jakub's suggestion,

  if (!targetm.scalar_mode_supported_p (TImode) || !float128_type_node)
    sorry ("COBOL not supported in this configuration");

$ /tmp/build-try/bin/gcobol -oo -m32 -ffixed-form
gcc/cobol/nist/NC/NC101A.cbl <built-in>: sorry, unimplemented: COBOL
requires a 64-bit configuration

(I don't think "configuration" is the best nomenclature here, if
"configuration" is the product of the "configure" script.  Suggestions
welcome.)

> > make install DESTDIR=/home/rguenther/install/gcc-cobol
> libtool: install: error: cannot install `libgcobol.la' to a directory

Fixed by point-and-grunt comparison with libatomic.  Observed

        +       $(top_srcdir)/../config/toolexeclibdir.m4 \

in libgcobol/Makefile.in.

> ... aaand it fails: (../gcc-cobol/configure --enable-languages=cobol
> --disable-bootstrap --enable-checking=release
> --enable-version-specific-runtime-libs)

Tested with that specific command line after applying above changes.
Observed "make install" works correctly.

--jkl

Reply via email to