mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] Ocaml


From: Nagaev Boris
Subject: Re: [Mingw-cross-env-list] Ocaml
Date: Wed, 12 Aug 2015 01:58:11 +0300

On Tue, Aug 11, 2015 at 7:34 PM, SEAiq Navigation <address@hidden> wrote:
> Hi Boris,
>
> Thanks for the quick reply!
>
> I tried ‘make update-package-ocaml-native’ and was then unable to build the
> package because a patch no longer applies (see below).  Is there something
> I’m doing wrong?
>
> Do you use ocaml?  If not, is there an MXE ocaml “maintainer” I can contact?
> I am happy to help with the work getting ocaml up to the current release but
> don’t want to duplicate someone else’s work or step on their toes.  Also, I
> am fairly new to MXE.

I managed to build it.

Pull request: https://github.com/mxe/mxe/pull/787

I don't understand ocaml, so review my pull request carefully, please.


> The build problem with BFD seems pretty minor… just the texi documentation
> is not compiling.  I can fix that if that is what is holding things back.
>
> best, Mark
>
> debian64% make update-package-ocaml-native
>
> [using autodetected 4 job(s)]
> NEW      ocaml-native  4.00.1 --> 4.02.3
> sed -i 's/^\([^ ]*_VERSION *:=\).*/\1 4.02.3/' './src/ocaml-native.mk'
> make -f 'Makefile' 'update-checksum-ocaml-native' || { sed -i 's/^\([^
> ]*_VERSION *:=\).*/\1 4.00.1/' './src/ocaml-native.mk'; exit 1; }
> make[1]: Entering directory '/data0/mhayden/plotter/mxe/test/mxe'
> [using autodetected 4 job(s)]
> mkdir -p '/data0/mhayden/plotter/mxe/test/mxe/pkg' && ( wget
> --no-check-certificate --user-agent=Wget/1.16.3 -T 30 -t 3 -O-
> 'http://caml.inria.fr/pub/distrib/ocaml-4.02/ocaml-4.02.3.tar.gz'   || wget
> --no-check-certificate --user-agent=Wget/1.16.3 -O-
> s3.amazonaws.com/mxe-pkg/`echo 'ocaml-4.02.3.tar.gz' | perl -lpe
> 's/([^A-Za-z0-9])/sprintf("%%%02X", ord($$1))/seg'` || wget
> --no-check-certificate --user-agent=Wget/1.16.3 -O-
> d1yihgixbnrglp.cloudfront.net/`echo 'ocaml-4.02.3.tar.gz' | perl -lpe
> 's/([^A-Za-z0-9])/sprintf("%%%02X", ord($$1))/seg'` )   >
> '/data0/mhayden/plotter/mxe/test/mxe/pkg/ocaml-4.02.3.tar.gz' || ( echo;
> echo 'Download failed!'; echo; rm -f
> '/data0/mhayden/plotter/mxe/test/mxe/pkg/ocaml-4.02.3.tar.gz'; ) && sed -i
> 's/^\([^ ]*_CHECKSUM *:=\).*/\1 '"`openssl sha1
> '/data0/mhayden/plotter/mxe/test/mxe/pkg/ocaml-4.02.3.tar.gz' 2>/dev/null |
> sed -n 's,^.*\([0-9a-f]\{40\}\)$,\1,p'`"'/' './src/ocaml-native.mk'
> --2015-08-11 06:16:12--
> http://caml.inria.fr/pub/distrib/ocaml-4.02/ocaml-4.02.3.tar.gz
> Resolving caml.inria.fr (caml.inria.fr)... 128.93.11.35
> Connecting to caml.inria.fr (caml.inria.fr)|128.93.11.35|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 3108892 (3.0M) [application/x-gzip]
> Saving to: 'STDOUT'
>
> -                   100%[=====================>]   2.96M   632KB/s   in 5.9s
>
> 2015-08-11 06:16:18 (512 KB/s) - written to stdout [3108892/3108892]
>
> make[1]: Leaving directory '/data0/mhayden/plotter/mxe/test/mxe'
>
>
>
> debian64% ./doit
> + packages=' qt5 qtsensors qtserialport qtwebkit qtwinextras qtsvg bzip2
> expat gcc glew libzip nsis proj zlib ocaml-camlimages ocaml-core
> ocaml-findlib ocaml-flexdll ocaml-lablgl ocaml-native ocaml-xml-light '
> + others=' flex freeglut freetype '
> + make -C mxe MXE_TARGETS=i686-w64-mingw32.static qt5 qtsensors qtserialport
> qtwebkit qtwinextras qtsvg bzip2 expat gcc glew libzip nsis proj zlib
> ocaml-camlimages ocaml-core ocaml-findlib ocaml-flexdll ocaml-lablgl
> ocaml-native ocaml-xml-light
> make: Entering directory '/data0/mhayden/plotter/mxe/test/mxe'
> [using autodetected 4 job(s)]
> [download]  gcc
> make: Nothing to be done for 'qtsensors'.
> make: Nothing to be done for 'qtserialport'.
> make: Nothing to be done for 'qtwebkit'.
> make: Nothing to be done for 'qtwinextras'.
> make: Nothing to be done for 'qtsvg'.
> make: Nothing to be done for 'bzip2'.
> make: Nothing to be done for 'expat'.
> make: Nothing to be done for 'gcc'.
> make: Nothing to be done for 'zlib'.
> [build]     ocaml-native         i686-w64-mingw32.static
>
> Failed to build package ocaml-native for target i686-w64-mingw32.static!
> ------------------------------------------------------------
> Hunk #3 FAILED at 73.
> Hunk #4 FAILED at 261.
> 3 out of 4 hunks FAILED -- saving rejects to file ocamlbuild/options.ml.rej
> Makefile:412: recipe for target
> 'build-only-ocaml-native_i686-w64-mingw32.static' failed
> make[1]: *** [build-only-ocaml-native_i686-w64-mingw32.static] Error 1
> make[1]: Leaving directory '/data0/mhayden/plotter/mxe/test/mxe'
> real 0m14.436s
> user 0m5.328s
> sys 0m9.084s
> ------------------------------------------------------------
> [log]
> /data0/mhayden/plotter/mxe/test/mxe/log/ocaml-native_i686-w64-mingw32.static
>
>
>
> On Aug 10, 2015, at 11:53 PM, Nagaev Boris <address@hidden> wrote:
>
> On Tue, Aug 11, 2015 at 12:06 AM, SEAiq Navigation <address@hidden>
> wrote:
>
> The version of OCaml (4.00.1) in MXE is almost 3 years old.  Has anyone
> looked into upgrading to the current OCaml release?  I believe there are a
> number of improvements to the OCaml build to support cross-compilation;
> however these changes appear to break the MXE scripts.
>
> regards, Mark
>
>
> Hi
>
> I have applied the following command to MXE tree:
>
>    make update-package-ocaml-native
>
> Packages ocaml-native and ocaml-flexdll can be built successfully.
>
> But package ocaml-core depends on broken package bfd [1].
>
> PS. I think MXE needs some efforts to fix all broken packages. MXE
> used to maintain the stable branch, where all packages were built
> correctly. Now the stable branch is suspended, but many packages in
> master branch are broken and many packages depend on them.
>
> [1] https://github.com/mxe/mxe/issues/711
>
>
> --
>
>
> Best regards,
> Boris Nagaev
>
>



-- 


Best regards,
Boris Nagaev



reply via email to

[Prev in Thread] Current Thread [Next in Thread]