<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 class="">>> Hmm, I cannot figure out how to do that. Developer tools on Mac are embarrassing.</div><div class=""><br class=""></div><div class="">I think you are probably looking in the wrong place. The GUI based Xcode Instruments tools likely have this type of capability but it may not be accessible from the command line.</div><div class=""><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class="">On Nov 23, 2021, at 3:02 PM, Matthew Knepley <<a href="mailto:knepley@gmail.com" class="">knepley@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class="">On Tue, Nov 23, 2021 at 2:05 PM Satish Balay <<a href="mailto:balay@mcs.anl.gov" class="">balay@mcs.anl.gov</a>> wrote:<br class=""></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 23 Nov 2021, Matthew Knepley wrote:<br class="">
<br class="">
> On Tue, Nov 23, 2021 at 12:56 PM Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank" class="">knepley@gmail.com</a>> wrote:<br class="">
> <br class="">
> > On Tue, Nov 23, 2021 at 12:29 PM Satish Balay <<a href="mailto:balay@mcs.anl.gov" target="_blank" class="">balay@mcs.anl.gov</a>> wrote:<br class="">
> ><br class="">
> >> The primary difference I can spot [as you say] is the older xcode you<br class="">
> >> have. Eventhough it says the same version of flex - perhaps its buggy?<br class="">
> >><br class="">
> >> Apple clang version 11.0.3 (clang-1103.0.32.59)<br class="">
> >> vs<br class="">
> >> Apple clang version 12.0.0 (clang-1200.0.32.2)<br class="">
> >><br class="">
> >><br class="">
> >> ><br class="">
> >> PATH=/PETSc3/cig/bin:/PETSc3/petsc/petsc-pylith/arch-pylith-debug/bin:/PETSc3/petsc/apple/bin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/texbin:/opt/X11/bin:/usr/local/git/bin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/opt/local/bin:/opt/local/sbin:/usr/X11/bin:/usr/local/texlive/2019/bin/x86_64-darwin:/usr/local/cuda/bin:/usr/local/gmt/bin:/usr/local/bin:/usr/X11/bin:/usr/local/texlive/2019/bin/x86_64-darwin:/usr/local/cuda/bin:/usr/local/gmt/bin<br class="">
> >><br class="">
> >> BTW: Can you try a build with the following and see if it makes a<br class="">
> >> difference?<br class="">
> >><br class="">
> >> PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin<br class="">
> >> ./configure PETSC_ARCH=arch-test --with-mpi-dir=/PETSc3/petsc/apple<br class="">
> >> --download-c2html --download-ptscotch<br class="">
> >><br class="">
> ><br class="">
> > Damn damn damn damn. Now I have to bisect the PATH to see how in the world<br class="">
> > that can make a difference.<br class="">
> ><br class="">
> <br class="">
> Okay, the configure succeeds by taking out /opt/local/bin:/opt/local/sbin,<br class="">
> but I cannot figure out why this would be the case?<br class="">
<br class="">
<br class="">
If you can do 'strace --follow-forks' or equivalent on Mac - you might<br class="">
be able to see what gets used from /opt/local/bin/<br class=""></blockquote><div class=""><br class=""></div><div class="">Hmm, I cannot figure out how to do that. Developer tools on Mac are embarrassing.</div><div class=""> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Also you might be better off using brew instead of what you currently<br class="">
have.. [likely you don't need most of the binaries below. 'brew<br class="">
leaves' gives a nice way to keep track of whats really needed]<br class=""></blockquote><div class=""><br class=""></div><div class="">I do not use MacPorts. I edited my .profile years ago and I missed that when abandoning it.</div><div class=""> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Or a brute force bisection by moving binaries out of (and back into) this location.<br class=""></blockquote><div class=""><br class=""></div><div class="">That sounds like something for "grad student time"</div><div class=""><br class=""></div><div class=""> Thanks,</div><div class=""><br class=""></div><div class=""> Matt</div><div class=""> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Satish<br class="">
<br class="">
> <br class="">
> knepley/feature-plex-multiple-hybrid *$:/PETSc3/petsc/petsc-pylith$ ls<br class="">
> /opt/local/sbin/<br class="">
> knepley/feature-plex-multiple-hybrid *$:/PETSc3/petsc/petsc-pylith$ ls<br class="">
> /opt/local/bin/<br class="">
> a2p envsubst libnetcfg-5.12<br class="">
> perlivp-5.8 prove<br class="">
> a2p-5.12 find2perl libnetcfg-5.8<br class="">
> perlthanks prove-5.12<br class="">
> a2p-5.8 find2perl-5.12 msgattrib<br class="">
> perlthanks-5.12 prove-5.8<br class="">
> autoconf263 find2perl-5.8 msgcat<br class="">
> perlthanks-5.8 psed<br class="">
> <br class="">
> autoheader263 gettext msgcmp<br class="">
> piconv psed-5.12<br class="">
> autom4te263 gettext.sh msgcomm<br class="">
> piconv-5.12 psed-5.8<br class="">
> autopoint gettextize msgconv<br class="">
> piconv-5.8 pstruct<br class="">
> autoreconf263 ghc msgen<br class="">
> pl2pm pstruct-5.12<br class="">
> autoscan263 ghc-6.10.4 msgexec<br class="">
> pl2pm-5.12 pstruct-5.8<br class="">
> autoupdate263 ghc-pkg msgfilter<br class="">
> pl2pm-5.8 ptar-5.12<br class="">
> c2ph ghc-pkg-6.10.4 msgfmt<br class="">
> pod2html ptardiff-5.12<br class="">
> c2ph-5.12 ghci msggrep<br class="">
> pod2html-5.12 recode-sr-latin<br class="">
> c2ph-5.8 ghci-6.10.4 msginit<br class="">
> pod2html-5.8 reset<br class="">
> c_rehash gm4 msgmerge<br class="">
> pod2latex runghc<br class="">
> captoinfo gperf msgunfmt<br class="">
> pod2latex-5.12 runhaskell<br class="">
> clear h2ph msguniq<br class="">
> pod2latex-5.8 s2p<br class="">
> config_data-5.12 h2ph-5.12 ncurses5-config<br class="">
> pod2man s2p-5.12<br class="">
> corelist-5.12 h2ph-5.8 ncursesw5-config<br class="">
> pod2man-5.12 s2p-5.8<br class="">
> corelist-5.8 h2xs ngettext<br class="">
> pod2man-5.8 shasum-5.12<br class="">
> cpan h2xs-5.12 openssl<br class="">
> pod2text splain<br class="">
> cpan-5.12 h2xs-5.8 perl<br class="">
> pod2text-5.12 splain-5.12<br class="">
> cpan-5.8 haddock perl5<br class="">
> pod2text-5.8 splain-5.8<br class="">
> cpan2dist hasktags perl5.12<br class="">
> pod2usage tabs<br class="">
> cpan2dist-5.12 help2man perl5.12.3<br class="">
> pod2usage-5.12 tic<br class="">
> cpanp hp2ps perl5.8<br class="">
> pod2usage-5.8 toe<br class="">
> cpanp-5.12 hpc perl5.8.9<br class="">
> podchecker tput<br class="">
> cpanp-run-perl hsc2hs perlbug<br class="">
> podchecker-5.12 tset<br class="">
> cpanp-run-perl-5.12 iconv perlbug-5.12<br class="">
> podchecker-5.8 wget<br class="">
> daemondo idn perlbug-5.8<br class="">
> podselect xgettext<br class="">
> dprofpp ifnames263 perlcc-5.8<br class="">
> podselect-5.12 xmlwf<br class="">
> dprofpp-5.12 infocmp perldoc<br class="">
> podselect-5.8 xsubpp<br class="">
> dprofpp-5.8 infotocap perldoc-5.12<br class="">
> port xsubpp-5.12<br class="">
> enc2xs instmodsh-5.12 perldoc-5.8<br class="">
> portf xsubpp-5.8<br class="">
> enc2xs-5.12 instmodsh-5.8 perlivp<br class="">
> portindex<br class="">
> enc2xs-5.8 libnetcfg perlivp-5.12<br class="">
> portmirror<br class="">
> <br class="">
> Thanks,<br class="">
> <br class="">
> Matt<br class="">
> <br class="">
> <br class="">
> > Thanks,<br class="">
> ><br class="">
> > Matt<br class="">
> ><br class="">
> ><br class="">
> >> Satish<br class="">
> >><br class="">
> >><br class="">
> >> On Tue, 23 Nov 2021, Matthew Knepley wrote:<br class="">
> >><br class="">
> >> > Here it is.<br class="">
> >> ><br class="">
> >> > Matt<br class="">
> >> ><br class="">
> >> > On Tue, Nov 23, 2021 at 11:44 AM Satish Balay <<a href="mailto:balay@mcs.anl.gov" target="_blank" class="">balay@mcs.anl.gov</a>><br class="">
> >> wrote:<br class="">
> >> ><br class="">
> >> > > On Tue, 23 Nov 2021, Matthew Knepley wrote:<br class="">
> >> > ><br class="">
> >> > > > On Tue, Nov 23, 2021 at 11:28 AM Satish Balay <<a href="mailto:balay@mcs.anl.gov" target="_blank" class="">balay@mcs.anl.gov</a>><br class="">
> >> wrote:<br class="">
> >> > > ><br class="">
> >> > > > > Well we don't have this issue on our (macos) CI boxes where both<br class="">
> >> 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<br class="">
> >> your<br class="">
> >> > > box?<br class="">
> >> > > > ><br class="">
> >> > > ><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="">
> >> > > > > And what errors do you get?<br class="">
> >> > > > ><br class="">
> >> > > ><br class="">
> >> > > > Without the extra input define in PTScotch.py, I get the yylval<br class="">
> >> 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="">
> >> > ><br class="">
> >> > > BTW: Can you send the log?<br class="">
> >> > ><br class="">
> >> > > Satish<br class="">
> >> > ><br class="">
> >> > > ><br class="">
> >> > > ><br class="">
> >> > > > > Perhaps CI is using older xcode (command line tools) - and you are<br class="">
> >> > > using<br class="">
> >> > > > > newer? Or something else?<br class="">
> >> > > > ><br class="">
> >> > > ><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="">
> >> > > > > 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<br class="">
> >> --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="">
> >> > > > > > This is the same flex problem as I had for c2html, but I was<br class="">
> >> more<br class="">
> >> > > > > > determined tracking it down this time. The first problem is<br class="">
> >> that we<br class="">
> >> > > 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 += '<br class="">
> >> -lrt'<br class="">
> >> > > > > > self.cflags = self.cflags + ' -DCOMMON_RANDOM_FIXED_SEED'<br class="">
> >> > > > > > # do not use -DSCOTCH_PTHREAD because requires MPI built<br class="">
> >> for<br class="">
> >> > > > > threads.<br class="">
> >> > > > > > - self.cflags = self.cflags + ' -DSCOTCH_RENAME<br class="">
> >> > > > > > -Drestrict="'+self.compilers.cRestrict+'"'<br class="">
> >> > > > > > + self.cflags = self.cflags + ' -DSCOTCH_RENAME<br class="">
> >> > > -DSCOTCH_RENAME_PARSER<br class="">
> >> > > > > > -Drestrict="'+self.compilers.cRestrict+'"'<br class="">
> >> > > > > > # this is needed on the Mac, because common2.c includes<br class="">
> >> common.h<br class="">
> >> > > > > which<br class="">
> >> > > > > > DOES NOT include mpi.h because<br class="">
> >> > > > > > # SCOTCH_PTSCOTCH is NOT defined above Mac does not know<br class="">
> >> 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="">
> >> > > > ><br class="">
> >> > ><br class="">
> >> (93454e8...):/PETSc3/petsc/petsc-dev/arch-master-debug/externalpackages/git.ptscotch/src/libscotch$<br class="">
> >> > > > > > git diff HEAD~1<br class="">
> >> > > > > > diff --git a/src/libscotch/parser_yy.h<br class="">
> >> 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<br class="">
> >> prefix<br class="">
> >> > > > > > renaming */<br class="">
> >> > > > > > #define scotchyyparse stratParserParse2 /* Parser<br class="">
> >> > > 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<br class="">
> >> (scotchyy,<br class="">
> >> > > > > > SCOTCH_NAME_SUFFIXC, lval) /* It should be Yacc/Bison's job to<br class="">
> >> > > redefine<br class="">
> >> > > > > it!<br class="">
> >> > > > > > */<br class="">
> >> > > > > > #endif /* yylval */<br class="">
> >> > > > > ><br class="">
> >> > > > > > How should we go about getting this fix in? Do you need to have<br class="">
> >> our<br class="">
> >> > > own<br class="">
> >> > > > > > branch of PTScotch?<br class="">
> >> > > > > ><br class="">
> >> > > > > > Thanks,<br class="">
> >> > > > > ><br class="">
> >> > > > > > Matt<br class="">
> >> > > > > ><br class="">
> >> > > > > ><br class="">
> >> > > > ><br class="">
> >> > > ><br class="">
> >> > > ><br class="">
> >> > > ><br class="">
> >> > ><br class="">
> >> > ><br class="">
> >> ><br class="">
> >> ><br class="">
> >><br class="">
> >><br class="">
> ><br class="">
> > --<br class="">
> > What most experimenters take for granted before they begin their<br class="">
> > experiments is infinitely more interesting than any results to which their<br class="">
> > experiments lead.<br class="">
> > -- Norbert Wiener<br class="">
> ><br class="">
> > <a href="https://www.cse.buffalo.edu/~knepley/" rel="noreferrer" target="_blank" class="">https://www.cse.buffalo.edu/~knepley/</a><br class="">
> > <<a href="http://www.cse.buffalo.edu/~knepley/" rel="noreferrer" target="_blank" class="">http://www.cse.buffalo.edu/~knepley/</a>><br class="">
> ><br class="">
> <br class="">
> <br class="">
> <br class="">
<br class="">
</blockquote></div><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div dir="ltr" class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class="">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br class="">-- Norbert Wiener</div><div class=""><br class=""></div><div class=""><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank" class="">https://www.cse.buffalo.edu/~knepley/</a><br class=""></div></div></div></div></div></div></div></div>
</div></blockquote></div><br class=""></body></html>