Article View: fa.caml
Article #101Re: problem compiling native ocaml hello world on minix3
From: r0ller
Date: Wed, 09 Jan 2013 10:36
Date: Wed, 09 Jan 2013 10:36
42 lines
2639 bytes
2639 bytes
Hi All, The strange thing is that when compiling it like: ocamlc smallest.ml -o smallest everything works fine but not with ocamlopt. I get the binary executable and it indeed prints: hello, world. Could anyone please, tell me why? Regards, r0ller On Monday, January 7, 2013 4:16:58 PM UTC+1, r0l...@freemail.hu wrote: > Hi All, > > > > I'm trying to make ocaml compiler (4.00.1) work on minix (current 3.2.1) and managed to get to point 3) and 4) of the INSTALL intsructions. According to point 3) make bootstrap reports success and make opt (point 4) worked fine as well. However, point 5) that is make opt.opt gives linking errors. Nevertheless, as far as I could understand, this should not pose any problem as then I only miss the optimized compiler versions that is the ones ending in .opt and they're missing indeed. Still, when trying to compile a hello world program called smallest.ml like: > > > > print_string "hello, world\n" > > > > by executing 'ocamlopt -S smallest.ml -o smallest', I get roughly the same linking errors I got when make opt.opt failed (see at the end). I also must admit that I'm not an ocaml expert at all I just need it to compile a program written in ocaml. Thanks for your help in advance! > > > > Best regards, > > r0ller
Technical Details
Message-ID:
<73edb160-364b-4a5b-b5f5-4ed0ab006c83@googlegroups.com>Path:
arc1-ca.pugleaf.net!k2ni5538qap.0!nntp.google.com!p13no2205241qai.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mailReferences:
<f6d15b53-af87-4105-ac55-6d7e5c5d534c@googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: c0fe4b917e,1aebcf1dc6eeef24
X-Google-Attributes: gidc0fe4b917e,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
X-Received: by 10.224.178.204 with SMTP id bn12mr9953510qab.1.1357727766467;
Wed, 09 Jan 2013 02:36:06 -0800 (PST)
Received: by 10.49.24.13 with SMTP id q13mr12155659qef.33.1357727766429; Wed,
09 Jan 2013 02:36:06 -0800 (PST)
Path: arc1-ca.pugleaf.net!k2ni5538qap.0!nntp.google.com!p13no2205241qai.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups: fa.caml
Date: Wed, 9 Jan 2013 02:36:05 -0800 (PST)
In-Reply-To: <f6d15b53-af87-4105-ac55-6d7e5c5d534c@googlegroups.com>
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=84.3.92.117; posting-account=1tym9AoAAABKxcWqTDQq8MFzsJ5_fvrj
NNTP-Posting-Host: 84.3.92.117
References: <f6d15b53-af87-4105-ac55-6d7e5c5d534c@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <73edb160-364b-4a5b-b5f5-4ed0ab006c83@googlegroups.com>
Subject: Re: problem compiling native ocaml hello world on minix3
From: r0ller@freemail.hu
Injection-Date: Wed, 09 Jan 2013 10:36:06 +0000
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable