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

--- Comment #3 from Steve Kargl <kargl at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #2)
> I think you need to use explicit --enable-libgcobol - if it's shown to work
> we can enable freebsd for libgcobol configure.tgt as a supported (tested)
> configuration.

The whole configury for cobol interesting.

Adding 

diff --git a/libgcobol/configure.tgt b/libgcobol/configure.tgt
index 310d7e0cdc4..a8c1c2b8086 100644
--- a/libgcobol/configure.tgt
+++ b/libgcobol/configure.tgt
@@ -44,6 +44,11 @@ case "${target}" in
                LIBGCOBOL_SUPPORTED=yes
        fi
        ;;
+    x86_64-*-freebsd*)
+       if test x$ac_cv_sizeof_void_p = x8; then
+               LIBGCOBOL_SUPPORTED=yes
+       fi
+       ;;

yields testsuite failures of the form

/usr/local/bin/ld: cannot find -lgcobol: No such file or directory
collect2: error: ld returned 1 exit status
compiler exited with status 1
FAIL: cobol.dg/data1.cob   -O1  (test for excess errors)
Excess errors:
/usr/local/bin/ld: cannot find -lgcobol: No such file or directory


% find . -name \*cobol.\*
./gcc/gtype-cobol.h
./gcc/testsuite/cobol/cobol.sum
./gcc/testsuite/cobol/cobol.log
./prev-gcc/gtype-cobol.h
./stage1-gcc/gtype-cobol.h
./x86_64-unknown-freebsd16.0/libgcobol/.libs/libgcobol.o
./x86_64-unknown-freebsd16.0/libgcobol/libgcobol.spec
./x86_64-unknown-freebsd16.0/libgcobol/.deps/libgcobol.Plo
./x86_64-unknown-freebsd16.0/libgcobol/libgcobol.o
./x86_64-unknown-freebsd16.0/libgcobol/libgcobol.lo

OK, so libgcobol.spec is now built, but there is 
no libgcobol.so.

It seems odd that one would need to separately request
the building of the library with --enable-libcobol.

Reply via email to