User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 Currently code doesn't support WinXP for AMD64. Because Pointer structure is jsword. So, since jsword is 32bit value, AV occurs on everywhere. Reproducible: Always Steps to Reproduce: N/A Actual Results: Cannot build and don't work Expected Results: Can build and work.
Comment on attachment 135808 [details] [diff] [review] mozilla/js diff This is all wrong. First, jsuword and JSUptrdiff must be the same size for things to work correctly. Don't go hacking in code to change type names at each point of use -- change the type definition if it's wrong! Now, without hacking up a totally bogus patch that changes too many lines, can you say why jsword/jsuword are only 32 bits on your target compiler/CPU system? Hint: jstypes.h requires, as does NSPR's prtypes.h on which it was based, that a long is big enough to hold a pointer on all target platforms. If you're using a compilation type model where long is 32 bits but pointer is 64 bits (an LLP64 model), you are using the wrong model. Mozilla does not support that model, and never will. /be
See http://www.amd.com/us-en/assets/content_type/DownloadableAssets/AMD_TechEdEMEA2003_Final.pdf#22. "Types int and long remain 32 bits." So there is no option of that long is 64bits.
Created attachment 135935 [details] [diff] [review] mozilla/js diff at 2003-11-20
jsword/jsuword is the JS engine's pointer type. The forked prtypes.h named jstypes.h muddies the waters a bit, and adds the JSPtrdiff/JSUptrdiff types, but they could be unified. I still think any LLP64 model is going to require lots of changes, and not just to NSPR. Other parts of Mozilla assume a long is big enough to hold a pointer. Why can't you use an LP64 model? /be
Sorry, I was replying based on bugmail. That pdf looks like a slideshow. How early are we in the evolution of the compiler 'port? It's extremely naive to claim that LLP64 makes all 32-bit code work, precisely because lots of code assumes you can fit a pointer in either an int (very old code, not commonly assumed these days) or a long (much more common an assumption). Someone should talk to the AMD people, or whoever the people are responsible for this port. LLP64 is not a compilation model that we want to support. The patch looks ok, but before I review it I'd like to get this LLP64 issue sorted out with more people. Cc'ing them. /be
Microsfot C/C++ complier for Windows 64 bit has LLP64 model only. But about js engine, it works fine by my fix. Now I am submitting many LLP64 issues for WinXP AMD64. (mozilla/nsprpub, mozilla/db, and mozilla/content and etc)
Making this block the other bugs on the topic until we decide whether we want to support LLP64.
wtc: attachment 135935 [details] [diff] [review] changes the meaning of JSWord/JSUword which are supposed to be consistent with PRWord/PRuword (see also bug 229722 where the same mess is present)
Is there a mailing list or forum for the Windows-64 port? My system arrives Thursday and I have the Beta kit ready to install. I CCd myself to all the AMD 64 bugs that I could find. It would be nice if there were an area for Windows-64 builders could chat on progress to getting a native port working.
I put together a little page with porting resources on it at: http://www.geocities.com/mmoy/mozilla-windows-xp-64.html I have also started a topic at pryan's forum if anyone wants to discuss building issues on Windows-64 in a forum-style rather than in separate bugs at http://188.8.131.52/mozilla/forums/viewtopic.php?t=39
Michael, testing binaries and buildtools are here. http://oldskool.jp/mozilla64/ http://raven2000.hp.infoseek.co.jp/
(In reply to comment #13) > Michael, testing binaries and buildtools are here. > > http://oldskool.jp/mozilla64/ > http://raven2000.hp.infoseek.co.jp/ Thanks for the info. Someone else gave me the first link. I didn't realize that there were already builds on Windows-XP 64-bit edition. Is this project more or less done by one person or a group of people or people working independently? My machine is in Indiana and should arrive tomorrow. Looking for some directions on setting up dual-boot and will probably look at the Microsoft Newsgroup.
Created attachment 201707 [details] [diff] [review] dos2unix plus vertical space cleanup and merge conflict fixing Thanks, r=me and I'll check this into the trunk now. Bob, this should be linked to the JS1.6 release bug, for landing on the minibranch. Thanks, /be
Fixed on trunk. /be
Comment on attachment 201707 [details] [diff] [review] dos2unix plus vertical space cleanup and merge conflict fixing Brendan: In jscpucfg.h, we have: >-#if defined(_WIN32) || defined(XP_OS2) || defined(WINCE) >+#if defined(_WIN64) >+ >+#if defined(_AMD64_) I found that _AMD64_ is not a compiler predefined macro. It is defined either by an application's build system or by <windows.h>. So it is better to change the last line to #if defined(_M_X64) || defined(_M_AMD64) || defined(_AMD64_) where _M_X64 is the predefined macro in Visual C++ 2005 and _M_AMD64 is the predefined macro in the compiler included with Microsoft Platform SDK.
Wan-Teh: thanks! Updated per your comment. /be
Er, muffed a merge conflict resolution. Fixed now, sorry. /be