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

configure has no option to specify temporary file handling #3895

Closed
vicuna opened this issue Nov 29, 2005 · 2 comments
Closed

configure has no option to specify temporary file handling #3895

vicuna opened this issue Nov 29, 2005 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Nov 29, 2005

Original bug ID: 3895
Reporter: anonymous
Status: closed (set by @damiendoligez on 2005-11-29T12:35:43Z)
Resolution: fixed
Priority: normal
Severity: block
Version: 3.09.0
Category: ~DO NOT USE (was: OCaml general)
Related to: #4088

Bug description

Building on Sourceforge Compile Farm alpha machine I get this:

boot/ocamlyacc -v parsing/parser.mly
boot/ocamlyacc: f - cannot open "/tmp/yacc.aHiN7tb"

This would appear to be a result of attempting to create a temporary
file in a directory I do not have permission to write to:

skaller@usf-cf-alpha-linux-1:~/alpha/ocaml-3.09.0$ man whoami
man: can't create a temporary filename: Read-only file system

Whilst this may well be a misconfiguration of th host
leading to failure of some C function call to create a
temporary file, rather than an Ocaml build bug ..
I am still left unable to build the compiler on this box.

A 'configure' option to specify a directory in which to place
temporary files, plus use of this directory wherever required,
may fix this problem (although not if some external tool
called by Ocaml or the build process tries to write in /tmp ..
and there is no way to pass on the temporary directory name to it ;(

Additional information

If there is a workaround please let me know: skaller@users.sf.net
[other than creating a user space chroot .. ugg ..]

I couldn't find the 'obvious' solution .. an environment
variable controlling which directory should be used.

BTW: I rated this 'block' because it completely blocks me
from building the compiler, but it probably needs to be
dropped to 'not a bug' or 'feature-request' after assessment.

Any alternative would be for the configuration script
to check that the temporary file function actually works,
not just that it is present (if there is already a
workaround in the case it isn't available).

@vicuna
Copy link
Author

vicuna commented Nov 29, 2005

Comment author: @damiendoligez

This has nothing to do with configure. The correct solution is to have an environment
variable, for example TMPDIR, which specifies where to put the temporary files. And
all tools should use it, not just the OCaml tools.

And this is what the OCaml standard library does: TMPDIR under Unix, TEMP under
Windows.

Now we "only" need to check all the scripts, Makefiles, and auxiliary tools.

@vicuna
Copy link
Author

vicuna commented Nov 29, 2005

Comment author: @damiendoligez

found two problems: in the debugger and labltk
fixed in 309 branch, tested under MacOSX with a non-writable /tmp

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