# Install in debug mode, which lets you drop into a shell to examine why a package does not build
brew install${PACKAGE_NAME} -d

# Reinstall package
brew reinstall ${PACKAGE_NAME}

# Reinstall symlinks
brew link --overwrite ${PACKAGE_NAME}

Errors

libfl.so.2

For error:

ar: error while loading shared libraries: libfl.so.2: cannot open shared object file: No such file or directory

reinstall binutils.