<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">$ flex --version</span></div><div style="margin: 0px; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">flex 2.6.4 Apple(flex-34)</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">I have no problem with c2html or ptscotch builds </span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">I even installed the brew flex and put it at the beginning of my path and both the c2html and ptscotch went builds went through fine.</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">We need configure.log</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div><br class=""><blockquote type="cite" class=""><div class="">On Nov 23, 2021, at 11:44 AM, Satish Balay via petsc-dev <<a href="mailto:petsc-dev@mcs.anl.gov" class="">petsc-dev@mcs.anl.gov</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta charset="UTF-8" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">On Tue, 23 Nov 2021, Matthew Knepley wrote:</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">On Tue, Nov 23, 2021 at 11:28 AM Satish Balay <<a href="mailto:balay@mcs.anl.gov" class="">balay@mcs.anl.gov</a>> wrote:<br class=""><br class=""><blockquote type="cite" class="">Well we don't have this issue on our (macos) CI boxes where both c2html<br class="">and scotch build and run daily [in CI]<br class=""><br class="">what 'flex' are you using? And why does it behave differently on your box?<br class=""><br class=""></blockquote><br class="">main *$:/PETSc3/petsc/petsc-dev$ which flex<br class="">/usr/bin/flex<br class="">main *$:/PETSc3/petsc/petsc-dev$ flex --version<br class="">flex 2.5.35 Apple(flex-32)<br class=""><br class=""><br class=""><blockquote type="cite" class="">And what errors do you get?<br class=""><br class=""></blockquote><br class="">Without the extra input define in PTScotch.py, I get the yylval symbol<br class="">undefined and the lexer symbol. When I give<br class="">that define as input, only the lexer symbol is undefined.<br class=""></blockquote><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">BTW: Can you send the log?</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Satish</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br class=""><br class=""><blockquote type="cite" class="">Perhaps CI is using older xcode (command line tools) - and you are using<br class="">newer? Or something else?<br class=""><br class=""></blockquote><br class="">Probably the other way around. I am on Catalina 10.15.6<br class=""><br class="">  Matt<br class=""><br class=""><br class=""><blockquote type="cite" class="">Barry - do you have this issue on your machine?<br class=""><br class="">balay@ypro ~ % which flex<br class="">/usr/bin/flex<br class="">balay@ypro ~ % /usr/bin/flex --version<br class="">flex 2.5.35 Apple(flex-32)<br class="">balay@ypro petsc % clang -v<br class="">Apple clang version 12.0.0 (clang-1200.0.32.2)<br class="">Target: x86_64-apple-darwin19.6.0<br class="">Thread model: posix<br class="">InstalledDir: /Library/Developer/CommandLineTools/usr/bin<br class="">balay@ypro ~ % balay@ypro petsc % ./configure<br class="">--with-mpi-dir=$HOME/mpich-3.4.2 --download-c2html --download-ptscotch<br class=""><br class=""><log attached><br class=""><br class=""><br class="">Satish<br class=""><br class="">On Tue, 23 Nov 2021, Matthew Knepley wrote:<br class=""><br class=""><blockquote type="cite" class="">This is the same flex problem as I had for c2html, but I was more<br class="">determined tracking it down this time. The first problem is that we were<br class="">not renaming in the parser,<br class=""><br class="">main *$:/PETSc3/petsc/petsc-dev$ git diff<br class="">diff --git a/config/BuildSystem/config/packages/PTScotch.py<br class="">b/config/BuildSystem/config/packages/PTScotch.py<br class="">index d1c277b6e9f..e046804c17f 100644<br class="">--- a/config/BuildSystem/config/packages/PTScotch.py<br class="">+++ b/config/BuildSystem/config/packages/PTScotch.py<br class="">@@ -70,7 +70,7 @@ class Configure(config.package.Package):<br class="">    if self.libraries.add('-lrt','timer_create'): ldflags += ' -lrt'<br class="">    self.cflags = self.cflags + ' -DCOMMON_RANDOM_FIXED_SEED'<br class="">    # do not use -DSCOTCH_PTHREAD because requires MPI built for<br class=""></blockquote>threads.<br class=""><blockquote type="cite" class="">-    self.cflags = self.cflags + ' -DSCOTCH_RENAME<br class="">-Drestrict="'+self.compilers.cRestrict+'"'<br class="">+    self.cflags = self.cflags + ' -DSCOTCH_RENAME -DSCOTCH_RENAME_PARSER<br class="">-Drestrict="'+self.compilers.cRestrict+'"'<br class="">    # this is needed on the Mac, because common2.c includes common.h<br class=""></blockquote>which<br class=""><blockquote type="cite" class="">DOES NOT include mpi.h because<br class="">    # SCOTCH_PTSCOTCH is NOT defined above Mac does not know what<br class="">clock_gettime() is!<br class="">    if self.setCompilers.isDarwin(self.log):<br class=""><br class="">Second, they were not treating this case completely correctly:<br class=""><br class=""><br class=""></blockquote>(93454e8...):/PETSc3/petsc/petsc-dev/arch-master-debug/externalpackages/git.ptscotch/src/libscotch$<br class=""><blockquote type="cite" class="">git diff HEAD~1<br class="">diff --git a/src/libscotch/parser_yy.h b/src/libscotch/parser_yy.h<br class="">index 931315d..95b8160 100644<br class="">--- a/src/libscotch/parser_yy.h<br class="">+++ b/src/libscotch/parser_yy.h<br class="">@@ -62,6 +62,9 @@<br class=""><br class="">#if ((defined SCOTCH_RENAME_PARSER) || (defined yylex)) /* If prefix<br class="">renaming    */<br class="">#define scotchyyparse               stratParserParse2 /* Parser function<br class="">name    */<br class="">+#if !defined(yylex)<br class="">+#define yylex                       scotchyylex<br class="">+#endif<br class="">#ifndef yylval<br class="">#define yylval                      SCOTCH_NAME_MACRO3 (scotchyy,<br class="">SCOTCH_NAME_SUFFIXC, lval) /* It should be Yacc/Bison's job to redefine<br class=""></blockquote>it!<br class=""><blockquote type="cite" class="">*/<br class="">#endif /* yylval              */<br class=""><br class="">How should we go about getting this fix in? Do you need to have our own<br class="">branch of PTScotch?<br class=""><br class=""> Thanks,<br class=""><br class="">    Matt</blockquote></blockquote></blockquote></div></blockquote></div><br class=""></body></html>