tech-pkg archive

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

Re: ocaml fails to build on netbsd-9/i386 and proposed fix

On 23 June 2022 19:20:46 CEST, Greg Troxel <> wrote:
With this, ocaml builds, and unison builds and works.

I do not understand the issue -- just following directions :-)

I'll commit in about 18h if no objections.

Index: Makefile
RCS file: /cvsroot/pkgsrc/lang/ocaml/Makefile,v
retrieving revision 1.144
diff -u -p -r1.144 Makefile
--- Makefile 24 May 2022 18:25:38 -0000 1.144
+++ Makefile 23 Jun 2022 17:12:33 -0000
@@ -26,6 +26,11 @@ CONFIGURE_ARGS+= --disable-native-compil

+# configure: error: fma does not work, enable emulation with --enable-imprecise-c99-float-ops
+.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "i386"
+CONFIGURE_ARGS+= --enable-imprecise-c99-float-ops
# This is needed because ${WRKSRC}/build/ uses
# $PWD as part of its script. However, with /bin/sh on SunOS
# (cd work/foo-1.0 && echo $PWD) will show that the value of PWD is

Yes, by all means commit if it doesn't seem to cause any problems - I'll see if I can find out something about what exactly happens here, but for the moment it should be all right.



Home | Main Index | Thread Index | Old Index