[Boost-bugs] [Boost C++ Libraries] #4395: Intel 11.1 defines _GNU_SOURCE, breaking the get_nprocs test in thread.cpp

Subject: [Boost-bugs] [Boost C++ Libraries] #4395: Intel 11.1 defines _GNU_SOURCE, breaking the get_nprocs test in thread.cpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-06-29 21:54:47


#4395: Intel 11.1 defines _GNU_SOURCE, breaking the get_nprocs test in thread.cpp
-----------------------------------------------------+----------------------
 Reporter: Robert Lupton <rhl@…> | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: Boost 1.44.0 | Component: thread
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-----------------------------------------------------+----------------------
 In a bug related to #2053, there's code in
 `libs/thread/src/pthread/thread.cpp` that attempts to only call
 `get_nprocs` on gnu platforms that define _GNU_SOURCE (cf.
 http://lists.boost.org/Archives/boost/2010/05/166414.php)

 Unfortunately, intel 11.1 appears to define _GNU_SOURCE, but not provide
 get_nprocs:
 {{{
 $ icpc --version
 icpc (ICC) 11.1 20100401
 Copyright (C) 1985-2010 Intel Corporation. All rights reserved.

 $ icpc intelSymbols.cc
 intelSymbols.cc(2): catastrophic error: #error directive: "_GNU_SOURCE is
 defined"
   #error "_GNU_SOURCE is defined"
    ^

 compilation aborted for intelSymbols.cc (code 4)
 $ cat !$
 cat intelSymbols.cc
 #if defined(_GNU_SOURCE)
 #error "_GNU_SOURCE is defined"
 #endif
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4395>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:03 UTC