Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling the Windows distribution #2812

Closed
vicuna opened this issue Jun 27, 2001 · 3 comments
Closed

Compiling the Windows distribution #2812

vicuna opened this issue Jun 27, 2001 · 3 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Jun 27, 2001

Original bug ID: 408
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Hi,
The makefiles for windows are slightly broken.
I'm using a windows2000 system, with Visual Studio 6.0,
and the latest cygwin distribtion. I'm trying to compile
the OCaml distribution from the sources.

Following the steps in the manual I do:

  1. in config : cp s-nt.h s.h
    cp m-nt.h m.h
    cp Makefile.nt Makefile

I now go the top-level directory and do:
nmake -f Makefile.nt

After compiling the byterun system, the following lines breaks
down:
cl /nologo /Ox /MT /MT -o ocamlrun.exe prims.obj libcamlrun.lib
wsock32.lib

    if not exist ..\stdlib\caml mkdir ..\stdlib\caml
    cp mlvalues.h alloc.h misc.h callback.h fail.h custom.h

..\stdlib\caml
sed -e "/#include ./m.h/r ..\config\m.h"
-e "/#include .
/s.h/r ..\config\s.h"
-e "/#include /d" config.h > ..\stdlib\caml\config.h
sed -e "/#include .*gc.h/d" -e "/#define Alloc_small/,/^}/d"
-e "/Modify/,/^}/d" memory.h > ..\stdlib\caml\memory.h

    cp byterun\libcamlrun.lib stdlib\libcamlrun.lib

    boot\ocamlrun boot\ocamlc -I boot -I utils -I parsing 
                              -I typing -I bytecomp -I asmcomp -I

driver
-I toplevel -c utils/misc.mli
'boot\ocamlrun' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'boot\ocamlrun' : return code '0x1'
Stop.

Can you fix it?

Thanks,
Ohad.


orodeh@cs.huji.ac.il
www.cs.huji.ac.il/~orodeh

@vicuna
Copy link
Author

vicuna commented Jun 28, 2001

Comment author: administrator

Following the steps in the manual I do:

  1. in config : cp s-nt.h s.h
    cp m-nt.h m.h
    cp Makefile.nt Makefile

I now go the top-level directory and do:
nmake -f Makefile.nt

Just like for compilation under Unix, you must write "nmake -f Makefile.nt
world"
Does it solve the problem?

Jacques Garrigue

@vicuna
Copy link
Author

vicuna commented Jul 2, 2001

Comment author: administrator

The makefiles for windows are slightly broken.
I'm using a windows2000 system, with Visual Studio 6.0,
and the latest cygwin distribtion. I'm trying to compile
the OCaml distribution from the sources.

Following the steps in the manual I do:

  1. in config : cp s-nt.h s.h
    cp m-nt.h m.h
    cp Makefile.nt Makefile

I now go the top-level directory and do:
nmake -f Makefile.nt

As mentioned in the README.win32 file, you need to do

    nmake -f Makefile.nt world

to "prime the pump".

The bootstrap compilers boot\ocamlc and boot\ocamllex are from the
Unix distribution, but I think this should not cause problems.
If something breaks, you might also try to copy ocamlc and ocamllex
from the Windows binary distribution into boot\ and try again.

Hope this helps,

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Jul 2, 2001

Comment author: administrator

User didn't follow the instructions :-)

@vicuna vicuna closed this as completed Jul 2, 2001
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant