[DOCS-5733] Comment on: "about/contributors/tutorial/build-mongodb-from-source.txt" Created: 27/Jun/15  Updated: 03/Nov/17  Resolved: 29/Jun/15

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Mark Benvenuto
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS:- Windows 8.1

Location: https://www.mongodb.org/about/contributors/tutorial/build-mongodb-from-source/
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36
Referrer: https://www.google.co.in/
Screen Resolution: 1366 x 768
repo: mongodb-www-about
source: contributors/tutorial/build-mongodb-from-source


Participants:
Days since reply: 7 years, 29 weeks ago

 Description   

I am getting the following error while building mongodb source code with sons
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(557) :
fatal error C1189: #error : You cannot use 32-bit time_t (_USE_32BIT_TIME_T) wi
th _WIN64
scons: *** [build\win32\normal\third_party\v8\src\ia32\assembler-ia32.obj] Error
2
scons: building terminated because of errors.



 Comments   
Comment by Emily Hall [ 27/Jul/16 ]

Closed for housekeeping on 7/27/2016 by Emily Hall.
If you require additional support, please open a new ticket for prioritization.
Thanks,
Emily

Comment by Kartik Goyal [ 29/Jun/15 ]

ThankYou Guys, for your support.

One more thing to ask. I want to debug the mongoDb source code but unable to that. I already build the code in debug mode and I am using Visual Studio 2013 IDE. Could you provide me the procedure to do the same?

Thanks in advance.

Comment by Kay Kim (Inactive) [ 29/Jun/15 ]

emailed reporter with relevant section from the page

Finally, to build MongoDB for Windows, you will need to specify whether SCons will target 32-bit or 64-bit. SCons will target 32-bit builds by default. For 64-bit builds, run the following command:

scons --64

Comment by Mark Benvenuto [ 29/Jun/15 ]

To fix the build, you must specify either --32 or --64. In this case, I believe it is --64.

https://www.mongodb.org/about/contributors/tutorial/build-mongodb-from-source/#windows-specific-instructions

Generated at Thu Feb 08 07:50:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.