undefined symbol: __sync_add_and_fetch_4
Created by: sugarmo
Tried to run sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production
return:
ruby: symbol lookup error: /home/git/gitlab/vendor/bundle/ruby/2.1.0/extensions/x86-linux/2.1.0-static/rugged-0.21.0/rugged/rugged.so: undefined symbol: __sync_add_and_fetch_4
I know it's a gcc or cmake problem, since the rugged gem requires cmake to build its extension. I spent a whole day to try to resolve this problem, but I still get no clue. Would there be a solution of this problem?