compilation fails Percona Server 5.1.52-rel12.3 on CentOS 4, x86_64

Bug #683665 reported by Aleksandr Kuzminsky
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Won't Fix
High
Oleg Tsarev

Bug Description

if gcc -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local/Percona-Server-5.1.52-rel12.3-153-Linux-x86_64\"" -DMYSQL_DATADIR="\"/usr/local/Percona-Server-5.1.52-rel12.3-153-Linux-x86_64/data\"" -DSHAREDIR="\"/usr/local/Percona-Server-5.1.52-rel12.3-153-Linux-x86_64/share/mysql\"" -DPLUGINDIR="\"/usr/local/Percona-Server-5.1.52-rel12.3-153-Linux-x86_64/lib/mysql/plugin\"" -DHAVE_EVENT_SCHEDULER -DHAVE_CONFIG_H -I. -I. -I../include -I../zlib -I../include -I../include -I../regex -I. -DPERCONA_INNODB_VERSION=12.3 -O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2 -static-libgcc -fno-implicit-templates -fno-exceptions -fno-rtti -MT query_response_time.o -MD -MP -MF ".deps/query_response_time.Tpo" -c -o query_response_time.o query_response_time.cc; \
then mv -f ".deps/query_response_time.Tpo" ".deps/query_response_time.Po"; else rm -f ".deps/query_response_time.Tpo"; exit 1; fi
query_response_time.cc: In function `void query_response_time::add_time_atomic(query_response_time::TimeCounter*, uint64)':
query_response_time.cc:159: error: `__sync_fetch_and_add' was not declared in this scope
query_response_time.cc: In member function `void query_response_time::time_collector::collect(uint64)':
query_response_time.cc:255: error: `__sync_fetch_and_add' was not declared in this scope
make[4]: *** [query_response_time.o] Error 1

Changed in percona-server:
milestone: none → 5.1.52-12.3
Revision history for this message
Vadim Tkachenko (vadim-tk) wrote :

GCC on CentOS 4 is too old, it may not have atomics_buildin or have it differently

Changed in percona-server:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Oleg Tsarev (tsarev)
Revision history for this message
Aleksandr Kuzminsky (akuzminsky) wrote :

gcc4 should be used instead of gcc

Changed in percona-server:
status: Confirmed → Invalid
Revision history for this message
Oleg Tsarev (tsarev) wrote :

Please build by gcc version >4

Changed in percona-server:
status: Invalid → Won't Fix
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-446

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.