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 with native windows port #7871

Closed
vicuna opened this issue Oct 26, 2002 · 2 comments
Closed

compiling with native windows port #7871

vicuna opened this issue Oct 26, 2002 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Oct 26, 2002

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

Bug description

Hi

I'm trying to compile with the native windows port (3.06), and bytecode compiling seems fine, but both linking bytecode and native compiling ocamlopt give the same error:

ocamlopt -c -thread -I +lablgtk -I /cygdrive/d/Frank/lib rnd.ml
Fatal error: exception Invalid_argument("Filename.temp_file: temp dir nonexisten
t or full")
make: *** [rnd.cmx] Error 2

The code compiles and runs fine under Linux.

This is on Windows XP, and I just did the standard install plus lablgtk, as in the instructions. Any clue how to remedy this ?

Cheers
Frank Dellaert


<STYLE></STYLE>
Hi
 
I'm trying to compile with the native windows port (3.06), and bytecode *compiling* seems fine, but both linking bytecode and native compiling ocamlopt give the same error:
 
ocamlopt -c -thread -I +lablgtk -I /cygdrive/d/Frank/lib  rnd.ml
Fatal error: exception Invalid_argument("Filename.temp_file: temp dir nonexisten
t or full")
make: *** [rnd.cmx] Error 2
 
The code compiles and runs fine under Linux.
 
This is on Windows XP, and I just did the standard install plus lablgtk, as in the instructions. Any clue how to remedy this ?
 
Cheers
Frank Dellaert


@vicuna
Copy link
Author

vicuna commented Oct 28, 2002

Comment author: administrator

I'm trying to compile with the native windows port (3.06), and bytecode =
compiling seems fine, but both linking bytecode and native compiling =
ocamlopt give the same error:

ocamlopt -c -thread -I +lablgtk -I /cygdrive/d/Frank/lib rnd.ml
Fatal error: exception Invalid_argument("Filename.temp_file: temp dir nonexistent or full")
make: *** [rnd.cmx] Error 2

The code compiles and runs fine under Linux.

This is on Windows XP, and I just did the standard install plus lablgtk, =
as in the instructions. Any clue how to remedy this ?

The error message should be more detailed, but what it says is that
OCaml cannot find a directory to put its temporary files. This
temporary directory is the value of the TEMP environment variable, if
set, or C:\temp otherwise. Apparently, recent versions of Windows
neither create C:\temp nor set the TEMP variable. Just create a
directory named "temp" in drive C and you should be all set.

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Apr 18, 2004

Comment author: administrator

XL, 2003/03/24: use current dir as temp dir under windows, unless TMPDIR is set.

@vicuna vicuna closed this as completed Apr 18, 2004
@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