The computer maker says it expects to take an $8 billion third-quarter charge to write down goodwill for its services unit. It also expects hefty charges tied to HP employees taking early retirement packages.