Hong Kong shares opened higher on Friday but quickly gave up gains as gold-related stocks and chipmakers came under pressure.