Bug 28830 - FAIL: tr1/2_general_utilities/memory/shared_ptr/thread/lockfree_weaktoshared.cc
Summary: FAIL: tr1/2_general_utilities/memory/shared_ptr/thread/lockfree_weaktoshared.cc
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: 4.2.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-24 01:06 UTC by John David Anglin
Modified: 2006-08-27 15:23 UTC (History)
3 users (show)

See Also:
Host: hppa*-*-linux*
Target: hppa*-*-linux*
Build: hppa*-*-linux*
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John David Anglin 2006-08-24 01:06:20 UTC
Executing on host: /home/dave/gnu/gcc-4.2/objdir/./gcc/g++ -shared-libgcc -B/hom
e/dave/gnu/gcc-4.2/objdir/./gcc -nostdinc++ -L/home/dave/gnu/gcc-4.2/objdir/hppa
-linux/libstdc++-v3/src -L/home/dave/gnu/gcc-4.2/objdir/hppa-linux/libstdc++-v3/
src/.libs -B/home/dave/opt/gnu/gcc/gcc-4.2.0/hppa-linux/bin/ -B/home/dave/opt/gn
u/gcc/gcc-4.2.0/hppa-linux/lib/ -isystem /home/dave/opt/gnu/gcc/gcc-4.2.0/hppa-l
inux/include -isystem /home/dave/opt/gnu/gcc/gcc-4.2.0/hppa-linux/sys-include -g
 -O2 -D_GLIBCXX_ASSERT -ffunction-sections -fdata-sections -fmessage-length=0 -g
 -O2 -D_GNU_SOURCE -DLOCALEDIR="." -nostdinc++ -I/home/dave/gnu/gcc-4.2/objdir/h
ppa-linux/libstdc++-v3/include/hppa-linux -I/home/dave/gnu/gcc-4.2/objdir/hppa-l
inux/libstdc++-v3/include -I/home/dave/gnu/gcc-4.2/gcc/libstdc++-v3/libsupc++ -I
/home/dave/gnu/gcc-4.2/gcc/libstdc++-v3/include/backward -I/home/dave/gnu/gcc-4.
2/gcc/libstdc++-v3/testsuite/util testsuite_abi.o testsuite_allocator.o testsuit
e_character.o testsuite_hooks.o twister_rand_gen.o verified_cmd_line_input.o pro
g_bar.o dbg_ex_allocator_base.o elapsed_timer.o -Wl,--gc-sections /home/dave/gnu
/gcc-4.2/gcc/libstdc++-v3/testsuite/tr1/2_general_utilities/memory/shared_ptr/th
read/lockfree_weaktoshared.cc   -pthread  -lm   -o ./lockfree_weaktoshared.exe
  (timeout = 600)
/tmp/ccljP9Ft.o: In function `std::tr1::_Sp_counted_base<(std::tr1::_Lock_policy
)0>::add_ref_lock()':
/home/dave/gnu/gcc-4.2/objdir/hppa-linux/libstdc++-v3/include/tr1/boost_shared_p
tr.h:259: undefined reference to `__sync_bool_compare_and_swap_4'
/home/dave/gnu/gcc-4.2/objdir/hppa-linux/libstdc++-v3/include/tr1/boost_shared_p
tr.h:259: undefined reference to `__sync_bool_compare_and_swap_4'
collect2: ld returned 1 exit status
compiler exited with status 1
output is:
/tmp/ccljP9Ft.o: In function `std::tr1::_Sp_counted_base<(std::tr1::_Lock_policy
)0>::add_ref_lock()':
/home/dave/gnu/gcc-4.2/objdir/hppa-linux/libstdc++-v3/include/tr1/boost_shared_p
tr.h:259: undefined reference to `__sync_bool_compare_and_swap_4'
/home/dave/gnu/gcc-4.2/objdir/hppa-linux/libstdc++-v3/include/tr1/boost_shared_p
tr.h:259: undefined reference to `__sync_bool_compare_and_swap_4'
collect2: ld returned 1 exit status

FAIL: tr1/2_general_utilities/memory/shared_ptr/thread/lockfree_weaktoshared.cc
(test for excess errors)
Excess errors:
/home/dave/gnu/gcc-4.2/objdir/hppa-linux/libstdc++-v3/include/tr1/boost_shared_p
tr.h:259: undefined reference to `__sync_bool_compare_and_swap_4'
/home/dave/gnu/gcc-4.2/objdir/hppa-linux/libstdc++-v3/include/tr1/boost_shared_p
tr.h:259: undefined reference to `__sync_bool_compare_and_swap_4'
collect2: ld returned 1 exit status

WARNING: tr1/2_general_utilities/memory/shared_ptr/thread/lockfree_weaktoshared.
cc compilation failed to produce executable
extra_tool_flags are:
 -pthread
Comment 1 paolo@gcc.gnu.org 2006-08-27 15:19:33 UTC
Subject: Bug 28830

Author: paolo
Date: Sun Aug 27 15:19:23 2006
New Revision: 116489

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116489
Log:
2006-08-27  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/28830
	* testsuite/tr1/2_general_utilities/memory/shared_ptr/thread/
	lockfree_weaktoshared.cc: Rename to...
	* testsuite/tr1/2_general_utilities/memory/shared_ptr/thread/
	default_weaktoshared.cc: ... this; test the default base class.
	* testsuite/tr1/2_general_utilities/memory/shared_ptr/thread/
	mutex_weaktoshared.cc: Run like the other thread tests.

Added:
    trunk/libstdc++-v3/testsuite/tr1/2_general_utilities/memory/shared_ptr/thread/default_weaktoshared.cc
      - copied, changed from r116401, trunk/libstdc++-v3/testsuite/tr1/2_general_utilities/memory/shared_ptr/thread/lockfree_weaktoshared.cc
Removed:
    trunk/libstdc++-v3/testsuite/tr1/2_general_utilities/memory/shared_ptr/thread/lockfree_weaktoshared.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/testsuite/tr1/2_general_utilities/memory/shared_ptr/thread/mutex_weaktoshared.cc

Comment 2 Paolo Carlini 2006-08-27 15:23:35 UTC
Fixed. In case, we can always add something more specific for the _S_lockfree base (in any case gets already testing on every ia64, powerpc, alpha, s390...).