Article View: fa.caml
Article #106Re: [Caml-list] ocamlc compiles hello world, ocamlopt not
From: r0ller
Date: Wed, 16 Jan 2013 09:29
Date: Wed, 16 Jan 2013 09:29
299 lines
5918 bytes
5918 bytes
Hi Francois,
Thanks! I'm working hard to find it:)
Regards,
r0ller
On Wednesday, January 16, 2013 9:57:16 AM UTC+1, Francois Berenger wrote:
> On 01/16/2013 05:02 PM, r0ller@.hu wrote:
>
> > Hi All,
>
> >
>
> > By the way, is there any doc available about porting ocaml (google didn't find any) or any hint on how to move forward? I'd really like to have the native compiler on minix too.
>
>
>
> I think in the past it was possible to generate C code from OCaml code.
>
>
>
> As I guess Minix have a C compiler, that would be a way out for you.
>
>
>
> I can't find back, but I remember Richard W.M. Jones from Red Hat posted
>
> about it on caml-list and keeps it somewhere.
>
>
>
> > Thanks®ards,
>
> > r0ller
>
> >
>
> > On Friday, January 11, 2013 5:23:54 PM UTC+1, r0l...@freemail.hu wrote:
>
> >> Hi again,
>
> >>
>
> >>
>
> >>
>
> >> I forgot to mention that this result I got after gmake opt.
>
> >>
>
> >>
>
> >>
>
> >> Regards,
>
> >>
>
> >> r0ller
>
> >>
>
> >>
>
> >>
>
> >> On Friday, January 11, 2013 5:13:56 PM UTC+1, r0l...@freemail.hu wrote:
>
> >>
>
> >>> Hi Xavier,
>
> >>
>
> >>>
>
> >>
>
> >>>
>
> >>
>
> >>>
>
> >>
>
> >>> Thanks for the hint! I gave it a try and also with SYSTEM=bsd_elf. Please, find below the result of the latter (it's the same for linux_elf anyway). I also tried another suggestion from Olivier Andrieu by introducing SYS_minix in asmrun/i386.S but ended up in the same result:( Do you happen to know how to proceed now?
>
> >>
>
> >>>
>
> >>
>
> >>>
>
> >>
>
> >>>
>
> >>
>
> >>> gmake runtimeopt
>
> >>
>
> >>>
>
> >>
>
> >>> gmake[1]: Entering directory `/home/r0ller/ocaml-4.00.1'
>
> >>
>
> >>>
>
> >>
>
> >>> cd asmrun; gmake all
>
> >>
>
> >>>
>
> >>
>
> >>> gmake[2]: Entering directory `/home/r0ller/ocaml-4.00.1/asmrun'
>
> >>
>
> >>>
>
> >>
>
> >>> DSYS_bsd_elf -o i386.o i386.S || \
>
> >>
>
> >>>
>
> >>
>
> >>> { echo "If your assembler produced syntax errors, it is probably unhappy with the"; echo "preprocessor. Check your assembler, or try producing i386.o by hand."; exit 2; }
>
> >>
>
> >>>
>
> >>
>
> >>> DSYS_bsd_elf: not found
>
> >>
>
> >>>
>
> >>
>
> >>> If your assembler produced syntax errors, it is probably unhappy with the
>
> >>
>
> >>>
>
> >>
>
> >>> preprocessor. Check your assembler, or try producing i386.o by hand.
>
> >>
>
> >>>
>
> >>
>
> >>> gmake[2]: [i386.o] Error 2 (ignored)
>
> >>
>
> >>>
>
> >>
>
> >>> rm -f libasmrun.a
>
> >>
>
> >>>
>
> >>
>
> >>> ar rc libasmrun.a startup.o main.o fail.o roots.o globroots.o signals.o signals_asm.o misc.o freelist.o major_gc.o minor_gc.o memory.o alloc.o compare.o ints.o floats.o str.o array.o io.o extern.o intern.o hash.o sys.o parsing.o gc_ctrl.o terminfo.o md5.o obj.o lexing.o printexc.o callback.o weak.o compact.o finalise.o custom.o unix.o backtrace.o natdynlink.o debugger.o meta.o dynlink.o i386.o
>
> >>
>
> >>>
>
> >>
>
> >>> ar: i386.o: no such file or directory
>
> >>
>
> >>>
>
> >>
>
> >>> gmake[2]: *** [libasmrun.a] Error 1
>
> >>
>
> >>>
>
> >>
>
> >>> gmake[2]: Leaving directory `/home/r0ller/ocaml-4.00.1/asmrun'
>
> >>
>
> >>>
>
> >>
>
> >>> gmake[1]: *** [makeruntimeopt] Error 2
>
> >>
>
> >>>
>
> >>
>
> >>> gmake[1]: Leaving directory `/home/r0ller/ocaml-4.00.1'
>
> >>
>
> >>>
>
> >>
>
> >>> gmake: *** [opt] Error 2
>
> >>
>
> >>>
>
> >>
>
> >>>
>
> >>
>
> >>>
>
> >>
>
> >>> Thanks & regards,
>
> >>
>
> >>>
>
> >>
>
> >>> r0ller
>
> >
>
> >
>
>
>
>
>
> --
>
> Caml-list mailing list. Subscription management and archives:
>
> https://sympa.inria.fr/sympa/arc/caml-list
>
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
>
> Bug reports: http://caml.inria.fr/bin/caml-bugs
Technical Details
Message-ID:
<4f47c5c7-8854-4aa2-a13b-6a0f25857075@googlegroups.com>Path:
arc1-ca.pugleaf.net!k2ni11qap.0!nntp.google.com!p13no658359qai.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mailReferences:
<fa.tMEIU2eZ10ydMQJpEId8zYmuWpo@ifi.uio.no> <fa.5ytRg9PGwzfRT5U12a+96CThPHM@ifi.uio.no> <fa.fEvQzwMsL9tn+Q+kKoqZrwKQpHs@ifi.uio.no> <fa.gj9h88pWsiKoDqywSvikWobc2Gk@ifi.uio.no> <fa.yuD604fWUWzMhQKQ2PVUY9+PSRs@ifi.uio.no> <fa.SiWjqBgSRaJHHtRDr1LQlRGec/I@ifi.uio.no>Show Full Headers
Complete Article Headers
X-Google-Thread: c0fe4b917e,80f90091d91f8424
X-Google-Attributes: gidc0fe4b917e,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
X-Received: by 10.224.190.193 with SMTP id dj1mr507377qab.6.1358328589351;
Wed, 16 Jan 2013 01:29:49 -0800 (PST)
X-Received: by 10.49.35.77 with SMTP id f13mr86499qej.4.1358328589277; Wed, 16
Jan 2013 01:29:49 -0800 (PST)
Path: arc1-ca.pugleaf.net!k2ni11qap.0!nntp.google.com!p13no658359qai.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups: fa.caml
Date: Wed, 16 Jan 2013 01:29:49 -0800 (PST)
In-Reply-To: <fa.SiWjqBgSRaJHHtRDr1LQlRGec/I@ifi.uio.no>
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=87.229.2.180; posting-account=1tym9AoAAABKxcWqTDQq8MFzsJ5_fvrj
NNTP-Posting-Host: 87.229.2.180
References: <fa.tMEIU2eZ10ydMQJpEId8zYmuWpo@ifi.uio.no> <fa.5ytRg9PGwzfRT5U12a+96CThPHM@ifi.uio.no>
<fa.fEvQzwMsL9tn+Q+kKoqZrwKQpHs@ifi.uio.no> <fa.gj9h88pWsiKoDqywSvikWobc2Gk@ifi.uio.no>
<fa.yuD604fWUWzMhQKQ2PVUY9+PSRs@ifi.uio.no> <fa.SiWjqBgSRaJHHtRDr1LQlRGec/I@ifi.uio.no>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4f47c5c7-8854-4aa2-a13b-6a0f25857075@googlegroups.com>
Subject: Re: [Caml-list] ocamlc compiles hello world, ocamlopt not
From: r0ller@freemail.hu
Cc: caml-list@inria.fr
Injection-Date: Wed, 16 Jan 2013 09:29:49 +0000
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable