------- Comment #3 from paul dot isaacson at earthlink dot net 2008-09-12 20:41 ------- Subject: RE: parallel/base.h log2 conflicts with math.h
Unfortunately I don't have a simple test case, but it's not too hard to reproduce: Download stxxl.1.2.1 and attempt to make it with pmode enabled. The gcc compiler will show the conflicting log2 usage while compiling various modules. http://sourceforge.net/project/showfiles.php?group_id=131632&package_id=1444 07&release_id=619867 My make.settings.local (see the install instructions) STXXL_ROOT = $(HOME)/stxxl-1.2.1 COMPILER_GCC =g++ OPT =-O3 -march=k8 -mtune=k8 USE_BOOST =yes BOOST_ROOT =/usr/local/include/boost PTHREAD_FLAG = USE_PMODE =yes Issue make library_g++_pmode and you will see the compilation errors. I've already modified my local copies of the STL pmode parallel/* headers and STXXL files that caused problems building STXXL, so I would have to revert to the original versions and eliminate the STXXL dependencies in my project to see if the log2 statements in various pmode for-loops trigger the same error. If you need me to do this, let me know and I'll try to get you a minimum test case. Cheers, Paul -----Original Message----- From: singler at gcc dot gnu dot org [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2008 1:46 AM To: [EMAIL PROTECTED] Subject: [Bug libstdc++/37470] parallel/base.h log2 conflicts with math.h ------- Comment #2 from singler at gcc dot gnu dot org 2008-09-12 08:45 ------- Clearly, this is a potential conflict, and the solution is pretty obvious. However, I am unable to reproduce it on x86_64-unknown-linux-gnu, for a definite test case. Do you have a simple testcase that triggers the bug (on your platform)? Do you use the parallel mode by default (-D_GLIBCXX_PARALLEL) or selectively? Do you have 'using namespace ...' statements? <math.h> or <cmath>? <algorithm.h> or <algorithm>? <numeric>? <tr1/...>? I might have some mental block ;-) -- singler at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |singler at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2008-09-10 22:46:43 |2008-09-12 08:45:35 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37470 ------- You are receiving this mail because: ------- You reported the bug, or are watching the reporter. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37470