Opened 11 years ago

Closed 10 years ago

#6552 closed Bugs (fixed)

bjam build fails when using 'vc10' toolset

Reported by: Edward Zhu <edward.zr.zhu@…> Owned by:
Milestone: To Be Determined Component: Building Boost
Version: Boost Development Trunk Severity: Problem
Keywords: bjam, vc10 Cc:

Description

When running the tools/build/v2/bootstrap.bat on Windows, the build fails. View the bootstrap.log file, and find the following errors.

error C2016: C requires that a struct or union has at least one member

error C2061: syntax error : identifier 'pid_t'

error C2059: syntax error : '}'

For more information, please see the attachment file.

Root Cause of this issue

Microsoft VC 10.0 does not have pid_t type by default. Suggest modifying the bjam.h. In the #ifdef NT segment, insert the following code.

 typedef int pid_t;

Environment OS: Windows 7 SP1 x64 Boost: bjam.h (Rev: #76862)

Attachments (1)

bootstrap.log (14.0 KB ) - added by Edward Zhu <edward.zr.zhu@…> 11 years ago.

Download all attachments as: .zip

Change History (2)

by Edward Zhu <edward.zr.zhu@…>, 11 years ago

Attachment: bootstrap.log added

comment:1 by Steven Watanabe, 10 years ago

Resolution: fixed
Status: newclosed

The problematic code was removed a while ago.

Note: See TracTickets for help on using tickets.