On Debian etch, i386 compilation error

Bug #658274 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
Fix Committed
Medium
Oleg Tsarev

Bug Description

On MySQL 5.1.50 XtraDB 12.1

/bin/sh ../libtool --preserve-dup-deps --tag=CXX --mode=link gcc -O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2 -static-libgcc -m32 -march=i586 -mtune=i686 -fno-implicit-templates -fno-exceptions -fno-rtti -rdynamic -o mysqld sql_lex.o sql_handler.o sql_partition.o item.o item_sum.o item_buff.o item_func.o item_cmpfunc.o item_strfunc.o item_timefunc.o thr_malloc.o item_create.o item_subselect.o item_row.o item_geofunc.o item_xmlfunc.o field.o strfunc.o key.o sql_class.o sql_list.o net_serv.o protocol.o sql_state.o lock.o my_lock.o sql_string.o sql_manager.o sql_map.o mysqld.o password.o hash_filo.o hostname.o sql_connect.o scheduler.o sql_parse.o set_var.o query_response_time.o sql_yacc.o sql_base.o table.o sql_select.o sql_insert.o sql_profile.o sql_prepare.o sql_error.o sql_locale.o sql_update.o sql_delete.o uniques.o sql_do.o procedure.o sql_test.o log.o init.o derror.o sql_acl.o unireg.o des_key_file.o log_event.o rpl_record.o log_event_old.o rpl_record_old.o discover.o time.o opt_range.o opt_sum.o records.o filesort.o handler.o ha_partition.o debug_sync.o sql_db.o sql_table.o sql_rename.o sql_crypt.o sql_load.o mf_iocache.o field_conv.o sql_show.o sql_udf.o sql_analyse.o sql_cache.o slave.o sql_repl.o rpl_filter.o rpl_tblmap.o rpl_utility.o rpl_injector.o rpl_rli.o rpl_mi.o rpl_reporting.o sql_union.o sql_derived.o sql_client.o repl_failsafe.o sql_olap.o sql_view.o gstream.o spatial.o sql_help.o sql_cursor.o tztime.o my_decimal.o sp_head.o sp_pcontext.o sp_rcontext.o sp.o sp_cache.o parse_file.o sql_trigger.o event_scheduler.o event_data_objects.o event_queue.o event_db_repository.o events.o sql_plugin.o sql_binlog.o sql_builtin.o sql_tablespace.o partition_info.o sql_servers.o event_parse_data.o mini_client_errors.o pack.o client.o my_time.o my_user.o libndb.la ../storage/archive/libarchive.a ../storage/blackhole/libblackhole.a ../storage/csv/libcsv.a ../storage/federated/libfederated.a ../storage/heap/libheap.a ../storage/innodb_plugin/libinnobase.a ../storage/myisam/libmyisam.a ../storage/myisammrg/libmyisammrg.a ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a -lz -lwrap -ldl ../extra/yassl/src/libyassl.la ../extra/yassl/taocrypt/src/libtaocrypt.la -lpthread -lcrypt -lnsl -lm -lrt -lpthread
libtool: link: gcc -O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2 -static-libgcc -m32 -march=i586 -mtune=i686 -fno-implicit-templates -fno-exceptions -fno-rtti -rdynamic -o mysqld sql_lex.o sql_handler.o sql_partition.o item.o item_sum.o item_buff.o item_func.o item_cmpfunc.o item_strfunc.o item_timefunc.o thr_malloc.o item_create.o item_subselect.o item_row.o item_geofunc.o item_xmlfunc.o field.o strfunc.o key.o sql_class.o sql_list.o net_serv.o protocol.o sql_state.o lock.o my_lock.o sql_string.o sql_manager.o sql_map.o mysqld.o password.o hash_filo.o hostname.o sql_connect.o scheduler.o sql_parse.o set_var.o query_response_time.o sql_yacc.o sql_base.o table.o sql_select.o sql_insert.o sql_profile.o sql_prepare.o sql_error.o sql_locale.o sql_update.o sql_delete.o uniques.o sql_do.o procedure.o sql_test.o log.o init.o derror.o sql_acl.o unireg.o des_key_file.o log_event.o rpl_record.o log_event_old.o rpl_record_old.o discover.o time.o opt_range.o opt_sum.o records.o filesort.o handler.o ha_partition.o debug_sync.o sql_db.o sql_table.o sql_rename.o sql_crypt.o sql_load.o mf_iocache.o field_conv.o sql_show.o sql_udf.o sql_analyse.o sql_cache.o slave.o sql_repl.o rpl_filter.o rpl_tblmap.o rpl_utility.o rpl_injector.o rpl_rli.o rpl_mi.o rpl_reporting.o sql_union.o sql_derived.o sql_client.o repl_failsafe.o sql_olap.o sql_view.o gstream.o spatial.o sql_help.o sql_cursor.o tztime.o my_decimal.o sp_head.o sp_pcontext.o sp_rcontext.o sp.o sp_cache.o parse_file.o sql_trigger.o event_scheduler.o event_data_objects.o event_queue.o event_db_repository.o events.o sql_plugin.o sql_binlog.o sql_builtin.o sql_tablespace.o partition_info.o sql_servers.o event_parse_data.o mini_client_errors.o pack.o client.o my_time.o my_user.o ./.libs/libndb.a -lpthread -lpthread -lpthread -lpthread ../storage/archive/libarchive.a ../storage/blackhole/libblackhole.a ../storage/csv/libcsv.a ../storage/federated/libfederated.a ../storage/heap/libheap.a ../storage/innodb_plugin/libinnobase.a ../storage/myisam/libmyisam.a ../storage/myisammrg/libmyisammrg.a ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a -lz -lwrap -ldl ../extra/yassl/src/.libs/libyassl.a -lpthread -lpthread -lpthread -lpthread ../extra/yassl/taocrypt/src/.libs/libtaocrypt.a -lpthread -lpthread -lpthread -lpthread -lpthread -lcrypt -lnsl -lm -lrt -lpthread
query_response_time.o: In function `query_response_time::time_collector::collect(unsigned long long)':
/home/buildbot/slaves/percona-server-51-12/DEB_Debian_etch_i386/work/percona-server-5.1.50-12.1-127.etch/sql/query_response_time.cc:173: undefined reference to `__sync_fetch_and_add_8'
collect2: ld returned 1 exit status

