Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000237OCaml~DO NOT USE (was: OCaml general)public2000-11-28 20:162000-12-12 10:22
Assigned To 
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000237: doesn't install .opt, No bytecode file specified, ...
DescriptionBelow are 6 sections, you can see that 'No bytecode file specified' occurs
several times. Probably I have misconfigured the CAMLLIB, how should it look

Lex/yacc works now.


1. I compiled this way (standing in the src/ocaml-dir)

ocaml$ ./configure
ocaml$ make world
ocaml$ make bootstrap >& log.bootstrap # in csh
ocaml$ make bootstrap >& log.bootstrap2 # in csh
ocaml$ make opt
ocaml$ cd tools
tools$ make all
make: Nothing to be done for `all'.
tools$ cd ..
ocaml$ make install

2. It seems to have forgotten to install the .opt-programs, their date are
much orlder
  drwxrwxrwx 2 mattias 5 0 Nov 27 17:25 .
  drwxrwxrwx 2 mattias 5 0 Nov 23 17:49 ..
  -rw-rw-rw- 1 mattias 5 208896 May 19 2000 glut32.dll
  -rw-rw-rw- 1 mattias 5 93 Nov 28 19:32 labltk
  -rwxrwxrwx 1 mattias 5 1088620 Nov 27 17:24 mytop.exe
  -rwxrwxrwx 1 mattias 5 826328 Nov 28 19:32 ocaml.exe
  -rwxrwxrwx 1 mattias 5 1064412 Nov 28 19:32 ocamlbrowser.exe
  -rwxrwxrwx 1 mattias 5 775462 Nov 28 19:32 ocamlc.exe
  -rwxrwxrwx 1 mattias 5 1365091 Nov 26 16:50 ocamlc.opt.exe
  -rwxrwxrwx 1 mattias 5 50871 Nov 28 19:32 ocamlcp.exe
  -rwxrwxrwx 1 mattias 5 587091 Nov 28 19:33 ocamldebug.exe
  -rwxrwxrwx 1 mattias 5 246397 Nov 28 19:32 ocamldep.exe
  -rwxrwxrwx 1 mattias 5 93371 Nov 28 19:32 ocamllex.exe
  -rwxrwxrwx 1 mattias 5 254825 Nov 26 16:50 ocamllex.opt.exe
  -rw-rw-rw- 1 mattias 5 1247 Nov 28 19:32 ocamlmktop
  -rwxrwxrwx 1 mattias 5 971901 Nov 28 19:33 ocamlopt.exe
  -rwxrwxrwx 1 mattias 5 1671493 Nov 26 16:50 ocamlopt.opt.exe
  -rwxrwxrwx 1 mattias 5 241124 Nov 28 19:32 ocamlprof.exe
  -rwxrwxrwx 1 mattias 5 128187 Nov 28 19:32 ocamlrun.exe
  -rwxrwxrwx 1 mattias 5 74875 Nov 28 19:32 ocamlyacc.exe

3. Tried another CAMLLIB-setting
SET PATH=%PATH%;c:\usr\local\bin
SET CAMLLIB=/c/usr/local/lib/ocaml

(the last time I used /usr/local/lib/ocaml)
(I have verified these settings in the shell)

4. Still problems and gets error 'No bytecode file specified.' when I start
the program under bash using ./all, but not using all.

(see the following transcript, as you see I even tried to change the name of
the executable so that I am sure that this is the right 'all'. I use
'bash -i' as a shell under emacs, but I have commented out the bash-shell
code from .emacs, so that I use an normal cmd.exe, and camldebug still fails
with 'Unknown option -emacs. Inferior CDB exited abnormally with code 2')
M-x run-caml with 'ocaml' works though.

extract$ make clean
rm -f parser.mli compare difference raytrace
rm -f *.cmo *.cmi *.cmx *.o
extract$ make all
ocamlc -g -c dir.mli
ocamlc -g -c
ocamlc -g -c column.mli
ocamlc -g -c
ocamlc -g -c regexp.mli
ocamlc -g -c
ocamlc -g -c extract.mli
ocamlc -g -c
ocamlc -g -c source.mli
ocamlc -g -c
ocamlc -g -c
ocamlc -g -c column_util.mli
ocamlc -g -c
ocamlc -g -c
ocamlc -g -c
ocamlc -g -o all -custom str.cma unix.cma dir.cmo column.cmo regexp.cmo
extract.cmo source.cmo seconds_past_2000.cmo column_util.cmo column_calc.cmo
extract$ ./all
No bytecode file specified.
extract$ cmd
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

'.' is not recognized as an internal or external command,
operable program or batch file.


Run time = 1
c:\data\ocaml\stocks\extract>bash -i
bash -i
extract$ all

Run time = 1extract$ ./all
No bytecode file specified.
extract$ make all2
ocamlc -g -o all2 -custom str.cma unix.cma dir.cmo column.cmo regexp.cmo
extract.cmo source.cmo seconds_past_2000.cmo column_util.cmo column_calc.cmo
extract$ ./all2
No bytecode file specified.
extract$ all2

Run time = 1extract$

5. ocamlmktop under cmd.exe hanged itself
C:\usr\local\bin>mv ocamlmktop ocamlmktop.exe
mv ocamlmktop ocamlmktop.exe

C:\usr\local\bin>ocamlmktop -o mytop str.cma unix.cma bigarray.cma
ocamlmktop -o mytop str.cma unix.cma bigarray.cma

and after this nothing happened. Tried again under bash, and everything went
data$ cd /usr/local/bin/
bin$ mv ocamlmktop.exe ocamlmktop
bin$ ocamlmktop -o mytop str.cma unix.cma bigarray.cma

and then mytop works

bin$ ocamlmktop -o mytop2 str.cma unix.cma bigarray.cma
bin$ mytop2
        Objective Caml version 3.00+19 (2000-11-20)

# #quit;;

However, if I do M-x run-caml with 'mytop' instead of 'ocaml' I get

No bytecode file specified.

Process inferior-caml exited abnormally with code 2

6. The debugger is still unstable

extract$ ocamldebug.exe all.exe
    Objective Caml Debugger version 3.00+19 (2000-11-20)

(ocd) step 10000
Loading program... done.
Time : 10000 - pc : 45912 - module Source
102 if Regexp.regexp_has_more regexp<|a|> then
(ocd) back 1000
      0 [main] all 780 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
  57145 [main] all 780 stackdump: Dumping stack trace to all.exe.stackdump

7. Still no fixpoint (compiled twice)
make[2]: Leaving directory `/c/data/ocaml/src/ocaml/debugger'
make[1]: Leaving directory `/c/data/ocaml/src/ocaml'
make compare
make[1]: Entering directory `/c/data/ocaml/src/ocaml'
boot/ocamlc ocamlc differ: char 137, line 2
Fixpoint not reached, try one more bootstrapping cycle.
make[1]: Leaving directory `/c/data/ocaml/src/ocaml'

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
administrator (administrator)
2000-12-12 10:22

.opt compilers: normal behavior, see installation instructions.
"No bytecode specified": as explained previously to this user, Windows likes its
executables to have the .exe extension.

- Issue History
Date Modified Username Field Change
2005-11-18 10:13 administrator New Issue
2017-02-23 16:36 doligez Category OCaml general => -OCaml general
2017-03-03 17:55 doligez Category -OCaml general => -(deprecated) general
2017-03-03 18:01 doligez Category -(deprecated) general => ~deprecated (was: OCaml general)
2017-03-06 17:04 doligez Category ~deprecated (was: OCaml general) => ~DO NOT USE (was: OCaml general)

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker