https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119237

            Bug ID: 119237
           Summary: building a cobol cross compiler fails to build the
                    compiler fully
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: cobol
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

Cross compiling from x86_64-linux to aarch64-linux with cobol enabled like the
following succeeds but installing the compiler reveals missing components.

> ../gcc/configure --target=aarch64-suse-linux 
> --with-sysroot=/space/rguenther/aarch64 --enable-languages=cobol
..
> make install DESTDIR=/tmp/install
...
mkdir -p -- /tmp/install/usr/local/share/man/man7
/usr/bin/install -c gcobol      /tmp/install/usr/local/bin/
/usr/bin/install: cannot stat 'gcobol': No such file or directory
make[2]: *** [/home/rguenther/src/gcc/gcc/cobol/Make-lang.in:284:
cobol.install-common] Error 1
make[2]: Leaving directory '/tmp/obj/gcc'

gcc/cobol1 was built fine, but gcc/gcobol is missing.  I can go into gcc/
and make gcobol, then make install works fine.

It seems gcobol$(exeext) is only built via

# FIXME
cobol.all.cross:

cobol.start.encap: gcobol$(exeext)

the FIXME might hint at this missing there.

Reply via email to