Modify

Opened 4 years ago

Closed 4 years ago

#9673 closed Bugs (fixed)

thread compilation with MingW/gcc on Windows gives errors

Reported by: Edward Diener Owned by: timblechmann
Milestone: Boost 1.56.0 Component: thread
Version: Boost Release Branch Severity: Problem
Keywords: Cc:

Description

When building the threads library with MingW/gcc on Window the following errors are seen:

"..\..\..\..\libs\thread\src\win32\thread.cpp: In static member function 'static unsigned int boost::thread::physical_concurrency()': ..\..\..\..\libs\thread\src\win32\thread.cpp:425:51: error: 'GetLogicalProcessor? Information' was not declared in this scope

GetLogicalProcessorInformation?(NULL, &size);

..\..\..\..\libs\thread\src\win32\thread.cpp:429:21: error: 'SYSTEM_LOGICAL_PROC ESSOR_INFORMATION' was not declared in this scope

std::vector<SYSTEM_LOGICAL_PROCESSOR_INFORMATION> buffer(size);

..\..\..\..\libs\thread\src\win32\thread.cpp:429:57: error: template argument 1 is invalid

std::vector<SYSTEM_LOGICAL_PROCESSOR_INFORMATION> buffer(size);

..\..\..\..\libs\thread\src\win32\thread.cpp:429:57: error: template argument 2 is invalid ..\..\..\..\libs\thread\src\win32\thread.cpp:429:65: error: invalid type in decl aration before '(' token

std::vector<SYSTEM_LOGICAL_PROCESSOR_INFORMATION> buffer(size);

..\..\..\..\libs\thread\src\win32\thread.cpp:430:52: error: request for member ' front' in 'buffer', which is of non-class type 'int'

if (GetLogicalProcessorInformation?(&buffer.front(), &size) == FALSE)

..\..\..\..\libs\thread\src\win32\thread.cpp:436:25: error: invalid types 'int[s ize_t {aka unsigned int}]' for array subscript

if (buffer[i].Relationship == RelationProcessorCore?)

..\..\..\..\libs\thread\src\win32\thread.cpp:436:43: error: 'RelationProcessorCo? re' was not declared in this scope

if (buffer[i].Relationship == RelationProcessorCore?)"

The MingW Windows library does no have the GetLogicalProcessorInformation? functionality used by the thread library.

Attachments (0)

Change History (7)

comment:1 Changed 4 years ago by viboes

Owner: changed from Anthony Williams to viboes
Status: newassigned
Summary: hread compilation with MingW/gcc on Windows gives errorsthread compilation with MingW/gcc on Windows gives errors

comment:2 Changed 4 years ago by viboes

Tim please could you take care of this issue?

comment:3 Changed 4 years ago by timblechmann

which version of mingw is this? i cannot reproduce it with mingw from mingwbuilds.

comment:4 Changed 4 years ago by viboes

Owner: changed from viboes to timblechmann
Status: assignednew

comment:5 Changed 4 years ago by viboes

Milestone: To Be DeterminedBoost 1.56.0

comment:6 Changed 4 years ago by Edward Diener

I am using the latest MingW with gcc 4.8.1. The errors occur when I try to build Boost from the top-level directory using the 'master' branch.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain timblechmann.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.