You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 237 Reporter: administrator Status: closed Resolution: not a bug Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
Below are 6 sections, you can see that 'No bytecode file specified' occurs
several times. Probably I have misconfigured the CAMLLIB, how should it look
like?
Lex/yacc works now.
/mattias
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
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
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)
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.
and after this nothing happened. Tried again under bash, and everything went
well
data$ cd /usr/local/bin/
bin$ mv ocamlmktop.exe ocamlmktop
bin$ ocamlmktop -o mytop str.cma unix.cma bigarray.cma
bin$
.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.
Original bug ID: 237
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Below are 6 sections, you can see that 'No bytecode file specified' occurs
several times. Probably I have misconfigured the CAMLLIB, how should it look
like?
Lex/yacc works now.
/mattias
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
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
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)
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 lexer.ml parser.mli parser.ml compare difference raytrace
rm -f *.cmo *.cmi *.cmx *.o
extract$ make all
ocamlc -g -c dir.mli
ocamlc -g -c dir.ml
ocamlc -g -c column.mli
ocamlc -g -c column.ml
ocamlc -g -c regexp.mli
ocamlc -g -c regexp.ml
ocamlc -g -c extract.mli
ocamlc -g -c extract.ml
ocamlc -g -c source.mli
ocamlc -g -c source.ml
ocamlc -g -c seconds_past_2000.ml
ocamlc -g -c column_util.mli
ocamlc -g -c column_util.ml
ocamlc -g -c column_calc.ml
ocamlc -g -c main.ml
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
main.cmo
extract$ ./all
No bytecode file specified.
extract$ cmd
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
c:\data\ocaml\stocks\extract>./all
./all
'.' is not recognized as an internal or external command,
operable program or batch file.
c:\data\ocaml\stocks\extract>all
all
Många
Run time = 1
c:\data\ocaml\stocks\extract>bash -i
bash -i
extract$ all
Många
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
main.cmo
extract$
extract$ ./all2
No bytecode file specified.
extract$ all2
Många
Run time = 1extract$
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
well
data$ cd /usr/local/bin/
bin$ mv ocamlmktop.exe ocamlmktop
bin$ ocamlmktop -o mytop str.cma unix.cma bigarray.cma
bin$
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;;
bin$
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
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
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'The text was updated successfully, but these errors were encountered: