Closed Bug 62773 Opened 23 years ago Closed 17 years ago

Make Mozilla buildable with Borland free compiler


(SeaMonkey :: Build Config, enhancement, P4)

Windows NT


(Not tracked)



(Reporter: hjtoi-bugzilla, Unassigned)



(Keywords: helpwanted)


(2 files)

This RFE bug is here to help interested people in gathering all the knowledge in
one place so that one day we could build Mozilla on Windows with free tools.

You can download the Free Borland C++ Builder 5.5 Compiler (command line tool)
and other useful tools from here (requires free registration):

Microsoft also offers its nmake 1.5 for free, and you can download it from here:

Feel free to list other useful tools & tips, and be welcome to attach patches.
Assignee: cls → leaf
Borland also offers the TurboDebugger for free (same place as the compiler).

At this time there are 2 patches for the compiler:

There is some additional documentation about the compiler switches (even some
that are not documented at Borland docs) at:

They also show how to use the 5.5 compiler with older IDE if you happen to have

There are some free IDEs available but at the moment I do not know anything
about them.
these patches don't work perfectly and I probably need to describe my build env 
in order for people to even try to use them.

These patches are not for review and should only be used as a starting point.

nsprpub still needs a bit of work [convincing bcc to compile .c files as C 

 -3    * 80386 Instructions
 -4      80486 Instructions
 -5      Pentium Instructions
you'll need to build w/ at least -4 [probably -5]
CC Add
It would be really nice! might be a useful reference.
See also bug 59195.
I can't seem to register... "Internal Server Error" or some such.
I'll try applying the patches and seeing if things break for the defacto current
standard development toolset. CC'ing larry for the nspr changes.
there's one more thing that i need to do for nsprpub which has to do w/ _ 
prefixing, so the nsprpub is not actually reviewable.  I think I came across 
the solution recently but I don't remember it offhand.
leaf (and others): bug 59195 is about compiling JS with Borland & MW CodeWarrior
on Windows. Someone has actually made this, although the makefiles were done
with the Borland IDE (which is not free). Does JS use NSPR? If so, we should
look at those files as well. There are links to zip packages that compile with
bcc in that bug. There is also good discussion what is different in regard to to
C/C++ language in that compiler (for example, the binding order of some
operators is different).
Blocks: 65928
What about gcc and gmake? AFAIK, they work on Windows, too.
From  :

"Microsoft Visual C++ version 5.0 or later (make sure you have set up the
compiler using the vcvars32.bat script that came with it)"

This is why this bug was filed in the first place.
gcc and gmake do work, running on a layer that makes the builds hideously slow. 
If we can make it work with another free compiler that isn't so slow, we *might* 
have a case for asking all the windows programmers to give a new development 
environment a shot.
Priority: P3 → P4
Target Milestone: --- → Future
I think building Mozilla in Cygwin (with -mno-cygwin per your comment, leaf) 
would be very, very cool.

I had to wait for the better part of a week for a copy of VC++ so I could just 
build the lizard.
Keywords: helpwanted
microsoft doesn't provide a standalone nmake for download anymore (i knew it
wasn't going to last). So, we have to go on the assumption that we are stuck
with either insinuating a windows build into the unix build system, or that we
have to retool all the files to be compatible with both nmake and
borland's make (something i find highly unlikely).
:-( was the license on microsoft's nmake good enough for redistribution? i
wonder if a make from or would be usable?
Borland make has nmake compatibility mode, but it does not work very well. I
would think it would be nearly trivial to change it to support some of the nmake
things we have in Mozilla tree. Now that nmake is not publicly available,
Borland might be more inclined to make the changes.
The download link for Nmake is still working for me
fwiw the nmake I think we're talking about is
from mskb: Q132084
i suppose i should run depends.exe to find out what it requires...
bug cleanup - all leaf's bugzilla bugs should be assigned to
(not, now and any future bugs created.

this should be a one time change, apologies for the spam.
Assignee: leaf → leaf
Assignee: leaf → cmp
Product: Browser → Seamonkey
Mass reassign of open bugs for to build@mozilla-org.bugs.
Assignee: chase → build
Resolving WONTFIX, due to no real activity since 2001.

Re-open (and assign to either yourself or if you disagree.
Closed: 17 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.