[Boost-bugs] [Boost C++ Libraries] #10922: Fails to link python-extension project when msvc target is used

Subject: [Boost-bugs] [Boost C++ Libraries] #10922: Fails to link python-extension project when msvc target is used
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-01-09 12:28:23


#10922: Fails to link python-extension project when msvc target is used
-------------------------------------------+---------------------------
 Reporter: Pavel Machyniak <machyniak@…> | Owner: vladimir_prus
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: build
  Version: Boost Development Trunk | Severity: Showstopper
 Keywords: python-extension build msvc |
-------------------------------------------+---------------------------
 For `python-extension` boost.build project, using target msvc, on link
 stage the command line is generated incorrectly and the build fails.

 Generated command line:
 {{{
 link
  /NOLOGO /INCREMENTAL:NO /DLL /NOENTRY /DEBUG /MACHINE:X86 /MANIFEST
  /subsystem:console
  /out:"bin\msvc-12.0\debug\threading-multi\mytest.pyd"
  /IMPLIB:"bin\msvc-12.0\debug\threading-multi\mytest.pdb"
  /LIBPATH:"C:\Program Files (x86)\Python34\libs"
  @"bin\msvc-12.0\debug\threading-multi\mytest.pyd.rsp"
 }}}

 Error displayed: `LINK : fatal error LNK1207: incompatible PDB format in
 'D:\Temp\test\bin\msvc-12.0\debug\threading-multi\mytest.pdb'; delete and
 rebuild`

 Note the `IMPLIB` part referencing the `.pdb` file instead of the `.lib`
 file.

 Steps to reproduce:
  - unpack the attachment
  - copy the boost lib to `boost` directory
  - copy boost.build to `boost-build` directory
  - run `boost-build\bin\b2`
  - or `boost-build\bin\b2 target=msvc-12`

 Tested with msvc 10 and 12. Standard shared library/dll project compiles
 fine.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10922>
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:17 UTC