description: updated
Revision history for this message
Aleksandr Kuzminsky (akuzminsky) wrote :

The same applies to FreeBSD 8, i386

Revision history for this message
Swany (greenlion) wrote : Re: [Bug 658274] Re: On Debian etch, i386 compilation error

It think it will fail on all 32bit platforms:
"GCC can now use load-linked, store-conditional and sync instructions
to implement atomic built-in functions such as __sync_fetch_and_add.
The memory reference must be 4 bytes wide for 32-bit targets and
either 4 or 8 bytes wide for 64-bit targets."

It looks like __sync_fetch_and_add_8 is only available on 64 bit.

--Justin

On Mon, Oct 11, 2010 at 5:00 AM, Aleksandr Kuzminsky
<email address hidden> wrote:
> The same applies to FreeBSD 8, i386
>
> --
> On Debian etch, i386 compilation error
> https://bugs.launchpad.net/bugs/658274
> You received this bug notification because you are a member of Percona
> developers, which is the registrant for Percona Server.
>

Oleg Tsarev (tsarev)
Changed in percona-server:
status: New → Confirmed
assignee: nobody → Oleg Tsarev (tsarev)
importance: Undecided → Medium
Oleg Tsarev (tsarev)
Changed in percona-server:
status: Confirmed → In Progress
Oleg Tsarev (tsarev)
Changed in percona-server:
status: In Progress → Fix Committed
Revision history for this message
Oleg Tsarev (tsarev) wrote :

This is another bug, and fixed already

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.