Bug 39652 - Trouble with new random bits
Summary: Trouble with new random bits
Status: RESOLVED DUPLICATE of bug 39629
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: 4.5.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-05 17:06 UTC by John David Anglin
Modified: 2009-04-07 20:48 UTC (History)
5 users (show)

See Also:
Host: hppa*-*-hpux*
Target: hppa*-*-hpux* (32-bit)
Build: hppa*-*-hpux*
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 2009-04-05 17:06:26 UTC
Executing on host: /test/gnu/gcc/objdir/./gcc/g++ -shared-libgcc -B/test/gnu/gcc
/objdir/./gcc -nostdinc++ -L/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v
3/src -L/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/src/.libs -B/opt/g
nu64/gcc/gcc-4.5.0/hppa64-hp-hpux11.11/bin/ -B/opt/gnu64/gcc/gcc-4.5.0/hppa64-hp
-hpux11.11/lib/ -isystem /opt/gnu64/gcc/gcc-4.5.0/hppa64-hp-hpux11.11/include -i
system /opt/gnu64/gcc/gcc-4.5.0/hppa64-hp-hpux11.11/sys-include -g -O2 -D_GLIBCX
X_ASSERT -fmessage-length=0 -ffunction-sections -fdata-sections -g -O2 -g -O2   
-DLOCALEDIR="." -nostdinc++ -I/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++
-v3/include/hppa64-hp-hpux11.11 -I/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libst
dc++-v3/include -I/test/gnu/gcc/gcc/libstdc++-v3/libsupc++ -I/test/gnu/gcc/gcc/l
ibstdc++-v3/include/backward -I/test/gnu/gcc/gcc/libstdc++-v3/testsuite/util /te
st/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/headers/c++200x/all.cc   -std=gnu
++0x -S  -o all.s    (timeout = 600)
In file included from /test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/incl
ude/random:58,
                 from /test/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/headers/
c++200x/all.cc:122:
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc: I
n member function 'void std::linear_congruential_engine<_UIntType, __a, __c, __m
>::seed(std::seed_seq&)':
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc:12
1: error: 'log2' is not a member of 'std'
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc: I
n member function 'result_type std::independent_bits_engine<_RandomNumberEngine,
 __w, _UIntType>::operator()()':
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc:58
1: error: 'log2l' is not a member of 'std'
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc: I
n member function 'result_type std::piecewise_linear_distribution<_RealType>::op
erator()(_UniformRandomNumberGenerator&, const std::piecewise_linear_distributio
n<_RealType>::param_type&)':
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc:25
96: error: expected ',' or ';' before ')' token
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc: I
n function '_RealType std::generate_canonical(_UniformRandomNumberGenerator&)':
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc:27
65: error: 'log2l' is not a member of 'std'
compiler exited with status 1
output is:
In file included from /test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/incl
ude/random:58,
                 from /test/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/headers/
c++200x/all.cc:122:
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc: I
n member function 'void std::linear_congruential_engine<_UIntType, __a, __c, __m
>::seed(std::seed_seq&)':
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc:12
1: error: 'log2' is not a member of 'std'
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc: I
n member function 'result_type std::independent_bits_engine<_RandomNumberEngine,
 __w, _UIntType>::operator()()':
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc:58
1: error: 'log2l' is not a member of 'std'
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc: I
n member function 'result_type std::piecewise_linear_distribution<_RealType>::op
erator()(_UniformRandomNumberGenerator&, const std::piecewise_linear_distributio
n<_RealType>::param_type&)':
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc:25
96: error: expected ',' or ';' before ')' token
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc: I
n function '_RealType std::generate_canonical(_UniformRandomNumberGenerator&)':
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc:27
65: error: 'log2l' is not a member of 'std'

FAIL: 17_intro/headers/c++200x/all.cc (test for excess errors)
...
Executing on host: /test/gnu/gcc/objdir/./gcc/g++ -shared-libgcc -B/test/gnu/gcc
/objdir/./gcc -nostdinc++ -L/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v
3/src -L/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/src/.libs -B/opt/g
nu64/gcc/gcc-4.5.0/hppa64-hp-hpux11.11/bin/ -B/opt/gnu64/gcc/gcc-4.5.0/hppa64-hp
-hpux11.11/lib/ -isystem /opt/gnu64/gcc/gcc-4.5.0/hppa64-hp-hpux11.11/include -i
system /opt/gnu64/gcc/gcc-4.5.0/hppa64-hp-hpux11.11/sys-include -g -O2 -D_GLIBCX
X_ASSERT -fmessage-length=0 -ffunction-sections -fdata-sections -g -O2 -g -O2   
-DLOCALEDIR="." -nostdinc++ -I/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++
-v3/include/hppa64-hp-hpux11.11 -I/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libst
dc++-v3/include -I/test/gnu/gcc/gcc/libstdc++-v3/libsupc++ -I/test/gnu/gcc/gcc/l
ibstdc++-v3/include/backward -I/test/gnu/gcc/gcc/libstdc++-v3/testsuite/util /te
st/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/headers/c++200x/all_multiple_incl
usion.cc   -std=gnu++0x -S  -o all_multiple_inclusion.s    (timeout = 600)
In file included from /test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/incl
ude/random:58,
                 from /test/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/headers/
