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

            Bug ID: 120328
           Summary: Building gcobol fails in non English systems
           Product: gcc
           Version: 15.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: cobol
          Assignee: unassigned at gcc dot gnu.org
          Reporter: desforn at tuta dot com
  Target Milestone: ---

When building gcobol in a non English system an error message appears:

awk  '! /warning, dangerous trailing context/ {print > "/dev/stderr"; nerr++}  
\
     END {print "flex:", NR, "messages" > "/dev/stderr";        \
          exit nerr}' cobol/scan.cc~
../../source/gcc/cobol/scan.l:1199: warning, Context posterior perillós
../../source/gcc/cobol/scan.l:1522: warning, Context posterior perillós
../../source/gcc/cobol/scan.l:1205: warning, Context posterior perillós
../../source/gcc/cobol/scan.l:1205: warning, Context posterior perillós
../../source/gcc/cobol/scan.l:1522: warning, Context posterior perillós
../../source/gcc/cobol/scan.l:1522: warning, Context posterior perillós
../../source/gcc/cobol/scan.l:1522: warning, Context posterior perillós
../../source/gcc/cobol/scan.l:1629: warning, Context posterior perillós
flex: 8 messages
make[3]: *** [../../source/gcc/cobol/Make-lang.in:161: cobol/scan.cc] Error 8

Using export LANGUAGE=C before building solves the problem. Adding

LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

at gcc/cobol/Make-lang.in would solve the problem.

Reply via email to