1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682
|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Compilers</title>
<link rel="stylesheet" href="../math.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../index.html" title="Math Toolkit 4.2.1">
<link rel="up" href="../overview.html" title="Chapter 1. Overview">
<link rel="prev" href="error_handling.html" title="Error Handling">
<link rel="next" href="config_macros.html" title="Configuration Macros">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td>
<td align="center"><a href="../../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="error_handling.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../overview.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="config_macros.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="math_toolkit.compilers_overview"></a><a class="link" href="compilers_overview.html" title="Compilers">Compilers</a>
</h2></div></div></div>
<p>
This section contains some information about how various compilers work with
this library. It is not comprehensive and updated experiences are always welcome.
Some effort has been made to suppress unhelpful warnings but it is difficult
to achieve this on all systems.
</p>
<div class="table">
<a name="math_toolkit.compilers_overview.supported_tested_compilers"></a><p class="title"><b>Table 1.9. Supported/Tested Compilers</b></p>
<div class="table-contents"><table class="table" summary="Supported/Tested Compilers">
<colgroup>
<col>
<col>
<col>
<col>
</colgroup>
<thead><tr>
<th>
<p>
Platform
</p>
</th>
<th>
<p>
Compiler
</p>
</th>
<th>
<p>
Has long double support
</p>
</th>
<th>
<p>
Notes
</p>
</th>
</tr></thead>
<tbody>
<tr>
<td>
<p>
Windows
</p>
</td>
<td>
<p>
MSVC 7.1 and later
</p>
</td>
<td>
<p>
Yes
</p>
</td>
<td>
<p>
All tests OK.
</p>
<p>
We aim to keep our headers warning free at level 4 with this compiler.
</p>
</td>
</tr>
<tr>
<td>
<p>
Windows
</p>
</td>
<td>
<p>
Intel 8.1 and later
</p>
</td>
<td>
<p>
Yes
</p>
</td>
<td>
<p>
All tests OK.
</p>
<p>
We aim to keep our headers warning free at level 4 with this compiler.
However, The tests cases tend to generate a lot of warnings relating
to numeric underflow of the test data: these are harmless.
</p>
</td>
</tr>
<tr>
<td>
<p>
Windows
</p>
</td>
<td>
<p>
GNU Mingw32 C++
</p>
</td>
<td>
<p>
Yes
</p>
</td>
<td>
<p>
All tests OK.
</p>
<p>
We aim to keep our headers warning free with -Wall with this compiler.
</p>
</td>
</tr>
<tr>
<td>
<p>
Windows
</p>
</td>
<td>
<p>
GNU Cygwin C++
</p>
</td>
<td>
<p>
No
</p>
</td>
<td>
<p>
All tests OK.
</p>
<p>
We aim to keep our headers warning free with -Wall with this compiler.
</p>
<p>
Long double support has been disabled because there are no native
long double C std library functions available.
</p>
</td>
</tr>
<tr>
<td>
<p>
Windows
</p>
</td>
<td>
<p>
Borland C++ 5.8.2 (Developer studio 2006)
</p>
</td>
<td>
<p>
No
</p>
</td>
<td>
<p>
We have only partial compatibility with this compiler:
</p>
<p>
Long double support has been disabled because the native long double
C standard library functions really only forward to the double versions.
This can result in unpredictable behaviour when using the long double
overloads: for example <code class="computeroutput"><span class="identifier">sqrtl</span></code>
applied to a finite value, can result in an infinite result.
</p>
<p>
Some functions still fail to compile, there are no known workarounds
at present.
</p>
</td>
</tr>
<tr>
<td>
<p>
Windows 7/Netbeans 7.2
</p>
</td>
<td>
<p>
Clang 3.1
</p>
</td>
<td>
<p>
Yes
</p>
</td>
<td>
<p>
Spot examples OK. Expect all tests to compile and run OK.
</p>
</td>
</tr>
<tr>
<td>
<p>
Linux
</p>
</td>
<td>
<p>
GNU C++ 3.4 and later
</p>
</td>
<td>
<p>
Yes
</p>
</td>
<td>
<p>
All tests OK.
</p>
<p>
We aim to keep our headers warning free with -Wall with this compiler.
</p>
</td>
</tr>
<tr>
<td>
<p>
Linux
</p>
</td>
<td>
<p>
Clang 3.2
</p>
</td>
<td>
<p>
Yes
</p>
</td>
<td>
<p>
All tests OK.
</p>
</td>
</tr>
<tr>
<td>
<p>
Linux
</p>
</td>
<td>
<p>
Intel C++ 10.0 and later
</p>
</td>
<td>
<p>
Yes
</p>
</td>
<td>
<p>
All tests OK.
</p>
<p>
We aim to keep our headers warning free with -Wall with this compiler.
However, The tests cases tend to generate a lot of warnings relating
to numeric underflow of the test data: these are harmless.
</p>
</td>
</tr>
<tr>
<td>
<p>
Linux
</p>
</td>
<td>
<p>
Intel C++ 8.1 and 9.1
</p>
</td>
<td>
<p>
No
</p>
</td>
<td>
<p>
All tests OK.
</p>
<p>
Long double support has been disabled with these compiler releases
because calling the standard library long double math functions can
result in a segfault. The issue is Linux distribution and glibc version
specific and is Intel bug report #409291. Fully up to date releases
of Intel 9.1 (post version l_cc_c_9.1.046) shouldn't have this problem.
If you need long double support with this compiler, then comment
out the define of BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS at line
55 of <a href="../../../../../boost/math/tools/config.hpp" target="_top">boost/math/tools/config.hpp</a>.
</p>
<p>
We aim to keep our headers warning free with -Wall with this compiler.
However, The tests cases tend to generate a lot of warnings relating
to numeric underflow of the test data: these are harmless.
</p>
</td>
</tr>
<tr>
<td>
<p>
Linux
</p>
</td>
<td>
<p>
QLogic PathScale 3.0
</p>
</td>
<td>
<p>
Yes
</p>
</td>
<td>
<p>
Some tests involving conceptual checks fail to build, otherwise there
appear to be no issues.
</p>
</td>
</tr>
<tr>
<td>
<p>
Linux
</p>
</td>
<td>
<p>
Sun Studio 12
</p>
</td>
<td>
<p>
Yes
</p>
</td>
<td>
<p>
Some tests involving function overload resolution fail to build,
these issues should be rarely encountered in practice.
</p>
</td>
</tr>
<tr>
<td>
<p>
Solaris
</p>
</td>
<td>
<p>
Sun Studio 12
</p>
</td>
<td>
<p>
Yes
</p>
</td>
<td>
<p>
Some tests involving function overload resolution fail to build,
these issues should be rarely encountered in practice.
</p>
</td>
</tr>
<tr>
<td>
<p>
Solaris
</p>
</td>
<td>
<p>
GNU C++ 4.x
</p>
</td>
<td>
<p>
Yes
</p>
</td>
<td>
<p>
All tests OK.
</p>
<p>
We aim to keep our headers warning free with -Wall with this compiler.
</p>
</td>
</tr>
<tr>
<td>
<p>
HP Tru64
</p>
</td>
<td>
<p>
Compaq C++ 7.1
</p>
</td>
<td>
<p>
Yes
</p>
</td>
<td>
<p>
All tests OK.
</p>
</td>
</tr>
<tr>
<td>
<p>
HP-UX Itanium
</p>
</td>
<td>
<p>
HP aCC 6.x
</p>
</td>
<td>
<p>
Yes
</p>
</td>
<td>
<p>
All tests OK.
</p>
<p>
Unfortunately this compiler emits quite a few warnings from libraries
upon which we depend (TR1, Array etc).
</p>
</td>
</tr>
<tr>
<td>
<p>
HP-UX PA-RISC
</p>
</td>
<td>
<p>
GNU C++ 3.4
</p>
</td>
<td>
<p>
No
</p>
</td>
<td>
<p>
All tests OK.
</p>
</td>
</tr>
<tr>
<td>
<p>
Apple Mac OS X, Intel
</p>
</td>
<td>
<p>
Darwin/GNU C++ 4.x
</p>
</td>
<td>
<p>
Yes
</p>
</td>
<td>
<p>
All tests OK.
</p>
</td>
</tr>
<tr>
<td>
<p>
Apple Mac OS X, PowerPC
</p>
</td>
<td>
<p>
Darwin/GNU C++ 4.x
</p>
</td>
<td>
<p>
No
</p>
</td>
<td>
<p>
All tests OK.
</p>
<p>
Long double support has been disabled on this platform due to the
rather strange nature of Darwin's 106-bit long double implementation.
It should be possible to make this work if someone is prepared to
offer assistance.
</p>
</td>
</tr>
<tr>
<td>
<p>
Apple Mac OS X,
</p>
</td>
<td>
<p>
Clang 3.2
</p>
</td>
<td>
<p>
Yes
</p>
</td>
<td>
<p>
All tests expected to be OK.
</p>
</td>
</tr>
<tr>
<td>
<p>
IBM AIX
</p>
</td>
<td>
<p>
IBM xlc 5.3
</p>
</td>
<td>
<p>
Yes
</p>
</td>
<td>
<p>
All tests pass except for our fpclassify tests which fail due to
a bug in <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">numeric_limits</span></code>, the bug effects
the test code, not fpclassify itself. The IBM compiler group are
aware of the problem.
</p>
</td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break"><div class="table">
<a name="math_toolkit.compilers_overview.unsupported_compilers"></a><p class="title"><b>Table 1.10. Unsupported Compilers</b></p>
<div class="table-contents"><table class="table" summary="Unsupported Compilers">
<colgroup>
<col>
<col>
</colgroup>
<thead><tr>
<th>
<p>
Platform
</p>
</th>
<th>
<p>
Compiler
</p>
</th>
</tr></thead>
<tbody>
<tr>
<td>
<p>
Windows
</p>
</td>
<td>
<p>
Borland C++ 5.9.2 (Borland Developer Studio 2007)
</p>
</td>
</tr>
<tr>
<td>
<p>
Windows
</p>
</td>
<td>
<p>
MSVC 6 and 7
</p>
</td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break"><p>
If your compiler or platform is not listed above, please try running the regression
tests: cd into boost-root/libs/math/test and do a:
</p>
<pre class="programlisting"><span class="identifier">bjam</span> <span class="identifier">mytoolset</span>
</pre>
<p>
where "mytoolset" is the name of the <a href="http://www.boost.org/doc/html/bbv2.html" target="_top">Boost.Build</a>
toolset used for your compiler. The chances are that <span class="bold"><strong>many
of the accuracy tests will fail at this stage</strong></span> - don't panic - the
default acceptable error tolerances are quite tight, especially for long double
types with an extended exponent range (these cause more extreme test cases
to be executed for some functions). You will need to cast an eye over the output
from the failing tests and make a judgement as to whether the error rates are
acceptable or not.
</p>
</div>
<div class="copyright-footer">Copyright © 2006-2021 Nikhar Agrawal, Anton Bikineev, Matthew Borland,
Paul A. Bristow, Marco Guazzone, Christopher Kormanyos, Hubert Holin, Bruno
Lalande, John Maddock, Evan Miller, Jeremy Murphy, Matthew Pulver, Johan Råde,
Gautam Sewani, Benjamin Sobotta, Nicholas Thompson, Thijs van den Berg, Daryle
Walker and Xiaogang Zhang<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="error_handling.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../overview.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="config_macros.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
|