c++200x/all_multiple_inclusion.cc:120:
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc: I
n member function 'void std::linear_congruential_engine<_UIntType, __a, __c, __m
>::seed(std::seed_seq&)':
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc:12
1: error: 'log2' is not a member of 'std'
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc: I
n member function 'result_type std::independent_bits_engine<_RandomNumberEngine,
 __w, _UIntType>::operator()()':
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc:58
1: error: 'log2l' is not a member of 'std'
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc: I
n member function 'result_type std::piecewise_linear_distribution<_RealType>::op
erator()(_UniformRandomNumberGenerator&, const std::piecewise_linear_distributio
n<_RealType>::param_type&)':
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc:25
96: error: expected ',' or ';' before ')' token
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc: I
n function '_RealType std::generate_canonical(_UniformRandomNumberGenerator&)':
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc:27
65: error: 'log2l' is not a member of 'std'
compiler exited with status 1
output is:
In file included from /test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/incl
ude/random:58,
                 from /test/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/headers/
c++200x/all_multiple_inclusion.cc:120:
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc: I
n member function 'void std::linear_congruential_engine<_UIntType, __a, __c, __m
>::seed(std::seed_seq&)':
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc:12
1: error: 'log2' is not a member of 'std'
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc: I
n member function 'result_type std::independent_bits_engine<_RandomNumberEngine,
 __w, _UIntType>::operator()()':
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc:58
1: error: 'log2l' is not a member of 'std'
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc: I
n member function 'result_type std::piecewise_linear_distribution<_RealType>::op
erator()(_UniformRandomNumberGenerator&, const std::piecewise_linear_distributio
n<_RealType>::param_type&)':
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc:25
96: error: expected ',' or ';' before ')' token
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc: I
n function '_RealType std::generate_canonical(_UniformRandomNumberGenerator&)':
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc:27
65: error: 'log2l' is not a member of 'std'

FAIL: 17_intro/headers/c++200x/all_multiple_inclusion.cc (test for excess errors
)
...
Executing on host: /test/gnu/gcc/objdir/./gcc/g++ -shared-libgcc -B/test/gnu/gcc
/objdir/./gcc -nostdinc++ -L/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v
3/src -L/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/src/.libs -B/opt/g
nu64/gcc/gcc-4.5.0/hppa64-hp-hpux11.11/bin/ -B/opt/gnu64/gcc/gcc-4.5.0/hppa64-hp
-hpux11.11/lib/ -isystem /opt/gnu64/gcc/gcc-4.5.0/hppa64-hp-hpux11.11/include -i
system /opt/gnu64/gcc/gcc-4.5.0/hppa64-hp-hpux11.11/sys-include -g -O2 -D_GLIBCX
X_ASSERT -fmessage-length=0 -ffunction-sections -fdata-sections -g -O2 -g -O2   
-DLOCALEDIR="." -nostdinc++ -I/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++
-v3/include/hppa64-hp-hpux11.11 -I/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libst
dc++-v3/include -I/test/gnu/gcc/gcc/libstdc++-v3/libsupc++ -I/test/gnu/gcc/gcc/l
ibstdc++-v3/include/backward -I/test/gnu/gcc/gcc/libstdc++-v3/testsuite/util /te
st/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/using_namespace_std_tr1_neg.cc   
-std=gnu++0x -S  -o using_namespace_std_tr1_neg.s    (timeout = 600)
In file included from /test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/incl
ude/random:58,
                 from /test/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/using_na
