From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 89663BBAF for ; Thu, 25 Feb 2010 19:34:36 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkICAO9QhktRZ90xkWdsb2JhbACbFxUBAQEBCQsKBxMDH4gZtSiEdQQ X-IronPort-AV: E=Sophos;i="4.49,540,1262559600"; d="scan'208";a="45516258" Received: from mtaout03-winn.ispmail.ntl.com ([81.103.221.49]) by mail2-smtp-roc.national.inria.fr with ESMTP; 25 Feb 2010 19:34:31 +0100 Received: from aamtaout03-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout03-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20100225183427.DJCP10950.mtaout03-winn.ispmail.ntl.com@aamtaout03-winn.ispmail.ntl.com> for ; Thu, 25 Feb 2010 18:34:27 +0000 Received: from romulus.metastack.com ([81.102.132.77]) by aamtaout03-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20100225183427.DYSR2093.aamtaout03-winn.ispmail.ntl.com@romulus.metastack.com> for ; Thu, 25 Feb 2010 18:34:27 +0000 Received: from Tenor ([172.16.0.8]) (authenticated bits=0) by romulus.metastack.com (8.14.2/8.14.2) with ESMTP id o1PIYNDs020912 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Thu, 25 Feb 2010 18:34:24 GMT From: "David Allsopp" To: "'OCaml List'" References: <001501cab56c$7825a970$6870fc50$@metastack.com> In-Reply-To: Subject: RE: [Caml-list] OCaml on Maemo Date: Thu, 25 Feb 2010 18:34:23 -0000 Message-ID: <001101cab649$273c6de0$75b549a0$@romulus.metastack.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 thread-index: AQKQT/XKBbRaPpTM/EsjqO+bnV5g8gH4GuWNAbYLUbY= Content-Language: en-gb Organization: MetaStack Solutions Ltd. X-Scanned-By: MIMEDefang 2.65 on 81.102.132.77 X-Cloudmark-Analysis: v=1.1 cv=W3tOLUehizD4qj6VhtReFuw5MKb8d+XqjIxlDsIazEA= c=1 sm=0 a=AJK62UT7AAAA:8 a=ZOzjf2MOAAAA:8 a=SGJpDYsEAAAA:8 a=nOIyk2-kQ3hTE5s2hoYA:9 a=u5lMLdt5m-VqIz6pmMAA:7 a=VKIfSBlv715sJlyHwBMDjNWVgW8A:4 a=H1paHlvfXV0A:10 a=dTth3pfvbawA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 X-Spam: no; 0.00; ocaml:01 wiki:01 ocaml:01 gerd:01 stolpmann:01 byte:01 compiler:01 native-code:01 compiler:01 gcc:01 libc:01 libx:01 bug:01 gcc:01 -prefix:01 Sebastian Mondet wrote: > On my N810, thanks to the "easy debian" technique: > http://wiki.maemo.org/Easy_Debian > > I got access to all the ocaml packages which are available on debian-ARM. Everything I tried > worked perfectly (but I only tried "text mode" apps). That seemed a little heavy for the first day of having it but I've bookmarked the link for the future! Gerd Stolpmann wrote: > Yes, I've tried similar years ago on the N800 (Maemo 4, however). I ran into this problem at > that time: http://caml.inria.fr/mantis/view.php?id=3746. The ARM code generator was changed > since then (will be released in Ocaml 3.12). Haven't tried that yet, though. > > So far I remember the byte code compiler was no problem at all. Only the native-code compiler had > these problems with FP instructions. I had the same experience with 3.11.2 - the error message from configure could be better, but that won't matter once it's fixed in 3.12.0 (as you say). Martin DeMello wrote: > On Wed, Feb 24, 2010 at 9:44 PM, David Allsopp wrote: > > My shiny new Nokia N900 has finally arrived so, of course, having got > > bash, vim and texlive successfully installed I naturally need a > > compiler! > > > > Before I dig into trying to compile OCaml on Maemo 5, can I ask if > > anyone else out there has already tried (and hopefully succeeded)? > > No, I've mostly been playing with Vala since I got mine, but I'd love to > hear how you manage with it. It's definitely on my to-do list. Enabling the SDK repository allowed me to install bash, make, gcc, libc6-dev, tcl8.5-dev, tk8.5-dev and libx11-dev. (aside, which probably demonstrates my ignorance more than a bug/problem in anything: I've never used aptitude before - I was amused that installing gcc doesn't automatically upgrade glibc to the dev version as you end up with a C compiler which can't link. Couldn't quite imagine a situation where that's handy but hey ho!) OCaml 3.12.0+dev17 compiles out of the box (using -prefix /opt/maemo) - ocamlbrowser works (i.e. labltk) and ocamlopt is fine. The reference run of a command line app of mine takes 5 mins 20 sec (impressive as it takes 31 seconds on my Intel P8600 laptop and used to take about 4:30 on the machine on which it was originally developed). David