If removing the homebrew-installed Trilinos is not acceptable, there may be another fix.
Our configure is, for whatever reason, currently set up to search your specified "ARCHDIR" after searching all other library directories. This is probably a mistake on our part --- we are setting up the search for include files so that ARCHDIR is searched FIRST, and we should be doing the same for libraries. In this case, we are probably finding the headers for your custom-built Trilinos and the libraries that Homebrew installed.
The fix would be a one line change to the file "
configure.ac" in the Xyce source tree, followed by re-running bootstrap and reconfiguring/rebuilding Xyce from the beginning.
If you would like to try that instead of removing the homebrew-installed Trilinos, edit
configure.ac and find the lines:
if test -d $ARCHDIR/lib; then
LDFLAGS="$LDFLAGS -L$ARCHDIR/lib"
fi
These should probably be:
if test -d $ARCHDIR/lib; then
LDFLAGS="-L$ARCHDIR/lib $LDFLAGS"
fi
If you make that change and it works for you, please let us know and we'll change it on our end.
It is surprising that this has never come up before, since this error has been in configure for many years.