delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
To: | cygwin AT cygwin DOT com |
Subject: | ocaml (camlp4) problem with text-mode /tmp |
From: | Toby Allsopp <Toby DOT Allsopp AT navman DOT com> |
Date: | Thu, 14 Apr 2005 07:25:42 +1200 |
Message-ID: | <kjull7miimh.fsf@NAV-AKL-WDG-292.newton.navman.com> |
User-Agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (cygwin) |
MIME-Version: | 1.0 |
X-OriginalArrivalTime: | 13 Apr 2005 19:25:48.0031 (UTC) FILETIME=[988B80F0:01C5405E] |
Note-from-DJ: | This may be spam |
It seems that compiling using ``ocamlc -pp camlp4o'' fails if /tmp is mounted in text mode. This seems to be because the output of camlp4o is redirected to a file in /tmp and the text-mode conversion corrupts it. Attached is part of the ocaml-sqlite package that shows the problem on my system if /tmp is mounted in text mode. Here is what I tried and the output I get: $ ocamlc -verbose -pp camlp4o -c sqlite.ml + camlp4o 'sqlite.ml' > /tmp/camlpp76b2dc Fatal error: exception Failure("input_value: integer too large") The obvious work arounds are to mount /tmp in binary mode or to set $TMPDIR to a directory that is mounted in binary mode, but it seems that camlp4 should be setting its output file descriptor to binary mode. Toby. --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=sqlite.ml Content-Transfer-Encoding: base64 KCoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKQooKiAgQ29weXJpZ2h0 IChjKSAyMDAzIE1pa2hhaWwgRmVkb3RvdiA8bWlraGFpbEBraXR0b3duLmNv bT4gICAgICAgICAgICAgICopCigqICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgKikKKCogIFBlcm1pc3Npb24gaXMgaGVyZWJ5IGdyYW50ZWQsIGZyZWUg b2YgY2hhcmdlLCB0byBhbnkgcGVyc29uICAgICAgICAgICAqKQooKiAgb2J0 YWluaW5nIGEgY29weSBvZiB0aGlzIHNvZnR3YXJlIGFuZCBhc3NvY2lhdGVk IGRvY3VtZW50YXRpb24gZmlsZXMgICopCigqICAodGhlICJTb2Z0d2FyZSIp LCB0byBkZWFsIGluIHRoZSBTb2Z0d2FyZSB3aXRob3V0IHJlc3RyaWN0aW9u LCAgICAgICAgKikKKCogIGluY2x1ZGluZyB3aXRob3V0IGxpbWl0YXRpb24g dGhlIHJpZ2h0cyB0byB1c2UsIGNvcHksIG1vZGlmeSwgbWVyZ2UsICAqKQoo KiAgcHVibGlzaCwgZGlzdHJpYnV0ZSwgc3VibGljZW5zZSwgYW5kL29yIHNl bGwgY29waWVzIG9mIHRoZSBTb2Z0d2FyZSwgICopCigqICBhbmQgdG8gcGVy bWl0IHBlcnNvbnMgdG8gd2hvbSB0aGUgU29mdHdhcmUgaXMgZnVybmlzaGVk IHRvIGRvIHNvLCAgICAgKikKKCogIHN1YmplY3QgdG8gdGhlIGZvbGxvd2lu ZyBjb25kaXRpb25zOiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAqKQooKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICopCigqICBUaGUg YWJvdmUgY29weXJpZ2h0IG5vdGljZSBhbmQgdGhpcyBwZXJtaXNzaW9uIG5v dGljZSBzaGFsbCBiZSAgICAgICAgKikKKCogIGluY2x1ZGVkIGluIGFsbCBj b3BpZXMgb3Igc3Vic3RhbnRpYWwgcG9ydGlvbnMgb2YgdGhlIFNvZnR3YXJl LiAgICAgICAqKQooKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICopCigq ICBUSEUgU09GVFdBUkUgSVMgUFJPVklERUQgIkFTIElTIiwgV0lUSE9VVCBX QVJSQU5UWSBPRiBBTlkgS0lORCwgICAgICAgKikKKCogIEVYUFJFU1MgT1Ig SU1QTElFRCwgSU5DTFVESU5HIEJVVCBOT1QgTElNSVRFRCBUTyBUSEUgV0FS UkFOVElFUyAgICAgICAqKQooKiAgT0YgTUVSQ0hBTlRBQklMSVRZLCBGSVRO RVNTIEZPUiBBIFBBUlRJQ1VMQVIgUFVSUE9TRSBBTkQgICAgICAgICAgICAg ICopCigqICBOT05JTkZSSU5HRU1FTlQuIElOIE5PIEVWRU5UIFNIQUxMIFRI RSBBVVRIT1JTIE9SIENPUFlSSUdIVCBIT0xERVJTICAgKikKKCogIEJFIExJ QUJMRSBGT1IgQU5ZIENMQUlNLCBEQU1BR0VTIE9SIE9USEVSIExJQUJJTElU WSwgV0hFVEhFUiBJTiBBTiAgICAqKQooKiAgQUNUSU9OIE9GIENPTlRSQUNU LCBUT1JUIE9SIE9USEVSV0lTRSwgQVJJU0lORyBGUk9NLCBPVVQgT0YgT1Ig SU4gICAgICopCigqICBDT05ORUNUSU9OIFdJVEggVEhFIFNPRlRXQVJFIE9S IFRIRSBVU0UgT1IgT1RIRVIgREVBTElOR1MgSU4gVEhFICAgICAgKikKKCog IFNPRlRXQVJFLiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAqKQooKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKiopCgpleGNlcHRpb24gU3FsaXRlX2Vycm9yIG9mIHN0 cmluZwpleGNlcHRpb24gU3FsaXR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X3JldGNvZGUiCmV4dGVybmFsIHZtX3JjIDog dm0gLT4gcmMgPSAiY2FtbF9zcWxpdGVfdm1fcmV0Y29kZSIKCmV4dGVybmFs IGNvbHVtbl9uYW1lcyA6IHZtIC0+IHN0cmluZyBhcnJheSA9ICJjYW1sX3Nx bGl0ZV9jb2x1bW5fbmFtZXMiCmV4dGVybmFsIGNvbHVtbl90eXBlcyA6IHZt IC0+IHN0cmluZyBhcnJheSA9ICJjYW1sX3NxbGl0ZV9jb2x1bW5fdHlwZXMi Cg== --=-=-= Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ --=-=-=--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |