First, check in All Settings catalogsettings.compareproductsenabled
It should be True. If it is, then you may have a CSS issue. Use the browser tools to Inspect in the are where the button should be. I.e. the button may be there, but it may not be visible.
Thank you for your reply, I found that the display is normal with IE browser, but there will be error when using Chrome browser