Hi, How do you build a debug version of cctbx on windows? After getting an environement working with bootstrap, I reconfigured with configure.py --build=debug and it is now failing when linking against python27_d.lib Any advice? Pascal
Dear Pascal, If you build a debug version of the CCTBX (with explicit /DDEBUG flag for the compiler) you may need to build a debug version of python from sources which will produce _d.lib and _d.pyd files. This is a lot of work. Alternatively it might be easier to build the CCTBX from sources without optimisation flags and just use the python that comes with a CCTBX installation. Rob On 10/07/2018 11:01, Pascal wrote:
Hi,
How do you build a debug version of cctbx on windows?
After getting an environement working with bootstrap, I reconfigured with configure.py --build=debug and it is now failing when linking against python27_d.lib
Any advice?
Pascal
_______________________________________________ cctbxbb mailing list [email protected] http://phenix-online.org/mailman/listinfo/cctbxbb
-- Robert Oeffner, Ph.D. Research Associate, The Read Group Department of Haematology, Cambridge Institute for Medical Research University of Cambridge Cambridge Biomedical Campus Wellcome Trust/MRC Building Hills Road Cambridge CB2 0XY www.cimr.cam.ac.uk/investigators/read/index.html tel: +44(0)1223 763234
Hi Pascal,
On Tue, Jul 10, 2018 at 11:01 AM, Pascal
How do you build a debug version of cctbx on windows?
After getting an environement working with bootstrap, I reconfigured with configure.py --build=debug and it is now failing when linking against python27_d.lib
A full debug build does probably require a debug build of python, because of windows symbols naming and linking rules. In assisting my own debugging I have successfully built a version of cctbx/dials with debug symbols and no optimisation, but linking to the non-debug runtime libraries. A warning though that without knowing how well you know windows building this isn't necessarily a simple process: These aren't optimised for ease-of-use and some steps might be vestigial/break other configurations, just was the state of things when I managed to get my debugging working. I needed to make several custom changes to the SConscripts which I have committed in: https://github.com/ndevenish/cctbx_project/commit/a512ac81ec4bb3729317247bef.... Key amongst these was the removal of "harmless" flags that forced the build into apparently obsolete symbol packaging inside object files; With these changes I successfully built and debugged using Windows' standard pdb symbol files. Additionally I did need to pass custom environment flags when setting up the build directory (manually from scratch, not through bootstrap.py build.). Inside the destination empty build directory after everything else was bootstrapped I had a batch file (effectively, the whole process was run via jenkins for reproducibility) with the following contents: set CXXFLAGS=/DEBUG /Zi set LDFLAGS=/INCREMENTAL:NO /DEBUG %comspec% /c ..\\base\\bin\\Python\\python ../modules/cctbx_project/libtbx/configure.py --build=debug --use_environment_flags <module list> %comspec% /c bin\\libtbx.scons I hope these steps somewhat help nudge you in the correct direction. Nick Devenish
participants (3)
-
Nicholas Devenish
-
Pascal
-
Robert Oeffner