mespace_std_tr1_neg.cc:45:
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc: I
n member function 'void std::linear_congruential_engine<_UIntType, __a, __c, __m
>::seed(std::seed_seq&)':
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc:12
1: error: 'log2' is not a member of 'std'
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc: I
n member function 'result_type std::independent_bits_engine<_RandomNumberEngine,
 __w, _UIntType>::operator()()':
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc:58
1: error: 'log2l' is not a member of 'std'
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc: I
n member function 'result_type std::piecewise_linear_distribution<_RealType>::op
erator()(_UniformRandomNumberGenerator&, const std::piecewise_linear_distributio
n<_RealType>::param_type&)':
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc:25
96: error: expected ',' or ';' before ')' token
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc: I
n function '_RealType std::generate_canonical(_UniformRandomNumberGenerator&)':
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc:27
65: error: 'log2l' is not a member of 'std'
/test/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/using_namespace_std_tr1_neg.cc
: At global scope:
/test/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/using_namespace_std_tr1_neg.cc
:64: error: 'tr1' is not a namespace-name
/test/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/using_namespace_std_tr1_neg.cc
:64: error: expected namespace-name before ';' token
compiler exited with status 1
output is:
In file included from /test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/incl
ude/random:58,
                 from /test/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/using_na
mespace_std_tr1_neg.cc:45:
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc: I
n member function 'void std::linear_congruential_engine<_UIntType, __a, __c, __m
>::seed(std::seed_seq&)':
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc:12
1: error: 'log2' is not a member of 'std'
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc: I
n member function 'result_type std::independent_bits_engine<_RandomNumberEngine,
 __w, _UIntType>::operator()()':
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc:58
1: error: 'log2l' is not a member of 'std'
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc: I
n member function 'result_type std::piecewise_linear_distribution<_RealType>::op
erator()(_UniformRandomNumberGenerator&, const std::piecewise_linear_distributio
n<_RealType>::param_type&)':
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc:25
96: error: expected ',' or ';' before ')' token
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc: I
n function '_RealType std::generate_canonical(_UniformRandomNumberGenerator&)':
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/random.tcc:27
65: error: 'log2l' is not a member of 'std'
/test/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/using_namespace_std_tr1_neg.cc
: At global scope:
/test/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/using_namespace_std_tr1_neg.cc
:64: error: 'tr1' is not a namespace-name
/test/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/using_namespace_std_tr1_neg.cc
:64: error: expected namespace-name before ';' token

PASS: 17_intro/using_namespace_std_tr1_neg.cc  (test for errors, line 64)
PASS: 17_intro/using_namespace_std_tr1_neg.cc  (test for errors, line 64)
FAIL: 17_intro/using_namespace_std_tr1_neg.cc (test for excess errors)
...
Comment 1 Paolo Carlini 2009-04-05 17:10:55 UTC
See PR39644. I (think I have) just fixed the issues related to log2*, please check if that's enough for you.
Comment 2 Paolo Carlini 2009-04-07 14:45:51 UTC
Is this still an issue?
Comment 3 dave 2009-04-07 15:06:26 UTC
Subject: Re:  Trouble with new random bits

> Is this still an issue?

I think so, but I've been playing with the defines to provide stdint.h.
I'll know this evening.

Dave
Comment 4 Paolo Carlini 2009-04-07 15:08:16 UTC
Well, *cannot* be still an issue exactly in these terms, because there are no log2* functions any more in the code...
Comment 5 dave 2009-04-07 20:46:15 UTC
Subject: Re:  Trouble with new random bits

> Well, *cannot* be still an issue exactly in these terms, because there are no
> log2* functions any more in the code...

You are correct.  The log2 fails are gone.  We are left with the following:

FAIL: 26_numerics/random/knuth_b.cc execution test
FAIL: 26_numerics/random/ranlux48.cc execution test
FAIL: 26_numerics/random/ranlux48_base.cc execution test

Assertion failed: a() == 1112339016, file /test/gnu/gcc/gcc/libstdc++-v3/testsui
te/26_numerics/random/knuth_b.cc, line 37
FAIL: 26_numerics/random/knuth_b.cc execution test

Assertion failed: a() == 249142670248501ull, file /test/gnu/gcc/gcc/libstdc++-v3
/testsuite/26_numerics/random/ranlux48.cc, line 37
FAIL: 26_numerics/random/ranlux48.cc execution test

Assertion failed: a() == 61839128582725ull, file /test/gnu/gcc/gcc/libstdc++-v3/
testsuite/26_numerics/random/ranlux48_base.cc, line 37
FAIL: 26_numerics/random/ranlux48_base.cc execution test

Dave
Comment 6 Paolo Carlini 2009-04-07 20:48:48 UTC

*** This bug has been marked as a duplicate of 39629 ***