Giter VIP home page Giter VIP logo

Comments (5)

smorimoto avatar smorimoto commented on September 27, 2024

CC: @ocaml/opam-repository

from opam-repository.

dra27 avatar dra27 commented on September 27, 2024

Jeremie deleted his old GitHub account - we'll need to point to a cached copy of it.

from opam-repository.

dra27 avatar dra27 commented on September 27, 2024

From my .opam cache (md5 faccda3b3ab092fa9ac7d5d4d8beb004)

diff --git a/configure b/configure
index d45e88f70fc..25d872b60d8 100755
--- a/configure
+++ b/configure
@@ -322,7 +322,14 @@ case "$bytecc,$target" in
     bytecccompopts="-fno-defer-pop $gcc_warnings -DSHRINKED_GNUC"
     mathlib="";;
   *,*-*-darwin*)
-    bytecccompopts="-fno-defer-pop $gcc_warnings"
+    # On recent version of OSX, gcc is a symlink to clang
+    if $bytecc --version | grep -q clang; then
+        # -fno-defer-pop is not supported by clang, and make recent
+        # versions of clang to fail
+        bytecccompopts="$gcc_warnings"
+    else
+        bytecccompopts="-fno-defer-pop $gcc_warnings"
+    fi
     mathlib=""
     mkexe="$mkexe -Wl,-no_compact_unwind"
     # Tell gcc that we can use 32-bit code addresses for threaded code

from opam-repository.

kit-ty-kate avatar kit-ty-kate commented on September 27, 2024

This should now be fixed.

Moreover, setup-ocaml doesn't work with older versions of OCaml (<= 3.12), but this is not new as far as I can tell.

* With 3.07, it fails with the message `Error: No OCaml base compiler packages matched the version 3.07 in the opam-repository.`, whereas `opam switch create 3.07` should work as expected (https://github.com/thierry-martinez/stdcompat/runs/7952973003?check_suite_focus=true).

* With OCaml 3.08 to 3.12, it seems to fail because it tries to install `opam-depext` which requires OCaml >= 4.00.

I think these should be fixed in setup-ocaml. Could you open a new issue there for that?

from opam-repository.

thierry-martinez avatar thierry-martinez commented on September 27, 2024

Thank you very much for the quick fix! I reposted in setup-ocaml the part of the issue relative to OCaml ≤ 3.12 (ocaml/setup-ocaml#615).

from opam-repository.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.