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

            Bug ID: 124616
           Summary: libgcobol.spec is not built on x86_64-*-freebsd
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: cobol
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kargl at gcc dot gnu.org
  Target Milestone: ---

I don't know if I missed a step.  This is the first time I
built cobol on FreeBSD.  After

./gcc/configure --prefix=$HOME/work/x \
   --enable-languages=c,c++,fortran,lto,cobol,algol68 \
   --enable-bootstrap --disable-multilib --without-libintl --disable-nls \
   --disable-libssp --enable-checking=yes

'gmake -j15 check' yields

% tail gcc/testsuite/cobol/cobol.sum 

                === cobol Summary ===

# of expected passes            10
# of unexpected failures        2856
# of unresolved testcases       2742
/home/kargl/gcc/obj/gcc/gcobol  version 16.0.1 20260324 (experimental) (GCC) 

Looking into cobol.log, I see

% more gcc/testsuite/cobol/cobol.log
...
UNRESOLVED: cobol.dg/data1.cob   -O0  compilation failed to produce executable
Executing on host: /home/kargl/gcc/obj/gcc/testsuite/cobol/../../gcobol
-B/home/kargl/gcc/obj/gcc/testsuite/cobol/../../ 
/home/kargl/gcc/gcc/gcc/testsuite/cobol.dg/data1.cob   
-fdiagnostics-plain-output  -fdiagnostics-plain-output    -O1    
-L/home/kargl/gcc/obj/x86_64-unknown-freebsd16.0/./libquadmath/.libs
-L/home/kargl/gcc/obj/x86_64-unknown-freebsd16.0/./libstdc++-v3/src/.libs  -lm 
-o ./data1.exe    (timeout = 300)
spawn -ignore SIGHUP /home/kargl/gcc/obj/gcc/testsuite/cobol/../../gcobol
-B/home/kargl/gcc/obj/gcc/testsuite/cobol/../../
/home/kargl/gcc/gcc/gcc/testsuite/cobol.dg/data1.cob -fdiagnostics-plain-output
-fdiagnostics-plain-output -O1
-L/home/kargl/gcc/obj/x86_64-unknown-freebsd16.0/./libquadmath/.libs
-L/home/kargl/gcc/obj/x86_64-unknown-freebsd16.0/./libstdc++-v3/src/.libs -lm
-o ./data1.exe
gcobol: fatal error: cannot read spec file 'libgcobol.spec': No such file or
directory
compilation terminated.
compiler exited with status 1
FAIL: cobol.dg/data1.cob   -O1  (test for excess errors)
Excess errors:
gcobol: fatal error: cannot read spec file 'libgcobol.spec': No such file or
directory
compilation terminated.

Finally, I find

%  find ~/gcc/obj -name \*.spec
/home/kargl/gcc/obj/x86_64-unknown-freebsd16.0/libgomp/libgfortran.spec
/home/kargl/gcc/obj/x86_64-unknown-freebsd16.0/libgomp/libgomp.spec
/home/kargl/gcc/obj/x86_64-unknown-freebsd16.0/libga68/libga68.spec
/home/kargl/gcc/obj/x86_64-unknown-freebsd16.0/libsanitizer/libsanitizer.spec
/home/kargl/gcc/obj/x86_64-unknown-freebsd16.0/libitm/libitm.spec
/home/kargl/gcc/obj/x86_64-unknown-freebsd16.0/libgfortran/libgfortran.spec
/home/kargl/gcc/obj/stage1-x86_64-unknown-freebsd16.0/libgomp/libgfortran.spec
/home/kargl/gcc/obj/stage1-x86_64-unknown-freebsd16.0/libgomp/libgomp.spec
/home/kargl/gcc/obj/prev-x86_64-unknown-freebsd16.0/libgomp/libgfortran.spec
/home/kargl/gcc/obj/prev-x86_64-unknown-freebsd16.0/libgomp/libgomp.spec

Note, there is no libgcobol.spec.

Reply via email to