https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127412
Bug ID: 127412
Summary: error: iconv_open: cannot convert to 'CP1140' from
'CP1252'
Product: gcc
Version: 17.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: ---
After bootstrapping gcc with cobol support on x86_64-*-freebsd,
'gmake -j15 check-cobol' fails with the following error.
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/group2/CDF_Feature_.cob
-fdiagnostics-plain-output -fdiagnostics-plain-output -O0 -fexec-charset=cp1140
-dialect ibm -B/home/kargl/gcc/obj/x86_64-unknown-freebsd16.0/./libgcobol
-L/home/kargl/gcc/obj/x86_64-unknown-freebsd16.0/./libgcobol/.libs
-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 ./CDF_Feature_.exe
cobol1: error: iconv_open: cannot convert to 'CP1140' from 'CP1252'
compiler exited with status 1
FAIL: cobol.dg/group2/CDF_Feature_.cob -O0 (test for excess errors)
Excess errors:
cobol1: error: iconv_open: cannot convert to 'CP1140' from 'CP1252'
The configure command was
../gcc/configure --prefix=$HOME/work/x \
--enable-languages=c,c++,fortran,lto,algol68,cobol \
--enable-bootstrap --disable-multilib --without-libintl --disable-nls \
--disable-libssp --enable-checking=yes \
--enable-libgcobol \
--with-target-libxml2-include=/usr/local/include/libxml2 \
--with-target-libxml2-lib=/usr/local/lib